Question: Write Android App Unit test cases for the following: 1. Check if the submit button is clicked before selecting a radio button. if no radio

Write Android App Unit test cases for the following:

1. Check if the submit button is clicked before selecting a radio button. if no radio button is clicked TextView 'errorMessage' should be set to "Please select an answer"

2. Check if the radio button selection is correct. If it is correct set TextView 'Result' to "Your are correct". 
if(radioButton.getText()== correctAnswer){ set 'result' to "Your are correct" }

3. Check if the score is increased by 1 points when answer is correct (When radio button.getText == correctAnswer)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!