igor cernopolc - http authentication in automated testing - presentation

32
HTTP authentication in automated testing – problems and solutions Igor Cernopolc Endava [email protected]

Upload: codecampiasi

Post on 03-Jul-2015

290 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Igor Cernopolc - Http authentication in automated testing - presentation

HTTP authentication in automated testing – problems

and solutions

Igor Cernopolc Endava [email protected]

Page 2: Igor Cernopolc - Http authentication in automated testing - presentation
Page 3: Igor Cernopolc - Http authentication in automated testing - presentation

Usage

Intranet portals

Back office applications

Cross domain authentication (basic)

Page 4: Igor Cernopolc - Http authentication in automated testing - presentation

Main problems

Non – HTML dialog

Page 5: Igor Cernopolc - Http authentication in automated testing - presentation

Main problems

Non – HTML dialog

Different interface/implementations along the browsers

Page 6: Igor Cernopolc - Http authentication in automated testing - presentation

Main problems

Non – HTML dialog

Different interface/implementations along the browsers

Consequence?

Page 7: Igor Cernopolc - Http authentication in automated testing - presentation

Consequence

Lots of workarounds for handling authentication

dialogs during automated web testing

Page 8: Igor Cernopolc - Http authentication in automated testing - presentation

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

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

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

Browser

based

Solutions

External

Firefox AutoAuth addon

Page 12: Igor Cernopolc - Http authentication in automated testing - presentation

Browser

based

Browser

based

Solutions

External

Firefox AutoAuth addon

java.awt.Robot class

Page 13: Igor Cernopolc - Http authentication in automated testing - presentation

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
Page 15: Igor Cernopolc - Http authentication in automated testing - presentation
Page 16: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Webdriver

Java

Page 17: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Webdriver

Java

+

AutoitX

Page 18: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Webdriver

Java

+ =

AutoitX

Page 19: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 20: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 21: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 22: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 23: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 24: Igor Cernopolc - Http authentication in automated testing - presentation
Page 25: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 26: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 27: Igor Cernopolc - Http authentication in automated testing - presentation

My Solution

Page 28: Igor Cernopolc - Http authentication in automated testing - presentation

Limitations

Windows based

Selenium Grid

Page 29: Igor Cernopolc - Http authentication in automated testing - presentation

Limitations

Windows based → Siculi?

Selenium Grid → .exe script based calls?

→ duplicate workspace?

Page 30: Igor Cernopolc - Http authentication in automated testing - presentation

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

Please don’t forget to fill in the evaluation form

Thank you

Page 32: Igor Cernopolc - Http authentication in automated testing - presentation

Diamond Sponsors

Platinum Sponsors Gold Sponsors

Training Partners Media Partners Other Partners