Hi,

writing to Excel files doesn't belong to WebTest's scope (nevertheless you can surely do it as the needed libraries are there).

Do you need to write to the Excel file? What about storing the information as Ant property (caution, you need an Ant extension if your different webtests are not in the same project) or in a file to read it as property later?

Cheers,
Marc.

Rhee wrote:
Hi all

I would like to create a data driven test whereby i capture some result value (i.e an ID) during the test run, then store it in excel to be used later by another test after the current test completes.

Typical example would be

Test Data: 5 rows in excel to iterate through

*Run test A*

    * Creates 5 users
    * For each iteration of user created, capture the userID (possibly
      write userID to excel)
    * test A completes successfully

*Run Test B* immediately after test A completes and use the stored values as input to iterate thru (as in test A)

The tests could possible be in separate targets and i believe the property variables would be out of scope unless i write and read from a property file. I am also not sure how to specify config such that i can invoke an excel file to write to.

(from excel.xml Selftests)
<steps>
         <invoke url="${webtest.home}/Development/Test.xls"/>
  </steps>

Resulting page -> complete url http://localhost/c:/Webtest/Development/Test.xls (notice localhost is added at the beginning)


Any examples or suggestion would be greatly appreciated.

Thanks

--
- Rhee

"Risk nothing and you gain nothing"

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to