Omniture Interceptor is a regression testing tool designed for the Expressen statistics functionality. It runs a specified set of Expressen pages through a number of test scenarios and tracks the discrepancies between the Omniture requests as formed by two different environments.
The tool has been tested to run properly on a Windows 7 machine with Firefox installed and without network access restrictions through firewall or otherwise applied.
The tool uses Selenium WebDriver to carry out it's automated testing scenarios.
- The relative paths of the pages called during the tests are specified in testpath.txt.;
Example file content:
tv/nyheter/forlorade-halva-skallen-nar-han-korde-drogpaverkad/
nyheter/plus-folj-presidentvalet---direkt-pa-expressen/
nyheter/utmaningarna-for-framtidens-sverigey/
nyheter/tag-star-stilla-i-skane-efter-olycka-i-hoor/
nyheter/anton-17-tar-traktorn-till-skolan-i-klippan/
nyheter/live-temperaturen-kommer-stiga-i-ratten/
nyheter/sra-quiz/
nyheter/tva-friade-for-utlandsfiske/
nyheter/jag-at-sakert-ett-par-kilo-socker-i-veckan/
sport/
sok/?q=lyssna
- The base addresses for the two environments - the current and the candidate - are specified in Interceptor.exe.config;
Example environments config section:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
...
<appSettings>
<add key="current" value="http://exp-cms-test2.bonnierdigitalservices.se/"/>
<add key="candidate" value="http://exp-cms-test6.bonnierdigitalservices.se/"/>
</appSettings>
</configuration>
-
The testing process is started by running Interceptor.exe and pressing a key;
-
The differences between parameters of the requests captured for the candidate and the current environments as well as all the caught requests will be saved to the log-file.txt. When the program successfully matches all requests it will ask you to press a key to open the log file and leave the program.
The test scenarios currently implemented include the following:
- Opening page addresses in two environments on mobile and desktop plus the following:
- Slideshow next on desktop. Slideshow full screen on mobile.
- Sharing buttons, mail button on desktop and mobile. Print button on desktop.
- Tabs widget on start page: switching tabs, show more, link click on mobile and desktop. Senaste dygnet on desktop.
- HTML player: waiting for the autorun video to end on desktop and mobile.
- Quiz next, next, complete on desktop and mobile.
The tool is written in F#. If F# looks double Dutch to you, please, learn the basics of F#.