Hello,
I am trying to follow the example here
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/coded_steps.aspx
I have a simple web test.
At the end of the test, I need to write the testcase name, status, and message (in case of failure) to a remote mysql database. Instead of creating a separate coded step for each test case at the end of the recorded test steps, is it possible to create a generic coded step ?
Is there a way to reference the testcase name, status, message some how ?
For example: In NUnit, I can do the following in my test case teardown
console.write("name:" + TestContext.CurrentContext.Test.FullName)
console.write("status:" + TestContext.CurrentContext.Result.Status.ToString() )
console.write("message:" + TestExecutionContext.CurrentContext.CurrentResult.Message )
Thanks
Ali
I am trying to follow the example here
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/coded_steps.aspx
I have a simple web test.
At the end of the test, I need to write the testcase name, status, and message (in case of failure) to a remote mysql database. Instead of creating a separate coded step for each test case at the end of the recorded test steps, is it possible to create a generic coded step ?
Is there a way to reference the testcase name, status, message some how ?
For example: In NUnit, I can do the following in my test case teardown
console.write("name:" + TestContext.CurrentContext.Test.FullName)
console.write("status:" + TestContext.CurrentContext.Result.Status.ToString() )
console.write("message:" + TestExecutionContext.CurrentContext.CurrentResult.Message )
Thanks
Ali