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

Test Studio various issues

5 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
veri555999
Top achievements
Rank 1
veri555999 asked on 09 Sep 2015, 10:56 AM

Hi, first time poster here.

Sorry for the abstract title, it's just that I'm experiencing various issues with Test Studio and I thought I'd keep them all in one thread.

Is that okay or should I make separate threads for each issue?

5 Answers, 1 is accepted

Sort by
0
veri555999
Top achievements
Rank 1
answered on 10 Sep 2015, 12:47 PM

Okay, I'll be posting here. (sorry for the crappy paint skills and/or inability to explain my problems in technical terms)

 I have been assigned to record tests for some hospital records we're working on. This is one of the issues that come up.

 In the image there's a date picker. When you click the little clock, the time picker opens, which has hours and minutes. If I click on the hours, a more specific picker opens with 24 selections and alternatively the same thing happens for the minutes. Now, I recorder myself setting the time using those pickers. The first PickSpan playbacks normally, though the playback gets stuck on the second one.

Note that it does not always get stuck (I've re-recorded this many times, in one playback it passes, but gets stuck on another date picker). Simulating a real click does not help.

 

Thanks in advance for your replies.

0
Cody
Telerik team
answered on 10 Sep 2015, 03:14 PM
Hi,

Let me address this question first:

Is that okay or should I make separate threads for each issue?

Generally we prefer unrelated technical problems on separate threads or support tickets. That way we can more easily track what is resolved, how it was resolved, and what isn't resolved yet. A quick list of questions are fine to group together. Also technical problems that are very closely related are fine to group together.

Moving on, let's tackle your date/time picker issue. From a very high level, my first reaction is don't try to automate such UI controls. Automating these are very tricky, time consuming and brittle. You usually end up spending considerable time maintaining a test like this. Most Date/Time pickers will populate an input field once the selection has been made. So instead I recommend recording a step that directly types the date/time into an input field. If your input field is set to ReadOnly i.e. you cannot type into it, I recorded this video how you can set text on such a field:
http://www.screencast.com/t/xuKBBFKoS

Let's work the problem from this angle instead of trying to solve the problem of automating the date/time picker.


Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
veri555999
Top achievements
Rank 1
answered on 11 Sep 2015, 07:09 AM

Hello Cody,

That doesn't really answer my question. I want to know why this happens. There are 2 date pickers, they are the same, so why isn't the record/playback functionality the same for them? Why does one playback normally and the other is screwed up?

I need to auto-test every element, because in the end these tests will be put into prod stage. Would editing the test in code help?

0
veri555999
Top achievements
Rank 1
answered on 11 Sep 2015, 11:29 AM
Alright, I found out.

Since the time picker automatically sets the current time, the test wouldn't pass, because the time had changed.

I just made it so the picker is identified by its class name and not by value.

This was kind of a no-brainer, to be honest. Thanks again, Cody. (also, really supportive answers as I've read in the other threads, good job :)
0
Cody
Telerik team
answered on 11 Sep 2015, 01:34 PM
Hi,

Good detective work on your part! I'm glad you came up with a workable solution.

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