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

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

3 Answers 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Grimmer
Top achievements
Rank 1
Richard Grimmer asked on 07 Oct 2010, 10:31 AM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 07 Oct 2010, 11:34 AM
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
0
Richard Grimmer
Top achievements
Rank 1
answered on 11 Oct 2010, 10:06 AM
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.
0
Nikolai
Telerik team
answered on 11 Oct 2010, 10:35 AM
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
Tags
General Discussions
Asked by
Richard Grimmer
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Richard Grimmer
Top achievements
Rank 1
Nikolai
Telerik team
Share this question
or