Hi, First one thing I forgot to mention: I am not sure if you are able to access the webtestoverview.xml file from within the "running" tests... Meaning, it might perhaps not work to make the "last steps" being those who fetch the results from xml and send them to your software. The workaround (if required) would then be to make a separate run of webtest for doing this.
While driving home I figured that there is perhaps a much better (or comfortable) way of achieving what you need. If I understand correctly what Webtest is doing, it uses an XSL-Transformation in the end to create the HTML report from what is collected in the xml files. If this is true, then a (well, more or less) "simple" different XSLT could create a CSV file out of it, right? If that would work, it could ease the processing of the results for external use. Note however that I don't have the faintest clue about XSLT and Java programming... I wonder if someone who does could come up with such a thing... Volunteers, anyone? :) Cheers Thomas Klein Senior Associate, QA | Sapient -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Iain_10 Sent: Thursday, February 04, 2010 4:44 PM To: [email protected] Subject: RE: [Webtest] WebTest test result after test executed Hi, There is a 1:1 mapping between the test cases and not the test steps so that should be ok. Could you give me an example of how to use VerifyXPath for this case? The external tool is called QaTraq. thanks! Thomas Klein-10 wrote: > > > Hi, > > well, without further knowledge of your actual use case, I would go like > this: > - "invoke" the file <WebTestOverview.xml> in the results folder > - use "verfifyXPath" to check for the tags " successful='yes' " for each > node that matches your testcase > > Unfortunately, it might be tedious (if not impossible) to gather the > information for the *steps*. > - And only if you have a 1:1 match of test *steps* in your external tool > with test *steps* in your webtests. > > However, retrieving the test *case* information for the test *cases* in > your external tools should be feasible since I suspect you have a 1:1 > match there, right? Out of curiosity... What external tool is that? > QualityCenter? > > HTH, Thomas > > Thomas Klein > > Senior Associate, QA | Sapient > -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Iain_10 > Sent: Tuesday, February 02, 2010 12:17 PM > To: [email protected] > Subject: Re: [Webtest] WebTest test result after test executed > > > Hi, > > Yes I have been using that report to view the results of the tests run. > > What I would like to do is the following: > > (1) - After Test X is run, determine if it passed or failed > (2) - Call my script to update my external tool with this result > > Step 2 is working fine. > > The problem is Step 1. Is it possible to get this information? > > thanks! > > > Iain_10 wrote: >> >> Hi, >> >> I am new to WebTest and have started using it to automate some of our >> testing. >> >> After a test case has been executed, I want to update an external Test >> Case Management >> tool with the result. >> >> I call a Perl script from my test case that will update the Test Case >> Management tool. >> >> I am wondering if there is a way of determining if the test case passed >> or >> failed directly after it is executed so that I can pass the result to my >> Perl script? >> >> thanks! >> > > -- > View this message in context: > http://old.nabble.com/WebTest-test-result-after-test-executed-tp27358525p27418760.html > Sent from the WebTest mailing list archive at Nabble.com. > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > > -- View this message in context: http://old.nabble.com/WebTest-test-result-after-test-executed-tp27358525p27453452.html Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

