ContributionsMost RecentMost LikesSolutionsRe: Groovy script to run a Teststep doesn't fail when the test Step fails Hi HimanshuTayal, Seems i jumped the gun as I thought it was working but it wasn't. Its failing every case even though the test passes. //CHECK FAILED COMMUNICATIONS // Run the test step def tStep = testRunner.testCase.testSuite.getTestCaseByName("followup_email - Valid English First").getTestStepByName("Check for Failed Communications") //Execute Test Step tStep.run(testRunner, context).getStatus().toString() //Results log.info(tStep.getAssertionStatus()) log.info(tStep.getAssertableContentAsXml()) //ASSERT def result = tStep.getAssertionStatus() log.info(result) if (result == "PASS") testRunner.pass("Test Script passed.") else testRunner.fail("Test Script failed.") Re: Groovy script to run a Teststep doesn't fail when the test Step fails HimanshuTayal I added an assert but still the test would not fail, but using your solution has worked! Seems i was overthinking it. Thanks! Groovy script to run a Teststep doesn't fail when the test Step fails Instead of copying and pasting test steps that I am using over and over in other test cases i decided to use a grovvy step to call the test step. When one of the assertions fail on the step the grovvy step is not failed but instead the test continues onto the next step. I am at a loss for how to get the step to fail when the test step called has a failure in one or more of the assertions. Any help would be appreciated. Here is the groovy step I am using: //Generate Authentication Token // Run the test step def auth = testRunner.testCase.testSuite.getTestCaseByName("followup_email - Valid English First").getTestStepByName("Generate Auth Token") //Execute Test Step auth.run(testRunner, context) //CHECK FAILED COMMUNICATIONS // Run the test step def tStep = testRunner.testCase.testSuite.getTestCaseByName("followup_email - to: Field is Missing").getTestStepByName("Check for Failed Communications") //Execute Test Step tStep.run(testRunner, context) //Results log.info(tStep.getAssertionStatus()) log.info(tStep.getAssertableContentAsXml()) When log.info(tStep.getAssertionStatus()) comes back FAIL the groovy step is not failed Solved3.8.1 Unable to generate data in data source After installing ReadyAPI i am unable to add a new property for data generator. When I add a new property test_id and select data source: Data Generator with property type being Guid. When I click the green play button i get the following error: ReadyAPI Log: Thu Jun 10 19:47:48 GMT 2021: ERROR: An error occurred [Cannot invoke "com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.GeneratedDataValue.getValue()" because the return value of "java.util.Map.get(Object)" is null], see error log for details Error Log: Thu Jun 10 19:47:48 GMT 2021: ERROR: java.lang.NullPointerException: Cannot invoke "com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.GeneratedDataValue.getValue()" because the return value of "java.util.Map.get(Object)" is null java.lang.NullPointerException: Cannot invoke "com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.GeneratedDataValue.getValue()" because the return value of "java.util.Map.get(Object)" is null at com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.UI.DataGeneratorDataSource.a(DataGeneratorDataSource.java:816) at com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.UI.DataGeneratorDataSource.next(DataGeneratorDataSource.java:554) at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.c(WsdlDataSourceTestStep.java:636) at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.b(WsdlDataSourceTestStep.java:615) at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.a(WsdlDataSourceTestStep.java:802) at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(WsdlDataSourceTestStep.java:812) at com.eviware.soapui.impl.wsdl.panels.teststeps.DataSourceDesktopPanel$TestAction.actionPerformed(DataSourceDesktopPanel.java:436) at com.eviware.soapui.impl.wsdl.panels.teststeps.DataSourceDesktopPanel$TestAction.actionPerformed(DataSourceDesktopPanel.java:1) at com.eviware.soapui.impl.wsdl.actions.iface.AbstractSwingAction.actionPerformed(AbstractSwingAction.java:62) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6614) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6379) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Solved