Forum Discussion

minhterry's avatar
minhterry
Contributor
8 years ago

How to access variable return from TestComplete to C#

Hello,

I have this script in TC_Support file (TestComplete)
function testReceiveArray()
{
return new Array("123","456","789");
}

Now in C#, I can call it using Connect Runner:
var exp = Connect.Runner["CallMethod"]("TC_Support.testReceiveArray");
System.Diagnostics.Debug.WriteLine(arr[0]); << but this script does not print the value "123" >> ???

 

I'm using Testcomplete 12 and VS 2015.

Please help me

--
Thanks & best regards,