A colleague has written a block of QuickTest Pro code to compare two account values. If the values match, the script should simply use the ReportEvent method to report a PASS status for the step. If the account values do not match, the script should report a FAIL status for the step and increment the error_count variable by one. You review your colleague’s script shown below:expected_account_balance = 5000actual_account_balance = 5500If (actual_account_balance = expected_account_balance) Reporter.ReportEvent micPass, "Account balance verification", "balances match"Else Reporter.ReportEvent micFail "Account balance verification", "balances do not match" error_count = error_count + 1End IfWhich answer best describes the actions that will be performed when the lines of QuickTest Pro code are executed?A A status of PASS is reported for the "Account balance verification" step and the value of the error_count variable is increased by 1. B A status of FAIL is reported for the "Account balance verification" step and the value of the error_count variable is not changed. C A status of FAIL is reported for the "Account balance verification" step and the value of the error_count variable is increased by 1. D The code will produce a syntax error because 'Then' should be on the same line as 'If'. E A status of PASS is reported for the "Account balance verification" step and the value of the error_count variable is not changed.

Showing Answers 1 - 3 of 3 Answers

Seethalakshmi

  • Oct 9th, 2006
 

The answer is option D

  Was this answer useful?  Yes

Senthil Kumar P

  • Oct 11th, 2006
 

The answer is D

syntax error n above statment .The syntax for if condition is

If  condtions then

your statments

else

your statments

endif

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.