sinis
2 years agoContributor
TestComplete TCUnit Test
I tried to create a tcunit test and wrote a script in C++
function Main()
{
try
{
TestedApps["RunAll"]();
Delay(5000);
UnitTesting["..."]["Execute"]();
TestedApps["CloseAll"]();
}
catch(exception)
{
Log["Error"]("Exception", exception["description"]);
}
}
But whene I run this code, I am getting
'UnitTesting' is undefined
I've created a simple C# .Net 4.8 application, and I'm able to call the method HelloWord from TestComplete,
As described in TestComplete Unit Tests - .NET Applications, you need to add AutomatedQA.TestComplete.UnitTesting.dll assembly in your project. UnitTesting will then be available. Same should apply to C++.