cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Total Test Cases count and Execution Time taken on Project from Project Teardown

SOLVED
Highlighted
Regular Contributor

How to Get Total Test Cases count and Execution Time taken on Project from Project Teardown

How can i get from Project Teardown 

 

1) Total Test Cases Count which is Enabled only not disabled 

2) Total Time taken for execution 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Get Total Test Cases count and Execution Time taken on Project from Project Teardown

Hi @678 

 

1) I think this topic will be useful for you: https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-find-a-test-step-is-enabled-or-disabled...

Integer counter = 0
project.testSuiteList.each {
 it.testCaseList.each {
	if (it.disabled == false) {
  		counter = counter + 1
		}
	}
}
log.info counter.toString()

2) You can use this command: runner.getTimeTaken()


Kirill Zakharov
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

3 REPLIES 3
Moderator

Re: How to Get Total Test Cases count and Execution Time taken on Project from Project Teardown

Community, has anyone faced a similar question? Can we assist @678?


Olga Terentieva
SmartBear Assistant Community Manager

Community Manager

Re: How to Get Total Test Cases count and Execution Time taken on Project from Project Teardown

Hi @678,

 

It looks like this is not a very generic task. Could you please refer your question to our ReadyAPI Support Team? You can reach out to them here:

https://support.smartbear.com/message/?prod=ReadyAPI

---------
Tanya Gorbunova
SmartBear Community Manager

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!

Re: How to Get Total Test Cases count and Execution Time taken on Project from Project Teardown

Hi @678 

 

1) I think this topic will be useful for you: https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-find-a-test-step-is-enabled-or-disabled...

Integer counter = 0
project.testSuiteList.each {
 it.testCaseList.each {
	if (it.disabled == false) {
  		counter = counter + 1
		}
	}
}
log.info counter.toString()

2) You can use this command: runner.getTimeTaken()


Kirill Zakharov
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post