Nested If else condition in QA Edition.

8 posts, 0 answers
  1. Vin
    Vin avatar
    17 posts
    Member since:
    Jul 2012

    Posted 28 Apr 2011 Link to this post

    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.

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 28 Apr 2011 Link to this post

    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
  3. Vin
    Vin avatar
    17 posts
    Member since:
    Jul 2012

    Posted 29 Apr 2011 Link to this post

    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.

  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 04 May 2011 Link to this post

    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!
  5. srini
    srini avatar
    2 posts
    Member since:
    Aug 2011

    Posted 20 Dec 2011 Link to this post

    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."
  6. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 26 Dec 2011 Link to this post

    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
  7. Lurife
    Lurife avatar
    4 posts
    Member since:
    Feb 2013

    Posted 26 Feb 2013 Link to this post

    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.
  8. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 27 Feb 2013 Link to this post

    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
Back to Top