Groovy Asserts FREE

More than one groovy asserts in a single script IF the first assert failed, the execution was stopped. This plugin collects/catch all the assert exception summary. instead of soft assert, we can use this plugin.

253

assert a == b

if any exception occurred in the above groovy asserts , the test execution also stopped and should not able to continue the test execution.To overcome this we can use this plugins.

call the keyword by using the below code sinppet from the test scripts [def assertResult = CustomKeywords.'com.maxval.plugin.keyword.asserts.GroovyAsserts.verifyEqual'(a, b)]

//Collect the assertion Failed summary def summary = CustomKeywords.'com.maxval.plugin.keyword.asserts.GroovyAsserts.assertSummaryCollection'(assertResult) if (summary != null) { assertFailedSummary.add(summary) }

Finally we can define the test case pass or fail //IF Any asserts Failed, marked test case as failed , Else test case passed if (assertFailedSummary) { KeywordUtil.markFailed(assertFailedSummary.toString()) }

Visit Katalon Forum for Plugin related discussions.

API keys are required in Katalon Studio Commandline Execution. Generate Key
Information
Project details
Version
1.0.0
Type
Custom Keywords Plugin
Last updated
August 21, 2020 8:00 am
Publisher
Privacy and License Agreement