This is a migrated thread and some comments may be shown as answers.

Nested If else condition in QA Edition.

7 Answers 229 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vin
Top achievements
Rank 1
Vin asked on 28 Apr 2011, 12:19 PM

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

Sort by
0
Stoich
Telerik team
answered on 28 Apr 2011, 02:44 PM
Hi Vin,
    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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vin
Top achievements
Rank 1
answered on 29 Apr 2011, 05:01 AM

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.

0
Stoich
Telerik team
answered on 04 May 2011, 03:08 PM
Hi Vin,
    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
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
srini
Top achievements
Rank 1
answered on 20 Dec 2011, 11:37 PM
I am actually facing the same issue. I am unsure why even the most basic logical step kills the execution of the test case and throws the error:
"Unable to determine logical branch to go into. Unable to execute verification."
0
Stoich
Telerik team
answered on 26 Dec 2011, 12:16 PM
Hello Srini,
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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lurife
Top achievements
Rank 1
answered on 26 Feb 2013, 06:13 PM
I am having the same problem:
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.
0
Stoich
Telerik team
answered on 27 Feb 2013, 09:52 AM
Hello Lurife,
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
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Vin
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Vin
Top achievements
Rank 1
srini
Top achievements
Rank 1
Lurife
Top achievements
Rank 1
Share this question
or