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

How can UserName/Password on a Logon dialog be driven out of a Config file ?

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
MSCRM
Top achievements
Rank 1
MSCRM asked on 10 Feb 2016, 11:26 AM

Hi,

I am using the Telerik test studio for the first time. The problem I have with the Test studio tool is how can I customize the Username and Password fields available on the Logon dialog to be driven out of a configuration file ?

 

Suppose we have a web application which can deployed on multiple servers and the authentication to each of these is done using the Logon dialog,  For eg. http://Server1 has login creds AAA/BBB and http://Server2 has login creds CCC/DDD. Is it possible to customize the logon dialog such that the username and password fields are driven out of a config file which stores the username and password for the respective server.

 Regards,

Venkat

2 Answers, 1 is accepted

Sort by
0
MSCRM
Top achievements
Rank 1
answered on 10 Feb 2016, 02:33 PM

I think I got the answer. Its already documented. 

// Add a logon dialog support with username/passwordManager.DialogMonitor.AddDialog(new LogonDialog(ActiveBrowser, "<username>", "<password>", DialogButton.OK));Manager.DialogMonitor.Start();

// Navigate to a page that need a logonActiveBrowser.NavigateTo("<Place a Url to LogOn to here>");// Dialog should be automatically handled

 

Thanks

Venkat

0
Boyan Boev
Telerik team
answered on 12 Feb 2016, 12:17 PM
Hello Venkat,

Happy to hear that.

If you need additional assistance please let us know.

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