Incorrect TD status from WR scripts
I'd appreciate your thoughts (and hopefully solution) to an issue that i have with the execution status being reported by TD of my WR scripts. I've already spoken to Mercury support about but had no joy as to why it occurs or what the solution is.
Here goes...I use a return values in my WR scripts to identify errors and to exit the test (e.g. to determine if a window has appeared, i use rc = win_exists(window_name)). If rc has a value of anything other than E_OK i know there is a problem and fail the test using tl_step("test failed", 1, "test failed") and the command texit to stop the test. This error handling routine is stored in a separate compiled module as it is called by several other scripts
This works fine when running WR scripts directly from WR (log shows FAIL), however when i run my scripts from TD. If a script fails TD reports "NOT COMPLETED" as the test status.
Here is some simplified code which demonstrates what i am doing
COMPILED MODULE (test_include)
# Terminate the HIMFOS application
# Determine if we fail & exit the current test
if (test_status == "fail test")
tl_step("test failed", 1, "test failed");
} # ExitHIMFOS
Apologies for the long-winded explanation. Hopefully it makes sense. Does anyone have any ideas??
Re: Incorrect TD status from WR scripts
I think you have this question posted in the wrong forum. This forum is for QADirector from Compuware, not TestDirector from Mercury. I don't think you will find much help for TestDirector here.