4 messages in com.canoo.lists.webtestRE: [Webtest] Is there a way to use t...
FromSent OnAttachments
Tize Ma23 Jul 2004 12:56 
Ji Kim23 Jul 2004 13:36 
Tize Ma23 Jul 2004 14:03 
Ji Kim23 Jul 2004 14:27 
Subject:RE: [Webtest] Is there a way to use the result of the test step to control the subsequent testing?
From:Ji Kim (Ji.@cnet.com)
Date:07/23/2004 01:36:44 PM
List:com.canoo.lists.webtest

I am doing something similar. I use <storexpath xpath="count(...)"...> to test the condition and use the saved value of property used in <storexpath> in the <iF>. You can "save" dynamic properties using <exportproperty>. (From what I tried, <iF> doesn't work with dynamic property or embeded <verifyxxx>. If you know that <iF> should accept <verifyxxx> as test, please let me know.)

If you use <verifytext> then I think you have to do something conditional in Ant build file since the test that contains the <verifytext> will fail.

If there's some other way that's simpler, I would like to know.

-----Original Message----- From: webt@gate2.canoo.com [mailto:webt@gate2.canoo.com] On Behalf Of Tize Ma Sent: Friday, July 23, 2004 12:57 PM To: webt@gate2.canoo.com Subject: [Webtest] Is there a way to use the result of the test step to control the subsequent testing?

Hi, everyone, Did anyone use the result of test step to control/determine test afterwards? For example, after verify a text, if it is a success, do A, otherwise do B. What I can think of is (1) save the "state" of the result to a dynamic property (possible?); (2) "convert" the property to true or false, and save to another property (possible?); (3) use the IF step patch posted a few months ago to do the rest. Is this a feasible approach? Thanks. Tize