Couldn't you just say...
I've used this simple 'if' statement to do something similar to what you want.
The other way I can think of is to use QC to run the test from. QC will store the results and the details it used to pass/fail that test for each step.
I hope this helped.
Code:
If ..("Window"). ..("Screen"). ..("Field"). = "desired result" Then
DataTable("Results1", dtGlobalSheet) = "Pass"
Else
DataTable("Results1", dtGlobalSheet) = "Fail"
End If
..("Window"). ..("Screen"). ..("Field"). Output CheckPoint("Details1", dtGlobalSheet)
I've used this simple 'if' statement to do something similar to what you want.
The other way I can think of is to use QC to run the test from. QC will store the results and the details it used to pass/fail that test for each step.
I hope this helped.