Starting a test from inside a silverlight app?

4 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    3 posts
    Member since:
    Dec 2011

    Posted 24 Jan 2012 Link to this post

    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?
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 25 Jan 2012 Link to this post

    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
  3. Ahmed
    Ahmed avatar
    3 posts
    Member since:
    Dec 2011

    Posted 30 Jan 2012 Link to this post

    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.

  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 31 Jan 2012 Link to this post

    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
Back to Top