I have called external actions in an another Action( I am refereing it as Business Component Action) , now I want to log Pass/Fail inforamtion regarding the Business Component Action based on Pass / Fail state of the External Actions which constittues the Business Component Action.
For Example :
Launch is My Busines Component Action In which I am calling other 3 external Actions Launch_IE ,Click_English_Sign_On_link and Click_OK_button [Click_]" . If any of these Actions failing I should fail Launch Business Componet Action Fail . I tired it with "Reporter.RunStatus" as shown below but it is not correct because if the first Business Component Action Fails in Your Dirver Scipt( which will inturn call a number of business Component Actions) then subsequent Business Component Action will be logged as fail though it is Pass . As "Reporter.RunStatus" will remain fail till the end of the Test if it fails once.
Any Ideas how to Log Pass /Fail result for the above said Scenario ?
RunAction "Launch_IE [LaunchWebApp]", oneIteration
RunAction "Click_English_Sign_On_link [Click_]", oneIteration
RunAction "Click_OK_button [Click_]", oneIteration
if Reporter.RunStatus = micPass Then
<Log Pass message >
<Log Fail message >