

TestStepTrgt.cloneAssertion(testStepSrc.getAssertionAt(count), testStepSrc.getAssertionAt(count).getName())įrom the time i started using soapUI(both open source & Pro), I was struggling with one very simple though a painful issue.


Import .testsuite.Assertableĭef project = ĭef testSuite = project.getTestSuiteAt(1)ĭef testCase = testSuite.getTestCaseAt(0)ĭef sourceTestStep = context.expand( '$' )ĭef testStepSrc = testCase.getTestStepByName(sourceTestStep)ĭef testStepTrgt = testCase.getTestStepByName(targetTestStep)ĭef counter = testStepSrc.getAssertionList().size() : Gr-oooooo-vy : Pradeep : Clone all the assertion from TestStep into the target TestSTep by executing a groovy test step. # Create a groovy test step then paste the below code and run the test step.
#GROOVY JXL API UPDATE#
# Always copy and paste the name of teststep when update the value of newly defined property, so as to reduce the possibility of TYPO error. # Create 2 property at testcase level named "sourceTestStep" & "targetTestStep" respectively. And thanks to the user for raising this question in forum :-) : I have also updated the eviware forum thread and people who 'hates' blog can read the solution in the thread. So i thought of trying my hand on the same and shared below is the working piece of code to achieve the same.
#GROOVY JXL API PRO#
Yesterday, I found one interesting question in eviware forum : seeking the information about replicating the "Clone Assertion" feature from soapUI Pro into the soapUI open source using the groovy.
