Forum Discussion
msap
8 years agoFrequent Contributor
yes, wText.Its a Desktop Testing.
How should I define list of options for status field:Active;Inactive;Cancelled.
layoutControl1.cbStatus.Click();
ComboBoxPopupListBox.ClickItem("Inactive");
MainMenu.Click("Save Changes");
Grid=frameworkComboBoxPopupListBox;
if(Grid.wItem(i) == "Active")
Log.Message("Can Create Acc")
else
Log.Message("Cannot Create Ac")
Marsha_R
Champion Level 3
8 years agoYou can use a list of Ifs
If active
do this
If inactive
do this other thing
If cancelled
do a different thing
or you can use nested ifs
if active do this
else if inactive do this other thing
else do a different thing
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/if-then.html