Testing Flashcards

1
Q

Define the 3 types of testing…

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which library is implemented for testing?

A

Android Testing Support Library (now AndroidX).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are tests grouped in?

A

Source Set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Source Set of Instrumented Tests called?

A

androidTest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define each of the 5 testing annotations…

A

@RunWith -> Specifies the testing library to run.
@Before, After -> What to execute before and after the test is completed.
@Test -> Used above a testing method.
@Rule -> Specify the context of the test.
@Small, Medium, Large -> Specify resources to use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Instrumented Tests? When should they be used?

A

A type of testing that enables component integration testing through user interaction simulations. The tests ensure that the application acts in an expected way upon specific user interactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Give 4 key points of Instrumented Tests…

A
  • Test component integration via simulation user interaction events.
  • Testing is done at runtime on an emulator or device.
  • Implemented by Android Testing Support Library.
  • Executed by Test Runners, which provide feedback and debugging on the test.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 3 steps to testing Views?

A

1) Locate the View -> onView(withId…)
2) Simulate event -> .perform( )
3) Checking conditions -> .check( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly