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

Keep Browser/Recording Surface Open

6 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 14 Apr 2011, 01:34 PM
How can the browser window serving as the recording surface be limited to one session?

I am setting up our tests with building blocks, I could have:
1. login scenario
2. menu navigate scenario
3. fill in a form scenario

In order to get to 3, 1 and 2 must be run. So what would seem more natural while developing the tests (not for regular runs for which the run and drop session makes sense) is to be able to run 1, keep browser session open, run 2, stay open, and now work on recording 3. But now what happens is that in order to record 3 I need to manually do the actions of 1 and 2 from the recording surface to get to the right starting point.

I suspect I am missing something in the paradigm here and recognize the possibility that I'm asking the wrong question to solve my problem. :)

(We're evaluating WebUI which looked really promising for what we want to be doing.)
Steve

6 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 14 Apr 2011, 04:47 PM
Hello Steve,

I suspect what you really need is learn about and use our "Connect to open browser" feature as shown in the attached screen shot. The idea here is that you can manually launch IE, manually perform your login and navigate to your starting point, then attach our recording to this already open browser window and record your test 3 as you have described (filling in a form). Will this fit your needs?

Kind regards,
Cody
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
Steve
Top achievements
Rank 1
answered on 26 Apr 2011, 01:34 PM
Sounds close but I'm not getting this right. Where can I do the "learn about" ? :) Search on "open browser" in "WebUI Test Studio QA Edition Made Easy" (by Noel Rice and Lino Tadros) comes up empty. Is there some other documentation I should be using?

If I'm understanding WebUI paradigm correctly, what I want is to be able to both RUN (any file) and RECORD (any file) from the same browser session.

Steve

p.s. Apologies for late response, I was on vacation.
0
Cody
Telerik team
answered on 29 Apr 2011, 08:55 PM
Hello Steve,

The manual you are referring to is over a year old now. The Connect to Existing Browser feature was added after that manual was published. Here's a training video on it. We have lots of training video's here, KB articles here, and a brand new Users Guide about to go live here.

Greetings,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Steve
Top achievements
Rank 1
answered on 11 May 2011, 09:45 AM
OK, but how do I keep the browser session open from which I ran a test?

That is, I want to run test 1 (ex. login to application) and build test 2 upon the status after 1 was run. But what happens is that 1 runs and then closes the browser upon completion. A lot of test development is blocks that build upon a given browser-application status.

Steve

Back from vacation. :)
0
Cody
Telerik team
answered on 16 May 2011, 11:22 PM
Hello Steve,

My recommendation is to follow these steps:

1) Open your Login test
2) Using the Run To Here feature to execute all the steps of your Login test. Say that test has 14 steps, right click and step 14 and select Run To Here.

That will launch the browser, execute the steps 1-14, then switch into Record mode. From there leave the recorder browser open and create as many new tests as you need.

Will that work for you?

Kind regards,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Shashi
Top achievements
Rank 1
answered on 18 May 2011, 09:53 PM

Hi Steve,

Here is another way which may accomplish what (I think) you want to do.  This is the way I have resolved this issue for our application.

Login test 
All steps to login.

Menu navigation test
If (not logged in)
{
      Call login test
}
Execute Menu navigation steps.

Fill in a form test
if (not logged in)

{

      Call login test

}

 

if (not on correct page)

{

    call menu navigation test
}
Execute steps to invoke form and fill it in.

This allows you to run each of the tests independently and it also allows you to chain them together.  Each test executes only those steps that it needs to depending on the scenario.  You do need to implement the "not logged in" and "not on correct page" based on your application.  Both will have to be a single verification check as WebUI does not support custom verification tests).

Another advantage of the above is that it also allows you to debug failures in child tests when running the parent tests (as you know, WebUI does not currently allow you to debug into a child test from a parent test).

Hope that helps,
Shashi

Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Cody
Telerik team
Steve
Top achievements
Rank 1
Shashi
Top achievements
Rank 1
Share this question
or