Forum Discussion
Thanks .I am using Java scripting. other than if else statement, what can I use. I tried to use Log.message. It only prints the message does not specify whether its passed or fail.
TestComplete will not automatically know if it's passed or failed because it does not know what your conditions are. We are all testing different things and have different requirements. You may want to know if the button Exists and I may want to know if it's Visible. That's what a decision statement like If/Then/Else or Case does for you.
Log.message just puts out a string. You have to construct the test so it outputs the string you want.
- msap7 years agoFrequent Contributor
I tried to input the below Java script gives an error
if(Aliases.Framework.QA_EVT_A5_4.MdiClient.Exists) then log.message("Pass")
else log.message("fail");
or
if(Aliases.Framework.QA_EVT_A5_4.MdiClient.Exists) log.message("Pass")
else log.message("fail");
Related Content
- 9 years agoeasyfish
Recent Discussions
- 11 hours agosimonaferrara
- 20 hours agoSubhraDas