muppy_cwa
12 years agoNew Contributor
Object required error when calling DotNet function in consecutive test runs
Hi.
I have a function that used dotNet
function find_process_name( pl_process_name )
{
var an_object = dotNET.System_Diagnostics.Process.zctor();
...
}
It works the first time it is executed from within a test case, it also works if it is executed a second time in the same test case.
However, when I run it again from the next test case (which is defined by a list in the test project), it fails with the JScript error "object required".
Why is that? And how to solve it?
Thanks in advance
Br
Markus
I have a function that used dotNet
function find_process_name( pl_process_name )
{
var an_object = dotNET.System_Diagnostics.Process.zctor();
...
}
It works the first time it is executed from within a test case, it also works if it is executed a second time in the same test case.
However, when I run it again from the next test case (which is defined by a list in the test project), it fails with the JScript error "object required".
Why is that? And how to solve it?
Thanks in advance
Br
Markus