soap ui oracle_brm_automated_performance_tests
TRANSCRIPT
Automated &Performance tests
Using SoapUI open source
@gudemadhumohan
Oracle BRM
Steps• Download and Install SoapUI 5.3
• Install Web Services Manager
• Install Apache or WebLogic
• Setup TestSuite in SoapUI
• Create automated test case with Groovy scripts
• Create load test/Add load
• Execute automated test / Performance test
Download and Install SoapUI
• http://www.soapui.org
• OpenSource version is free of cost
Web Services Manager and WebLogic
Web Services Manager
• http://edelivery.oracle.com
• Web Services Manager is optional component in BRM.
• Add ojdbc6.jar to lib folder of SoapUI.
WebLogic or Apache
• Download and install WebLogic or Apache in your BRM application server.
• Deploy Web Services Manager in WebLogic(Or)Apache.
• Access OOTB WSDL using the below link in web browser.
• http://<host>:<port>/<folder>/services/BrmBaseServices?wsdl
(replace host, port and installation folder in above URL)
Create Test-Suite in SoapUI• Open SoapUI• Click on New SOAP project as below
• Click on Add test Suite• Below shows “Automated_Performance_TestSuite_BRM”
Add test case, step and SOAP Request
Add test case and test step Add SOAP input
Fetch Flist values dynamically with Groovy
• Dynamic Flist Variables (highlighted below)
Fetch Flist values dynamically with Groovy
• Click on assertion script
Fetch Flist values dynamically with Groovy
• Below script is to fetch value from database and set to MSISDN field in Flist.
Verify the results of the test step
• Below script is to verify the output FList.
Add all your test cases and steps• Use the below line in all Groovy scripts.• sql.close() /*to close Database connection */
• Add the test cases and steps as many as you need.• As shown below
Run all test cases with one click
• Groovy script should have proper logic to verify results.
• Double click on test suite and click on button shown below, Results are ready for all scenarios
Add load to your test cases
• Add load to your test steps, increase threads as highlighted below.
• Right click on test case and add a load test.
Verify tps
• Tps is throughput per second, that’s the performance.
• Congratulations, Now you have automated and done performance for all you BRM tests in single click.