cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

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.

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

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

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors