Basics - HtmlInputText identified in recorder, not found when running tests

4 posts, 1 answers
  1. Richard Grimmer
    Richard Grimmer avatar
    13 posts
    Member since:
    Feb 2006

    Posted 07 Oct 2010 Link to this post

    Guys,
    I'm just starting out with the Studio, and seeing if it's a good fit for what we want to do....so far so so (REALLY dislike the code that's generated when using the recorder, and having issues with having to hit re-configure on a regular basis when we swap out Silverlight apps, but I digress).

    The problem is that I have a page with an Html Input textbox - txtCode. Since it's in a container, it's "actual" id is _ctl0_txtCode as we'd expect. The control has some keypress javascript handlers added, but other than that is completly standard.

    When I fire up the recorder and navigate to the page, I'm able to identify and click on an image next to the text box, and then in the steps section of the recorder it all seems to be OK. If I then re-run the tests, everything is fine - the image is found correctly. However the same is not happening with the textbox - I can correctly identify it and set up a condition in the recorder using quick steps, but when I come to re-run, it fails with "the given key was not present in the dictionary" exception.

    I've attempted to edit the stp (again in the VS plugin), and can correctly navigate to the cotrol in the DOM tree, clicking the "Highlight in dom tree" correctly highlights the element, but as soon as I attempt to validate the step, same exception.

    Any ideas?
  2. Answer
    Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 07 Oct 2010 Link to this post

    Hello Richard,

    Thank you for contacting us.

    This actually sounds like a bug we are aware of and fixed recently. I suggest you give the latest internal build a try and please confirm that resolves the problem for you as well.

    Please post back should you need further assistance and I hope you enjoy your evaluation of WebUI Test Studio.

    Best wishes,
    Konstantin Petkov
    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. Richard Grimmer
    Richard Grimmer avatar
    13 posts
    Member since:
    Feb 2006

    Posted 11 Oct 2010 Link to this post

    Hi there Konstantin,
    Firstly, apologies for not replying sooner, but I've been Out of the Office for a few days.

    OK - that new build seems to fix the problem - I'm now able to identify and query properties of the textbox.

    I did have a small problem (which I seem to run into from time to time), in that I needed to recreate the recorded test - when running the original in the Steps - > Run to here option, the tests fired up and performed correctly, but when debugging (F5) or using the test list editor I was getting an immediate fail - reporting that the codebehind assembly (not file) could not be found - seems to occur when manually tewaking the tests in code,

    Anyway - seems to be fine - I have some issues with popup Telerik windows, but I'll start a new thread on that one if I can't get it resolved.

    Many thanks for your help.

    R.
  4. Nikolai
    Admin
    Nikolai avatar
    111 posts

    Posted 11 Oct 2010 Link to this post

    Hello Richard Grimmer,

     If you use VS 2010 there is a Deployment option in the Local.testsettings that you need to enable in order to debug a test. (see attachment)

    Greetings,
    Nikolai
    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
Back to Top