Thanks Marc for the response. I don't necessarily need to write to Excel.The tests are not in the same project since i have to be able to run them as stand alone tests or tie them together for end to end test. I thought writing to Excel might work better and i am open to any solution.
You made 2 suggestions and i am using one already (1. "*in a file to read it as property later*"). Can you give me an example of how to implement the second suggestion (2."*you need an Ant extension if your different webtests are not in the same project *"). Thanks -Rhee On Tue, Jul 21, 2009 at 2:25 AM, Marc Guillemot <[email protected]> wrote: > 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 > -- - Rhee "Risk nothing and you gain nothing"

