I would like to know how we can get the name of the running test, name of the test case, and test result (whether test has passed or failed).
Following is the code example:
MyTestCase= TestCase("MyTestCase");
MyTestCase.prototype.setUp = function()
{
// print name of the test => testA
// print name of the testcase => MyTestCase
}
MyTestCase.prototype.testA= function()
{
//do something
}
MyTestCase.prototype.tearDown = function()
{
//result of the test => passed or failed??
}