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
Highlighted
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
Highlighted

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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

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

Let's see your nunit call.

Highlighted

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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors