Skip to content

A tool that opens expressen pages in two different test environments and juxtaposes the parameters of Omniture requests coming from the pages with same relative paths, logs the differences.

Notifications You must be signed in to change notification settings

vkamiansky/omniture-interceptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

omniture-interceptor

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.

  1. 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
  1. 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> 
  1. The testing process is started by running Interceptor.exe and pressing a key;

  2. 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#.

About

A tool that opens expressen pages in two different test environments and juxtaposes the parameters of Omniture requests coming from the pages with same relative paths, logs the differences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages