Calibration tests with SoapUI

Creation of SoapUI calibration scripts

 

gazelle-calibration Installation

Installation

Install gazelle-calibration

If you don't have already a zip of the project create one with :

  • icons/
  • scripts/
  • site/
  • admin.php
  • calibrate.php
  • calibrate_fork.php
  • getCalibrationExecutions.php
  • getCalibrationResult.php
  • index.php
  • installation.sh
  • pom.xml
  • settings.xml

Send the zip to the VM :

scp /path/to/the/zip.zip gazelle@<VM>/tmp/

Connect to the VM and extract the zip :

unzip /tmp/gazelle-calibration.zip -d /tmp/gazelle-calibration

Edit installation.sh and make sure the variable APACHE_ROOT is correct. Execute the script :

sudo chmod +x installation.sh sudo /tmp/gazelle-calibration/installation.sh

Install xmllint :

sudo apt-get install libxml2-utils

Install maven :

sudo apt-get install maven

Install soapui :

cd /tmp wget https://s3.amazonaws.com/downloads.eviware/soapuios/5.4.0/SoapUI-x64-5.4.0.sh chmod +x SoapUI-x64-5.4.0.sh ./SoapUI-x64-5.4.0.sh

Install php DOM extension

Check the php version installed on the server :

php --version

Depending on the version, the package is different :

  • php-5 :

    sudo apt-get install php5-dom
  • php-7.0 :

    sudo apt-get install php7.0-xml
  • php-7.1 :

    sudo apt-get install php7.1-xml

Configuration

Gazelle-calibration

Check that the values in ~/gazelle-calibration/html/scripts/calibrate.sh are correct, especially INDEX_PATH and REFERENCES_PATH.

Htaccess

Create or add an existing htpasswd.users in /home/gazelle/gazelle-calibration/html. To add a new user type :

sudo htpasswd /home/gazelle/gazelle-calibration/html/htpasswd.users <user>

Add the following to the configuration file in /etc/apache2/site-enable :

 

<Directory /var/www/html/gazelle-calibration> 
Options +Indexes +FollowSymLinks +MultiViews 
Order allow,deny 
Allow from all AuthName 
"Calibration Access" AuthType Basic AuthUserFile /home/gazelle/gazelle-calibration/html/htpasswd.users Require valid-user </Directory><domain\>

 

/gazelle-calibration is now password protected.