Contributions
Re: How to run more than 1 test suite via maven...
harryHad to apply hack. I am assuming you are passing names of test suites/cases to run to testRunner or maven command. In Before Project Run Event Handler, capture test suite/case names. Iterate full project and disable every test suite/case dynamically which does not match your input. Let me know if you got the idea.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.9KViews0likes1CommentRe: Event handler is not triggered when running a REST test step from a Groovy step.
New2APInmraoI ran intosimilar problem today, any help Original Problem in this post is solved in latest versions of ready api but still there is 1 place from where event handler is not running, see problem statement below. Problem Statement : Create 1 event handler of type TestRunListner.afterStep in which i am doing something. In my project there is a groovy test step which run another rest test step named as "API" via below code which does not trigger event handler. Does Not Work def runner = testRunner.testCase.testSuite.testCases['TS1TC1'].getTestStepByName("API") runner.run(testRunner,context) Works If i have groovy script like below, event handler gets triggered. testRunner.gotoStepByName("API") //OR testRunner.runTestStepByName("API")6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes1CommentRe: How to get reporting at test step level instead of test case level what surefire currently provides
Its possible to get step leveldata/result/request during runtime only. So i had to use event handler of type "TestRunListener.afterStep". This event handler runs after every step and collect the data and use it basis my need. Save the data in project variable in json format or something and after project run completes it processes it at once or in batches.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.7KViews0likes0CommentsRe: How to run more than 1 test suite via maven...
Yes my test are independent and my company 100s of APIs projects, each project is 1 build in POM on which i run test goal of maven to run my project. In same build block i wanted to have flexibility if full project should run or selected test suites. Thanks for your prompt replies though.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.5KViews0likes5CommentsRe: How to run more than 1 test suite via maven...
Yeah of course removing testSuite property and running multiple builds will run my multiple test suites. My project has 10 test suites and user can run more than 1 test suite at a time, not necessarily he/she wants to run all 10 test suites. Leaving testSuite property empty will run full project.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.5KViews0likes7CommentsHow to run more than 1 test suite via maven...
clean test -Dsoapui.test-suite=My Test Suite I run my project by above command and test suite is set in configuration block in pom.xml <testSuite>My Test Suite</testSuite> By passing comma separated values to test suite it runs only last test suite mentioned in that string.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.5KViews0likes9Comments