Ask a Question

How can I pass the argument when calling the nunit test from TestComplete Project?

SOLVED
Amna_Saeed321
Occasional Contributor

How can I pass the argument when calling the nunit test from TestComplete Project?

I have written the Nunit test which takes an argument of string type. Now I had added that nunit test in my TestComplete Project but how can I pass the argument in testcomplete with the call? 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can I pass the argument when calling the nunit test from TestComplete Project?

Hello,

 

Since TestComplete does not run specific NUnit tests, you can handle arguments of your parametrized tests using the native NUnit features:

https://github.com/nunit/docs/wiki/TestCase-Attribute

https://github.com/nunit/docs/wiki/TestCaseSource-Attribute

 

If you want to pass custom values from TestComplete, you can load your test assembly using the CLR Bridge feature and call the needed tests or other methods directly from TestComplete.

--
Dmitry Nikolaev

EVENT Participate in our annual online activities to have fun and be rewared:
Join Wintertainment 2021

View solution in original post

2 REPLIES 2
Marsha_R
Community Hero

Re: How can I pass the argument when calling the nunit test from TestComplete Project?

Let's see your nunit call.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Re: How can I pass the argument when calling the nunit test from TestComplete Project?

Hello,

 

Since TestComplete does not run specific NUnit tests, you can handle arguments of your parametrized tests using the native NUnit features:

https://github.com/nunit/docs/wiki/TestCase-Attribute

https://github.com/nunit/docs/wiki/TestCaseSource-Attribute

 

If you want to pass custom values from TestComplete, you can load your test assembly using the CLR Bridge feature and call the needed tests or other methods directly from TestComplete.

--
Dmitry Nikolaev

EVENT Participate in our annual online activities to have fun and be rewared:
Join Wintertainment 2021

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: