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

3 posts, 0 answers
  1. MSCRM
    MSCRM avatar
    2 posts
    Member since:
    Feb 2016

    Posted 10 Feb Link to this post

    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. MSCRM
    MSCRM avatar
    2 posts
    Member since:
    Feb 2016

    Posted 10 Feb in reply to MSCRM Link to this post

    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

  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1043 posts

    Posted 12 Feb Link to this post

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