14
Automated & Performance tests Using SoapUI open source @gudemadhumohan Oracle BRM

Soap ui oracle_brm_automated_performance_tests

Embed Size (px)

Citation preview

Page 1: Soap ui oracle_brm_automated_performance_tests

Automated &Performance tests

Using SoapUI open source

@gudemadhumohan

Oracle BRM

Page 2: Soap ui oracle_brm_automated_performance_tests

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

Page 3: Soap ui oracle_brm_automated_performance_tests

Download and Install SoapUI

• http://www.soapui.org

• OpenSource version is free of cost

Page 4: Soap ui oracle_brm_automated_performance_tests

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)

Page 5: Soap ui oracle_brm_automated_performance_tests

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”

Page 6: Soap ui oracle_brm_automated_performance_tests

Add test case, step and SOAP Request

Add test case and test step Add SOAP input

Page 7: Soap ui oracle_brm_automated_performance_tests

Fetch Flist values dynamically with Groovy

• Dynamic Flist Variables (highlighted below)

Page 8: Soap ui oracle_brm_automated_performance_tests

Fetch Flist values dynamically with Groovy

• Click on assertion script

Page 9: Soap ui oracle_brm_automated_performance_tests

Fetch Flist values dynamically with Groovy

• Below script is to fetch value from database and set to MSISDN field in Flist.

Page 10: Soap ui oracle_brm_automated_performance_tests

Verify the results of the test step

• Below script is to verify the output FList.

Page 11: Soap ui oracle_brm_automated_performance_tests

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

Page 12: Soap ui oracle_brm_automated_performance_tests

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

Page 13: Soap ui oracle_brm_automated_performance_tests

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.

Page 14: Soap ui oracle_brm_automated_performance_tests

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.