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

Starting a test from inside a silverlight app?

3 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 25 Jan 2012, 12:28 AM
Currently the way I run telerik test studio on a silverlight app is that I hit 'record' and start running the silverlight app, then navigate into it to the point I want to test something, like for example I display a list of things I want to check have proper values.

Is it possible for me to skip the beginning stages, like for example can I login to the app, go to the screen I want, then on that screen run the tests without closing the silvelright app when the test is done, so I can run the test again if I wanted to (or slightly modify it and run it) without having to go back to the first few steps of the test where I would have to load up everything?

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 25 Jan 2012, 11:48 AM
Hello Ahmed,

Yes, it is possible to do that by using our "Run selected steps" feature. It can only be used while our recorder is attached and you are in record mode. 

    1. Navigate your browser to the desired location. 
    2. Attach the Recorder to the browser by clicking on the arrow below the Recorder button in Test Studio's UI.
    3. Highlight some steps, right-click and select Run -> Selected Steps. 

Run Selected Steps will run the highlighted steps against the browser to which you've currently attached your Recorder and the browser will remain open after the execution.

Check this video for more information.

Greetings,
Plamen
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
Ahmed
Top achievements
Rank 1
answered on 31 Jan 2012, 04:25 AM
Hi,

Thanks for the reply, it was really helpful.

My issue however is that I have a test list I want to run, when a test ends the browser closes and a new browser is opened and a set of predefined executions still happen.

What I want to do is for example run a test which logs into the silverlight app, loads a list of items then does a test on that list of items. When it finishes executing the test it will go straight into the next test without closing the browser and starting from scratch.

I tried doing tests where I caled one test from another test but there was no way I could step into the test being called and when it fails I have to check the log and figure out where the test is failing. Ideally I'd like to be taken directly to the failed step within the test being called.

0
Plamen
Telerik team
answered on 31 Jan 2012, 11:15 AM
Hello Ahmed,

To execute multiple tests in a single browser instance, set RecycleBrowser to True in Test List Settings to keep the browser open and reuse the same instance for each test in the list(see screenshot).

Greetings,
Plamen
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
Ahmed
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Ahmed
Top achievements
Rank 1
Share this question
or