Forum Discussion
tarleaa
16 years agoContributor
Hello,
And what if the functions are in two different test items? I've tried the following code and could not get the eval function to work:
// TestItem_1:
var a = new Array();
var totalFailed = 0;
function Test1()
{
a[totalFailed] = "Test1();";
Log.Message("a[" + totalFailed + "] = " + a[totalFailed]);
totalFailed++;
}
//TestItem_2:
//USEUNIT TestItem_1
function Test2()
{
Log.Message(a[0]); // No message is displayed
eval(a[0]);
}
Thank you,
Andrei