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

Testing my javascript webapp doesnt work

2 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sacha
Top achievements
Rank 1
Sacha asked on 01 Nov 2017, 09:47 AM

I started using test studio for a webapp build in javascript. I came across a few things that don't work in my tests.

After recording i find that when clicking on certain div's or options in a dropdown (or an other element), it records it as "other" or as "Link". Then when i execute it, it goes well most of the time but with some steps test studio clicks the wrong element, or cant find the element.

I think this is due too it not having an id, but i came across an error where test studio filled the wrong inputfield even though all my input fields have an id. What am i doing wrong here?

 

 

 

2 Answers, 1 is accepted

Sort by
0
Sacha
Top achievements
Rank 1
answered on 01 Nov 2017, 11:30 AM

I think i fixed it by going in to settings and changing the find logic by putting the order to:

id

TextContent

TagIndex

...

Although i still sometimes get "Click 'Other' " when selecting a dropdown option what when executing clicks on a wrong dropdown. I can fix this by recording it again untill it says "Click 'somevalue' ". But i prefer not having to record that step over again everytime, can you help me with that.

 

0
Nikolay Petrov
Telerik team
answered on 06 Nov 2017, 09:59 AM
Hi Sacha,

Recorded steps depends in general of the type of the initial element. If it is not present as HTML select element the click on it would not be recorded as select one. Check on the original DOM structured (F12 -> Elements in Chrome) to have better idea on the elements type and how the find logic of each recorded one could be changed in order to have a stable test during the execution.

I hope this directions helps.

Best Regards,
Nikolay Petrov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Sacha
Top achievements
Rank 1
Answers by
Sacha
Top achievements
Rank 1
Nikolay Petrov
Telerik team
Share this question
or