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

Coded steps in storyboard are not recorded

10 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zymantas
Top achievements
Rank 1
Zymantas asked on 30 Sep 2013, 01:24 PM
Hello, 

   This is stupid. Why coded steps aren't recorded in storyboard? I want to export test steps as html, and see screenshots on every test action was made. But to my surprise, for some reason, apparently you can't see coded steps screenshots. Why?
    What if i want to see what was done in sequence of test actions? My coded steps has some simple randomization in entering text.

UPDATE:

2. [RegistrationTest_CodedStep] : Enter text 'ZENKLOPAVADINIMAS' in 'BrandNameText'


here is what i see in exported result. it does not even enter "zenklopavadinimas" in that field.

p.s. i am using test studio.

10 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Top achievements
Rank 2
answered on 30 Sep 2013, 01:55 PM
There are numerous feedback requests for the addition of screenshots to coded steps (such as http://feedback.telerik.com/Project/117/Feedback/Details/60855-add-custom-screen-shot-to-storyboard).

It's definitely one I would enjoy having available, as I have a lot of coded steps.

Please like and comment on those in the feedback portal.  The more attention they receive, the more likely we will see them in future builds.
0
Zymantas
Top achievements
Rank 1
answered on 30 Sep 2013, 01:59 PM
Yeah, thanks, seems a long way to...
0
Cody
Telerik team
answered on 30 Sep 2013, 04:28 PM
Hello,

What screen shot would both of you like to see put in the storyboard for coded steps? Keep in mind when you click "Script Step" or "Customize in code":

  • There may be no browser open at all.
  • The browser might be on the wrong screen.
Your input will help us determine the best way to implement this feature.
Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Cody
Telerik team
answered on 30 Sep 2013, 04:36 PM
Hello,

I almost forgot to mention, the description that is put in the storyboard for coded steps comes directly out of the code. See the two attached screen shots for how this works. This allows you to make it anything you want.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Daniel
Top achievements
Rank 2
answered on 30 Sep 2013, 04:48 PM
Hi Cody,

Just like is posted at http://feedback.telerik.com/Project/117/Feedback/Details/60855-add-custom-screen-shot-to-storyboard, my main concern is alert dialogs or any other dialog that is being handled by a custom dialog handler.  If we launch a new browser and connect in code, then take a screenshot of a section, that would also be nice to be able to add to the StoryBoard.

Just my thoughts.
0
Zymantas
Top achievements
Rank 1
answered on 30 Sep 2013, 08:59 PM
Mr. Cody screenshots isn't' helpful at all. I answer your question with a question. But what if browser is open in coded ui step(s)? It is important for reporting to have screenshot of what it is doing. Is it so hard to determine if the browser is active or not? Well basically you'r doing web testing, so is there any case where you not doing it on browser?
Even so if that "coded(scripted) step action" isn't doing everything at all to a browser window, can't it have additional option to select if i needed a screenshot?
Whats the purpose of that storyboard if it only can capture non scripted step? If i am testing for example registration form? I don't think i am going to use static data. i am also not going to use any data from external sources, because i have for that random input generators, and i want it to be as more dynamic it can be.
Reporting is not only for a tester who wrote a test. It should be way more informative. If it was scheduled test somewhere on the server? How else will i know what was doing during that test? Maybe something unexpected occurred? What if a client want's to see test results? he is going to read that all codish step gibberish?

I think you guys are very smart. I don't think i should waste any time raising questions. It is quite simple and obvious.
0
Cody
Telerik team
answered on 01 Oct 2013, 07:00 PM
Hello and thank you both for your feedback,

I think you both are fully aware that coded steps are a very powerful feature of Test Studio. What you can do in a coded step is only limited by your programming skills. The code can easily be doing something that doesn't even interact with the application being tested (in a browser or a WPF application). When that is the case, obviously it doesn't make sense to automatically take a screen shot of the application because that wouldn't represent what the code is trying to do.

Another complication is the code can easily be interacting with multiple screens of the application. We have a technical limit of one screen shot per test step, which means we can't add multiple screen shots of multiple pages for the one coded step.

For all the above reasons we chose to not automatically take a screen shot... it would be wrong too often. But it does make very good sense to give you the ability to insert your own custom screen shot/image of your own choosing for your coded steps. That's what the feature request is all about. I am hopeful we'll be able to implement this feature in the near future.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Daniel
Top achievements
Rank 2
answered on 01 Oct 2013, 08:22 PM
Thanks Cody.  I understand the reasonings, and appreciate the response.  Thanks again for the feature request.
0
Fairuz
Top achievements
Rank 1
answered on 29 Oct 2015, 10:54 AM

Hi Cody,

Any updates on this request? 

 

Rgds,

Fairuz

 

 

0
Cody
Telerik team
answered on 29 Oct 2015, 05:22 PM
Hi Fairuz,

I'm assuming you're referring to this feature request? No there has been no progress on this one. At this time we have too many other higher priority features we're working on, such as mobile testing.

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