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

Record steps with Telerik Test Studio in a RadTreeView Control

5 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
José
Top achievements
Rank 1
José asked on 07 May 2013, 11:18 AM
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

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 09 May 2013, 11:12 AM
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
0
José
Top achievements
Rank 1
answered on 10 May 2013, 01:25 PM
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
0
Boyan Boev
Telerik team
answered on 13 May 2013, 03:03 PM
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
0
José
Top achievements
Rank 1
answered on 13 May 2013, 03:54 PM
Hi Boyan,

Thanks for the video and the explanation.

best,

José Teles
0
Accepted
Boyan Boev
Telerik team
answered on 13 May 2013, 09:39 PM
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
Tags
General Discussions
Asked by
José
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
José
Top achievements
Rank 1
Share this question
or