You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements ac3. You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements accomplish this for you?complish this for you?

Question:
You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements ac3. You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements accomplish this for you?complish this for you?

1.expect(@result) eq expect(executed_output)

2.expect(@result).eq executed_output

3.expect(@result).to eq executed_output

4.expect(@result) = expect(executed_output)

Posted Date:-2022-11-18 11:12:25


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!