I presented "What is WAAT" in "vodQA - Chennai" conference in Jan 2012. This is the slide deck I used.
I walked through what is web analytics, and then how WAAT can be used to automate the testing of the web analytics tags being reported from the client browser.
14. Flavors
WAAT-Java WAAT-Ruby
Original flavor Ruby gem implemented using WAAT-
JAVA
Available on github Available on github and rubygems
Source code + jar Uses RJB – Ruby-Java-Bridge
Supports Omniture Debugger + Supports only HttpSniffer solution
HttpSniffer solution
15. Omniture Debugger
Pros Cons
OS independent Browser dependent –
need to implement
ScriptRunner for the UI-
driver in use
Run using the regular Web-Analytic solution
test-user dependent - Omniture-
SiteCatalyst
16. HttpSniffer
Pros Cons
Web-analytic solution 3rd party libraries are OS
independent Dependent
Browser independent HTTPs not supported
out-of-the-box
UI-driver independent Run tests as ‘root’
25. Define Test Data
<Section
actionName="OpenUpcomingPage_HttpSniffer"
numberOfEventsTriggered="1"
tagList="pageName=upcoming:index||
cc=USD||
ch=upcoming||
events=event2||"/>
26. Verify Web Analytics Reporting
Cart.checkout();
Result verificationResult =
engine.verifyWebAnalyticsData (
inputDataFileName,
actionName,
urlPatterns,
minimumNumberOfPackets);
27. Sample Validations
assertNotNull(verificationResult.getVerificationStatus(),
"Verification status should NOT be NULL");
assertNotNull(verificationResult.getListOfErrors(),
"Failure details should NOT be NULL");
logVerificationErrors(verificationResult);
assertEquals(verificationResult.getVerificationStatus(),
Status.PASS, "Verification status should be PASS");
assertEquals(verificationResult.getListOfErrors().size(),
0, "Failure details should be empty");
29. Remember
Minimal changes to existing test framework
Does not depend on junit / testng / …
Web Analytic tool independent (HttpSniffer)
UI Driver framework independent
30. For more information
• Blog: http://essenceoftesting.blogspot.com/search/label/waat
• Github: https://github.com/anandbagmar/WAAT
• Github: https://github.com/anandbagmar/WAAT-ruby
• RubyGems: http://rubygems.org/gems/WAAT
• Email: Anand.Bagmar@thoughtworks.com, abagmar@gmail.com