Forum Discussion
4 Replies
- tristaanogreEsteemed Contributor
Is there any properly like wText? That's where I would start.
I'd give you more specific suggestions, but I don't know the specifics of what type of application (Web, Desktop, Mobile), what component type/class it is, what you've tried, etc.
- msapFrequent 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_RChampion Level 3
You 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
Related Content
- 3 years agoramprabhus
- 5 years agopaarmann-ara
Recent Discussions
- 3 days agovladd1