+ All Categories
Home > Documents > Stable and reliable Web Automation

Stable and reliable Web Automation

Date post: 14-Mar-2016
Category:
Upload: magee-valdez
View: 20 times
Download: 0 times
Share this document with a friend
Description:
Stable and reliable Web Automation. - Narayan Raman. The Goal. Reduce testing effort Automate things that can be automated Tests should be Repeatable (Reliable) Maintainable Fast. Web Technologies. AJAX Web 2.0 Highly dynamic applications Lots of frameworks Newer, powerful browsers - PowerPoint PPT Presentation
Popular Tags:
11
- Narayan Raman
Transcript

- Narayan Raman

Reduce testing effort Automate things that can be automated

Tests should be◦ Repeatable (Reliable)◦ Maintainable◦ Fast

AJAX Web 2.0 Highly dynamic applications Lots of frameworks Newer, powerful browsers HTML5

Object IdentificationHandling AsynchronicityEvent SimulationReportingPlayback time optimization

Present methods◦ Id, name◦ Xpath◦ Css-selector

Xpath and Css-selectors are brittle◦ Too dependent on programmatic structure◦ Require programmatic knowledge

Business logic changes less than code Business drives User Interface

UI Relations◦_image(“plus.gif”, _near(_div(“My Documents”)))◦_textbox(0, _near(_label("Loan Amount")))◦_cell(0, _near(“Ram”), _under(“Loan Amount”))

More stable

Waits needed for◦ Page loads◦ Frame/iframe loads◦ AJAX request completion◦ Javascript timeout triggers

Hard coded waits◦ Wasteful

Conditional waits◦ Complicated

Tool should handle time outs automatically

Easy to create scripts◦ Good recorders on all browsers◦ Object Spy

Easy to debug scripts◦ Real time debugging to examine state of web page◦ Good reporting

Work across browsers and operating systems

Execute tests in parallel◦ Some Browsers allow separation of cookies across

instances Spread tests across machines Limit hard coded waits Use fast accessors

◦ Xpaths are very slow on IE

http://sahi.co.in

Open source toolSahi Pro – Commercial offering

Tester friendlyLight weight and scalable

V Narayan [email protected]

http://sahi.co.in/


Recommended