Record steps with Telerik Test Studio in a RadTreeView Control

6 posts, 1 answers
  1. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 07 May 2013 Link to this post

    Hi everyone,

    I have a test recorded with Telerik Test Studio. The test is to add a new item on RadTreeView Control, this control is editable. Every RadTreeViewItem is a grid with two textboxs. The test have the next steps:
    ....
    - click on button add.
    - click in element of radtreeview
    - click in textbox of new element.
    - write text in textbox
    ....

    In record the test works, if I delete de inserted element by test and execute again the test, it works. But if I execute two times the test, in a second time, the test doesn't work, I can't click in textbox of new element.

    if you can't help me I appreciate

    thanks
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 09 May 2013 Link to this post

    Hi Jose,

    In order to help you best please elaborate e bit more:

    1. What kind of application are you testing (HTML, Silverlight)?

    2. Send us the execution log.

    3. Please record a Jing video demonstrating the entire process, so we can better understand what is happening. 

    4. Provide us with a copy of your test and grant us access to your application so we can reproduce the issue on our end and give you a solution. Is on our demo site something similar to your application?

    5. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. You can capture a Fiddler trace using FiddlerCap

    Please confirm that your application allows you to insert two or more identical records. If not, this might cause the problem.

    Try to always insert a different text and let me know if you are experiencing the same issue.

    Another thing you can try is to set SimulateRealClick (click step which is inserting the test) and SimulateRealTyping (step which is writing the test) to true (see the attached screen shots).


    Hope to hear from you soon.
     

    Kind regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 10 May 2013 Link to this post

    Hi Boyan,

    1- The GUI of application is Silverlight
    2- I made a demo that simulate the GUI that I tested
    3-In the software the tree is used n times, and in this n times the situation is verify.
    4- I send you a video, two log executions and a zip, with test and the demo example.
    5- The idea is insert elements in tree with the same test.

    Best,

    José Teles
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 13 May 2013 Link to this post

    Hi Jose,

    The problem is caused by the find expression of the input element. Test Studio is using XamlPath to locate the input field. However the element has always a different XamlPath after inserting a new element (LookupTableItem). 

    You need to make some common find expression for the input element so every time Test Studio can find it.

    Please add XamlTag=TextBox as another find rule and remove the XamlPath from the find expression.  

    See the attached video which demonstrates the entire process.

    Hope this helps.

    Greetings,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 13 May 2013 Link to this post

    Hi Boyan,

    Thanks for the video and the explanation.

    best,

    José Teles
  6. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 13 May 2013 Link to this post

    Hi Jose,

    I am really glad I could help.

    Please do not hesitate to contact us if you require any further assistance.

    Regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top