Amna_Saeed321
6 years agoOccasional 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?
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.