"if" construct [message #818969] |
Mon, 12 March 2012 10:27 |
Stefan Mertins Messages: 11 Registered: March 2012 |
Junior Member |
|
|
Hello,
I started to work with Jubula recently. I have to test a eclipse rcp application with Jubula.
My problem occurs, when I try to test a dialog with some checkboxes. I want to check the checkboxes via a boolean variable I store in a data set for my test case. But to do so I need a way to check the values of the variable and execute the test step according to it.
(Data Set: CHECKBOX_1 = true; CHECKBOX_2 = true; CHECKBOX_3 = true;
-> result all 3 checkboxes are selected)
I searched the documentation of Jubula and found a faq, which mentions a "if" construct in Jubula:
www.eclipse.org/jubula/faq.php
Test Specification Questions > Can I specify loop constructs?
Quote:With GUIdancer or Jubula, it easy to construct cases such as:
"Wait until the text Loaded appears in the status bar"
"If the checkbox isn't selected, then select it"
"If this action isn't successful the first time, take some (or no) action and try again." The number of tries can be configured.
"If this action isn't successful, then execute some other action(s)." The action(s) executed after the error can be any actions - for example taking a screenshot or restarting the application.
To me it seems like the second construct is almost what I need to realize my test, but I have no clue how to use it in Jubula and I found no hints about it aswell.
The only alternative I see, is to define 6 test cases for a dialog with 3 checkboxes to test all possible combinations.
So my question is: Can I realize a "if" construct to reach my goal or is it not possible and I have to stick with my second approach?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02914 seconds