Team,
Is it possible to add nested If condition in QA version. I tried to use the nested IF and getting error “Unable to determine logical branch to go into. Unable to execute verification.”
Please find the attached Screen Shot.
7 Answers, 1 is accepted
it's definitely possible to have nested Logical steps in Test Studio. In order to determine what went wrong in your test could you please send us the test. We'll try to reproduce the issue locally and resolve it. If you don't want to share the test in a public forum you can open a Support ticket a attach it to that. Support tickets are completely confidential unlike forum posts.
All the best,
Stoich
the Telerik team
Hi Stoich,
First am verifying a text in UI, if it is true then I will verify one more text/image.
If (Verify the text)
If (Verify the text/image)
Else
Manual step to display message
Else
Manual step to display message.
Please find the attached screen shot.
I really will need some additional info in order to get to the bottom of this. What error does the IF/Else clause give you? If possible could you please send us the test. We'll try to reproduce the issue locally and resolve it. If you don't want to share the test in a public forum you can open a Support ticket a attach it to that. Support tickets are completely confidential unlike forum posts.
Hope to hear from you soon.
All the best,
Stoich
the Telerik team
Register Today!
"Unable to determine logical branch to go into. Unable to execute verification."
I cannot verify this without additional details but I believe that the this message:
"Unable to determine logical branch to go into. Unable to execute verification."
It taken out of context. This message should be followed by a conventional error clarifying why the verification could not be executed. For instance, here's a complete test low with this error:
'12/26/2011 11:13:31 AM' - 'NotRun' : 1. Navigate to : 'http://www.w3schools.com/js/js_popup.asp'
'12/26/2011 11:13:32 AM' - 'Pass' : 2. Navigate to : 'http://en.wikipedia.org/wiki/Panzer'
'12/26/2011 11:13:44 AM' - 'Fail' : 3. IF (Wait for attribute 'alt' has 'Contains' value of 'W3Schools.com' on 'W3SchoolsComImage') THEN
'12/26/2011 11:13:44 AM' - Unable to determine logical branch to go into. Unable to execute verification.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using
Find logic
(Html): [src 'Exact' /images/w3schoolslogo.gif] AND [tagname 'Exact' img]
Unable to locate element. Search failed!
So please provide the additional details from the test log so we can determine the problem. Most likely you're running into an "Unable to locate element" error. Here's how to troubleshoot that:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx
All the best,
Stoich
the Telerik team
I am using telerik test studio v 2012.2.920.0
It had this error:
'2/26/2013 10:00:47 AM' - 'Pass' : 14. Wait for '1000' msec.'2/26/2013 10:00:58 AM' - 'Fail' :
15. IF (Verify EditGridviewrow's visibility is Visible) THEN'2/26/2013 10:00:58 AM' - Unable to determine logical branch to go into. Unable to execute verification.------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~
At this step, Gridviewrow is not visible. I am trying to execute the next step to make it fall into ELSE statement which is to logout.
My question is why it is not going to ELSE statement, instead throw that error? Where logically it should go to ELSE because verification:Verify EditGridviewrow's visibility is Visible = not visible at this time.
it might be that the object in question doesn't even exist in the page. This is a bit tricky - please take a look at the following article which should clear things up:
http://www.telerik.com/automated-testing-tools/blog/stoil-stoichev/13-01-22/waitforvisible-steps-that-don-t-wait.aspx
Let me know if this information helps.
Greetings,
Stoich
the Telerik team
Test Studio Trainings