Greetings
Tying to use the IF ELSE statment where am I going wrong.
<PACKAGE>
<JOB ID=TestCase>
<SCRIPT LANGUAGE="JScript" SRC="..\..\Envox.js" />
<SCRIPT LANGUAGE="JScript">
var vTestName=WScript.ScriptName;
ECP.Variable["CustomerXMLString"]="";
ECP.Variable["ServiceType"]="GAS";
ECP.Variable["CurrentProcess"]="";
ECP.Variable["ICECustomerId"]="";
</SCRIPT>
<SCRIPT LANGUAGE="JScript" SRC="..\..\Customer Get Details.js" />
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Main Menu.js" />
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Meter Reading.js" />
if (ServiceType=GAS)
}
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Gas Meter Reading.js" />
}
else
{
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Electricity Meter Reading.js" />
}
<SCRIPT LANGUAGE="JScript" SRC="..\..\Get Service By Type.js" />
<SCRIPT LANGUAGE="JScript" SRC="..\..\Envox Results.js" />
</JOB>
</PACKAGE>
Cheers
Nozy
Tying to use the IF ELSE statment where am I going wrong.
<PACKAGE>
<JOB ID=TestCase>
<SCRIPT LANGUAGE="JScript" SRC="..\..\Envox.js" />
<SCRIPT LANGUAGE="JScript">
var vTestName=WScript.ScriptName;
ECP.Variable["CustomerXMLString"]="";
ECP.Variable["ServiceType"]="GAS";
ECP.Variable["CurrentProcess"]="";
ECP.Variable["ICECustomerId"]="";
</SCRIPT>
<SCRIPT LANGUAGE="JScript" SRC="..\..\Customer Get Details.js" />
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Main Menu.js" />
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Meter Reading.js" />
if (ServiceType=GAS)
}
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Gas Meter Reading.js" />
}
else
{
<SCRIPT LANGUAGE="JScript" SRC="..\..\Can Do Electricity Meter Reading.js" />
}
<SCRIPT LANGUAGE="JScript" SRC="..\..\Get Service By Type.js" />
<SCRIPT LANGUAGE="JScript" SRC="..\..\Envox Results.js" />
</JOB>
</PACKAGE>
Cheers
Nozy