Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
web_login_handling [2020/05/10 03:37] admin removed |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Handling Basic Auth for Web Apps ===== | ||
| - | Many web sites and web applications require some kind of access control to certain web pages. One way to do this is to use [[http:// | ||
| - | |||
| - | The use of such user authentication poses challenges to web app testing as the popup login window (example: http:// | ||
| - | |||
| - | $webAuth(authType, | ||
| - | |||
| - | * authType_p: the type of authentication currently only // | ||
| - | * userID_p: the login user id | ||
| - | * password_p: the password | ||
| - | * waitMillis_p: | ||
| - | * gotoURL_p: first web page to goto after the logging in | ||
| - | |||
| - | | ||
| - | |||
| - | All you have to do is to set your appURL for the model to any page protected by HTTP Basic Authentication and then place the above mScript method call in // | ||
| - | |||
| - | Execute your model and you should see the HTTP Basic Authentication login window pop up, the system automatically enters the user id and password you supplied in // | ||