--------------------------------------------------- ############# EPR-UPI-MockUp-0213_1.0 ############# ## Default information ## default_path: /upi-epd-id-eCH-0213_cc/ws/managementService/1 default_port: 8090 default_mock_name: EPR-UPI-MockUp-0213_1.0 ## Progress of requests / responses ## Done: - request: - 01_generate_request_1 - 02_inactive_request_1 - 03_cancel_request_1 - response: - 01_generate_response_1 - 02_inactive_response_1 - 03_cancel_response_1 To do: ## Requirements ## - Install the following paquets: sudo apt-get install -y libxrender1 libxtst6 libxi6 - To resolve errors when we instanciate the mock: sudo mv /root/.soapuios/ /root/.soapuios_old ## Instanciate mock from init.d script - Edit the init.d script 'init.d/mock-eCH-0213-1.0' and set the following environment variables: - SOAPUI_PATH => Path of SoapUI folder - SOAPUI_PROJECT_VERSION => Version of SoapUI project - SOAPUI_PROJECT_PATH => Path of SoapUI project script - SOAPUI_MOCK_NAME => Name of the SoapUI mock - SOAPUI_MOCK_PORT => Port of the SoapUI mock - SOAPUI_MOCK_PATH => Path of the SoapUI mock - Copy the SVN project in your SoapUI project directory: sudo cp -R EPR-UPI-MockUp /usr/local/SmartBear/SoapUI-5.3.0/ - Type the following commands to launch the mock from the init.d script: sudo mkdir /var/log/soapui sudo cp init.d/mock-eCH-0213-1.0 /etc/init.d/mock-eCH-0213-1.0 sudo chmod u+x /etc/init.d/mock-eCH-0213-1.0 sudo chmod 775 /etc/init.d/mock-eCH-0213-1.0 sudo update-rc.d mock-eCH-0213-1.0 defaults - To run the mock: sudo /etc/init.d/mock-eCH-0213-1.0 start - To stop the mock: sudo /etc/init.d/mock-eCH-0213-1.0 stop - To get status of the mock: sudo /etc/init.d/mock-eCH-0213-1.0 status ## Instanciate mock from script ## Edit the script 'scripts/instanciate.sh' and set the following environment variables: - SOAPUI_PATH => Path of SoapUI folder - SOAPUI_PROJECT_VERSION => Version of SoapUI project - SOAPUI_PROJECT_PATH => Path of SoapUI project script - SOAPUI_MOCK_NAME => Name of the SoapUI mock - SOAPUI_MOCK_PORT => Port of the SoapUI mock - SOAPUI_MOCK_PATH => Path of the SoapUI mock And run the script: sudo chmod u+x scripts/instanciate.sh cd scripts/ sudo ./instanciate.sh To run in background: sudo ./instanciate.sh & --------------------------------------------------