Ugh
You could use the BuildIn library Run Keyword If (1) and Run Keyword Unless (2) keywords.
See the Run Keyword If keyword documentation for examples.
-Tatu
(1) http://robotframework.googlecode.com/hg/doc/libraries/BuiltIn.html?r=2.7.3#Run%20Keyword%20If
(2) http://robotframework.googlecode.com/hg/doc/libraries/BuiltIn.html?r=2.7.3#Run%20Keyword%20Unless
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/robotframework-users/-/Cwpd_KudAZoJ.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
will i have to add new list variable in resource.txt, say @{text} with value abc in it??then in test case i have to use like that?Run Keyword If '${text}'=='PASS' then what comes in Action section???? mean if it pass then i have to click on 'A' button
On Thu, Aug 16, 2012 at 7:14 PM, Tatu aalto <aalto...@gmail.com> wrote:
Ugh
The ${status} is just variable, you can replaced it with any variable you like. In your case it would be the variable where you have stored the text 'abc' if it is present in you page. If the text 'abc' is not present in you page, then the variable should have something else in it.
The actions are other keywords, in your case I would assume that they would be user defined keywords: click button A and Click button B.
-Tatu
On Aug 16, 2012 4:32 PM, "ankur solanki" <anku...@gmail.com> wrote:
Run Keyword If '${status}' == 'PASS' Some ActionRun Keyword Unless '${status}' == 'PASS' Another Action
the Scalar 'status' i have to add in resource file??In 'Some Action' i have to use click keyword???? How to use it ,,i am not able to understand