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
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.↓↓↓↓↓
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

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

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.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors