--------------------------------------------------- ############# EPR-UPI-MockUp-0213_1.0 ############# ## Default information ## default_path: /upi-epd-id-eCH-0214_cc/ws/queryService/1 default_port: 8091 default_mock_name: EPR-UPI-MockUp-0214_1.0 ## Progress of requests / responses ## Done: - request: - 01_getInfo_request_1 - 02_searchPerson_request_1 - 02_searchPerson_request_2 - 02_searchPerson_request_3 - response: - 01_getInfo_response_1 - 02_searchPerson_response_1 - 02_searchPerson_response_2 - 02_searchPerson_response_3 To do: - request: - 03_compareData_request_1 - response: - 03_compareData_response_1 ## 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-0214-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-0214-1.0 /etc/init.d/mock-eCH-0214-1.0 sudo chmod u+x /etc/init.d/mock-eCH-0214-1.0 sudo chmod 775 /etc/init.d/mock-eCH-0214-1.0 sudo update-rc.d mock-eCH-0214-1.0 defaults - To run the mock: sudo /etc/init.d/mock-eCH-0214-1.0 start - To stop the mock: sudo /etc/init.d/mock-eCH-0214-1.0 stop - To get status of the mock: sudo /etc/init.d/mock-eCH-0214-1.0 status - Logs are available here: /var/log/soapui/EPR-UPI-MockUp-0214_1.0.log ## 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 & --------------------------------------------------