{"id":1840,"date":"2010-10-28T13:00:54","date_gmt":"2010-10-28T18:00:54","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=1840"},"modified":"2010-10-28T13:00:54","modified_gmt":"2010-10-28T18:00:54","slug":"soapui","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=1840","title":{"rendered":"SoapUI"},"content":{"rendered":"<span id=\"Overview\"><h2>Overview<\/h2><\/span>\n<span id=\"Test_Scenarios\"><h3>Test Scenarios<\/h3><\/span>\n<p>* Data driven testing<br \/>\n&#8211; with data from property files or database.<br \/>\n* Template driven testing<br \/>\n&#8211; Execute data driven testing sequentially.<br \/>\n* Groovy scripting testing<br \/>\n&#8211; Use user input dialogues<br \/>\n* Headless testing<br \/>\n&#8211; Integrate with build process.<\/p>\n<span id=\"SoapUI_Project\"><h2>SoapUI Project<\/h2><\/span>\n<span id=\"Create_a_New_SoapUI_Project\"><h3>Create a New SoapUI Project<\/h3><\/span>\n<p>* File -> New SoapUI Project<br \/>\n&#8211; Enter project name such as &#8216;Localhost-EchoService&#8217;.<br \/>\n&#8211; Enter Initial WSDL URL such as &#8216;http:\/\/localhost\/axis\/services\/echo?wsdl&#8217;<br \/>\n&#8211; Leave checked for &#8216;Create sample requests for all operations?&#8217;<br \/>\n&#8211; Click &#8216;OK&#8217; button.<\/p>\n<span id=\"Simple_Testing_Web_Services\"><h3>Simple Testing Web Services<\/h3><\/span>\n<p>* Click &#8216;+&#8217; sign and drill down to one of the operations until you see &#8216;Request 1&#8217;.<br \/>\n* Double click &#8216;Request 1&#8217;.<br \/>\n&#8211; Replace &#8216;?&#8217; marks with your own values.<br \/>\n&#8211; Click the green arrow located at the upper left corner to send in the request.<br \/>\n&#8211; Check the response on the right panel.<\/p>\n<span id=\"Test_Suite\"><h2>Test Suite<\/h2><\/span>\n<span id=\"Create_a_Test_Suite\"><h3>Create a Test Suite<\/h3><\/span>\n<p>* Right click project and select &#8216;New TestSuite&#8217;<br \/>\n&#8211; Enter name for the test suite such as &#8216;Echo TestSuite 1&#8217;.<br \/>\n&#8211; Click &#8216;OK&#8217; button.<\/p>\n<span id=\"Create_a_Test_Case\"><h3>Create a Test Case<\/h3><\/span>\n<p>* Right click newly created test suite and select &#8216;New TestCase&#8217;<br \/>\n&#8211; Enter name for the test case such as &#8216;EchoString TestCase 1&#8217;.<br \/>\n&#8211; Click &#8216;OK&#8217; button.<\/p>\n<span id=\"Create_a_New_Test_Case_Request\"><h3>Create a New Test Case Request<\/h3><\/span>\n<p>* Add request to test case<br \/>\n&#8211; Right click the request (echoString -> Request 1) to be added to test case and select &#8216;Add to TestCase&#8217;.<br \/>\n&#8211; Select &#8216;Echo TestSuite 1 &#8211; EchoString TestCase 1&#8217; from the drop down list.<br \/>\n&#8211; Click &#8216;OK&#8217; button.<br \/>\n* Specify test case options<br \/>\n&#8211; Enter name such &#8216;echoString &#8211; Request 1&#8217;.<br \/>\n&#8211; Check available options.<br \/>\n&#8211; Click &#8216;OK&#8217; button.<\/p>\n<span id=\"Specify_Assertions\"><h3>Specify Assertions<\/h3><\/span>\n<p>* Open the Assertions window by clicking the &#8216;Assertions&#8217; tab located to the bottom the SoapUI GUI.<br \/>\n* Click the &#8216;Add an assertion&#8230;&#8217; icon which is the first icon of the Assertions window.<br \/>\n* Select assertion to add, such as &#8216;Contains&#8217;.<br \/>\n* Click &#8216;OK&#8217; button.<br \/>\n* Specify assertions such as Content: Hello World.<\/p>\n<span id=\"Run_Test_Suite\"><h3>Run Test Suite<\/h3><\/span>\n<p>* Click the green run button to start testing.<\/p>\n<span id=\"Load_Test\"><h2>Load Test<\/h2><\/span>\n<p>* Load test is created against each test case.<\/p>\n<span id=\"Create_a_New_Load_Test\"><h3>Create a New Load Test<\/h3><\/span>\n<p>* Right click the Test Suite and select &#8216;New LoadTest&#8217;.<br \/>\n&#8211; Enter name for the new load test.<\/p>\n<span id=\"Load_Test_Configurations\"><h3>Load Test Configurations<\/h3><\/span>\n<p>* Threads: Simulate number of users<br \/>\n* Strategy: Simulate invoke intervals and activities<br \/>\n&#8211; Burst: simulates bursts of users.<br \/>\n&#8211; Simple: each thread is invoked at regular intervals.<br \/>\n&#8211; Variance: active thread numbers increase\/decrease variously.<br \/>\n&#8211; Thread: defines start thread numbers and end thread numbers.<br \/>\n* Assertions<br \/>\n&#8211; Click the &#8216;LoadTest Assertions&#8217; tab on the bottom of the UI to open the LoadTest Assertions windows.<br \/>\n&#8211; Click the &#8216;Add an assertion&#8230;&#8217; button to the upper left of the LoadTest Assertions window to add an assertion such as:<br \/>\n~ Max numbers of errors<br \/>\n~ Min numbers of transactions per second<br \/>\n~ Max time to run the test<\/p>\n<span id=\"SoapUI_Command_Line\"><h2>SoapUI Command Line<\/h2><\/span>\n<pre lang=\"bat\">\r\nC:\\prog\\soapui-3.5.1\\bin>testrunner.bat\r\nsoapUI 3.5.1 TestCase Runner\r\nusage: testrunner [options] <soapui-project-file>\r\n -v    Sets password for soapui-settings.xml file\r\n -t    Sets the soapui-settings.xml file to use\r\n -A    Turns on exporting of all results using folders instead of long\r\n       filenames\r\n -D    Sets system property with name=value\r\n -G    Sets global property with name=value\r\n -I    Do not stop if error occurs, ignore them\r\n -P    Sets or overrides project property with name=value\r\n -S    Saves the project after running the tests\r\n -a    Turns on exporting of all results\r\n -c    Sets the testcase\r\n -d    Sets the domain\r\n -e    Sets the endpoint\r\n -f    Sets the output folder to export results to\r\n -h    Sets the host\r\n -i    Enables Swing UI for scripts\r\n -j    Sets the output to include JUnit XML reports\r\n -p    Sets the password\r\n -r    Prints a small summary report\r\n -s    Sets the testsuite\r\n -u    Sets the username\r\n -w    Sets the WSS password type, either 'Text' or 'Digest'\r\n -x    Sets project password for decryption if project is encrypted\r\nMissing soapUI project file..<\/pre>\n<p>* Example<\/p>\n<pre lang=\"bat\">\r\nC:\\prog\\soapui-3.5.1\\bin>testrunner.bat -r C:\\test\\soapui\\my-soapui-project.xml\r\n\r\nSoapUI 3.5.1 TestCaseRunner Summary\r\n-----------------------------\r\nTime Taken: 9567ms\r\nTotal TestSuites: 1\r\nTotal TestCases: 1 (0 failed)\r\nTotal TestSteps: 7\r\nTotal Request Assertions: 0\r\nTotal Failed Assertions: 0\r\nTotal Exported Results: 0\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/www.soapui.org\/\">http:\/\/www.soapui.org\/<\/a><br \/>\n* Java Power Tools By: John Ferguson Smart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Test Scenarios * Data driven testing &#8211; with data from property files or database. * Template driven testing &#8211; Execute data driven testing sequentially. * Groovy scripting testing &#8211; Use user input dialogues * Headless testing &#8211; Integrate with &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=1840\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[75],"tags":[76],"class_list":["post-1840","post","type-post","status-publish","format-standard","hentry","category-wstest","tag-soatest"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s8cRUO-soapui","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1840"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1840\/revisions"}],"predecessor-version":[{"id":1841,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1840\/revisions\/1841"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}