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

[Solved] Rotating Token Logins - Existing Browser Window?

1 Answer 64 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aaron Hockley
Top achievements
Rank 1
Aaron Hockley asked on 17 Dec 2009, 05:02 PM
Is there any way for a WebAii test to execute against an already-running browser instead of firing off a new one?

We have a web application that uses a rotating RSA token for authentication... each user has a key fob that features a new numeric code every 30 seconds.  The combination of their username, password, and RSA code are used for authentication.  Because the code changes every 30 seconds, the login can't easily be scripted.

Is there any way for me to manually log into the application and then set my tests to execute against that existing (authenticated) browser window?

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 17 Dec 2009, 07:52 PM
Hi Aaron,

Unfortunately, WebUI currently cannot attach to a browser that is not launched by WebUI itself. Would it be possible to have WebUI launch a browser instance and then programmatically call into the authentication program or tool?

So converting a navigation step to code would look something like this:

[CodedStep("Navigation Step")]
public void NavigationStep()
{
    // Custom code goes here
    ActiveBrowser.NavigateTo("http://www.google.com");
}

WebUI will launch a browser instance, but if you write in any code before the ActiveBrowser.NavigateTo() it will run before a navigation occurs. So I was wondering if you can launch the tool using code to authenticate the browser, then let WebUI run the navigation step and the rest of your test.

Greetings,
Nelson Sin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Telerik Testing Framework
Asked by
Aaron Hockley
Top achievements
Rank 1
Answers by
Missing User
Share this question
or