Igor Cernopolc - Http authentication in automated testing - presentation
-
Upload
codecampiasi -
Category
Documents
-
view
294 -
download
2
Transcript of Igor Cernopolc - Http authentication in automated testing - presentation
![Page 1: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/1.jpg)
HTTP authentication in automated testing – problems
and solutions
Igor Cernopolc Endava [email protected]
![Page 2: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/2.jpg)
![Page 3: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/3.jpg)
Usage
Intranet portals
Back office applications
Cross domain authentication (basic)
![Page 4: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/4.jpg)
Main problems
Non – HTML dialog
![Page 5: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/5.jpg)
Main problems
Non – HTML dialog
Different interface/implementations along the browsers
![Page 6: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/6.jpg)
Main problems
Non – HTML dialog
Different interface/implementations along the browsers
Consequence?
![Page 7: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/7.jpg)
Consequence
Lots of workarounds for handling authentication
dialogs during automated web testing
![Page 8: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/8.jpg)
Browser
based
Solutions
Browser based
Passing the username/password in the HTTP request (http://user:[email protected])
![Page 9: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/9.jpg)
Browser
based
Browser
based
Solutions
Browser based
Passing the username/password in the HTTP request (http://user:[email protected])
Firefox profiles
![Page 10: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/10.jpg)
Browser
based
Browser
based
Browser
based
Solutions
Browser based
Passing the username/password in the HTTP request (http://user:[email protected])
Firefox profiles
Setting the appropriate cookie
![Page 11: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/11.jpg)
Browser
based
Solutions
External
Firefox AutoAuth addon
![Page 12: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/12.jpg)
Browser
based
Browser
based
Solutions
External
Firefox AutoAuth addon
java.awt.Robot class
![Page 13: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/13.jpg)
Browser
based
Browser
based
Browser
based
Solutions
External
Firefox AutoAuth addon
java.awt.Robot class
Autoit, Siculi scripts
![Page 14: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/14.jpg)
![Page 15: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/15.jpg)
![Page 16: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/16.jpg)
My Solution
Webdriver
Java
![Page 17: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/17.jpg)
My Solution
Webdriver
Java
+
AutoitX
![Page 18: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/18.jpg)
My Solution
Webdriver
Java
+ =
AutoitX
![Page 19: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/19.jpg)
My Solution
![Page 20: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/20.jpg)
My Solution
![Page 21: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/21.jpg)
My Solution
![Page 22: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/22.jpg)
My Solution
![Page 23: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/23.jpg)
My Solution
![Page 24: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/24.jpg)
![Page 25: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/25.jpg)
My Solution
![Page 26: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/26.jpg)
My Solution
![Page 27: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/27.jpg)
My Solution
![Page 28: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/28.jpg)
Limitations
Windows based
Selenium Grid
![Page 29: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/29.jpg)
Limitations
Windows based → Siculi?
Selenium Grid → .exe script based calls?
→ duplicate workspace?
![Page 30: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/30.jpg)
Conclusions
Don’t be afraid of using multiple tools when it is required. Combine and innovate and
you will succeed.
![Page 31: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/31.jpg)
Please don’t forget to fill in the evaluation form
Thank you
![Page 32: Igor Cernopolc - Http authentication in automated testing - presentation](https://reader033.fdocuments.net/reader033/viewer/2022060122/559625c31a28ab804a8b45b8/html5/thumbnails/32.jpg)
Diamond Sponsors
Platinum Sponsors Gold Sponsors
Training Partners Media Partners Other Partners