Forum Discussion
Oferv
15 years agoSuper Contributor
well i have another problem.
that's the main function:
function Main()
{
for(i=1;i<30000;i++)
{
Log["AppendFolder"]("Iteration " + i + " Started")
//Install
KillRunningProcess()
CheckIfInstallationFileExists()
RunInstallation()
Results = ValidateInstallationScreens()
if(!Results)
continue;
//Uninstall
KillRunningProcess()
CheckIfInstallationFileExists()
RunInstallation()
RunUninstall()
Log["PopLogFolder"]()
}
}
and it's working fine except from the fact that the Log["AppendFolder"]("Iteration " + i + " Started") is written in the same level of the iteration itself failed before means that my log file looks like that:
iteration 1
iteration 2
iteration 3
iteration 4
failed iteration
iteration 5
iteration 6
...
...
and so on the Log["AppendFolder"]("Iteration " + i + " Started") doesn't return to the same level it was when the test begin.
is there a way to fix it?
thanks
that's the main function:
function Main()
{
for(i=1;i<30000;i++)
{
Log["AppendFolder"]("Iteration " + i + " Started")
//Install
KillRunningProcess()
CheckIfInstallationFileExists()
RunInstallation()
Results = ValidateInstallationScreens()
if(!Results)
continue;
//Uninstall
KillRunningProcess()
CheckIfInstallationFileExists()
RunInstallation()
RunUninstall()
Log["PopLogFolder"]()
}
}
and it's working fine except from the fact that the Log["AppendFolder"]("Iteration " + i + " Started") is written in the same level of the iteration itself failed before means that my log file looks like that:
iteration 1
iteration 2
iteration 3
iteration 4
failed iteration
iteration 5
iteration 6
...
...
and so on the Log["AppendFolder"]("Iteration " + i + " Started") doesn't return to the same level it was when the test begin.
is there a way to fix it?
thanks