Testing my javascript webapp doesnt work

3 posts, 0 answers
  1. Sacha
    Sacha avatar
    3 posts
    Member since:
    Oct 2017

    Posted 01 Nov 2017 Link to this post

    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. Sacha
    Sacha avatar
    3 posts
    Member since:
    Oct 2017

    Posted 01 Nov 2017 Link to this post

    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.

     

  3. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    308 posts

    Posted 06 Nov 2017 Link to this post

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