E Vehicle Android General - 5 Flashcards
(46 cards)
What build variants should be used for all unit testing and instrumented testing?
Name for using a tablet and and emulator.
With a tablet:
ConditionArmMockServices and FinalCheckInArmMockServices
With an emulator:
ConditionX86MockServices and FinalCheckInX86MockServices
Explain what the different packages are as far as the parenthesis after the name. ie..
com. ehi.mcondition
com. ehi.mcondition (androidTest)
com. ehi.mcondition (mockservices)
com. ehi.mcondition (test)
com. ehi.mcondition - Our normal code.
com. ehi.mcondition (androidTest) - Instrumented tests
com. ehi.mcondition (mockservices) - Sets up mock services use for testing
com. ehi.mcondition (test) - Unit tests
INT and dev are _____ .
One in the same
INT has the latest ____ .
BFF Build
If you are not able to test your view model with a regular Unit test, it is in indicator that ….
It is an indicator that you are doing something wrong in your viewModel because it should not be reliant on the Android Framework.
Activities, fragments, and adapters will need to be tested with what kind of test?
Instrumented Tests
You should/shouldn’t be using things like contexts in your viewmodels.
Shouldn’t
Repositories in Android code deal with ____ and should be tested with ________ .
Service calls
Regular JUnit tests
Usually in adapters you are doing things like …..
Setting button texts and layouts
What is the good practice to do with if statements that are only one line?
Even though you don’t need curly braces, you should use them for readability and also if someone is going to add more to it later.
Generally, if you want to disable the device back button or change where it takes you, what can you do?
Override onBackPressed() and just don’t put anything in the body or put whatever you want to do inside the body.
What does TAC stand for?
Terms and Conditions
What does LDR stand for?
Loss Damage Reports
After the Reorg in Fall of 2019, what department am I in?
Full name, short name, and number.
Rental Operations Solutions
ROPS
9833
The code freeze is usually about how long before the release.
That time is for what?
One month
UAT testing and regression testing
What does MDM stand for?
Mobile device management.
Our master branch should mirror what is in ____ .
MDM’s hands and Prod
Can you get to condition from Final Check In?
No, it’s its own app.
How do you build and run the Final Check In app?
Change the build variant to finalCheckInArmDebug and run it.
When you start up Final Check In, what is the easiest thing to input for set location?
0101
What does mock services mean like using the build variants conditionArmMockServices and finalCheckInArmMockServices?
It means it is using mock data and doesn’t actually make web calls.
When in condition or final check in and you enter a mileage and get a dialog that says “the previous mileage was XXXX are you sure?”
In what class is the being handled?
MileageValidator
When installing apps through hockeyapp, suit installer, or app center, what environment should you get? Do you ever want to do anything other than this environment?
Usually you will want to get UAT. UAT is the the release branch, so it’s the most stable build.
You would rarely want to do QAT.
QA might do it in order to test something that was fixed in develop.
From the suit installer if you downloaded a UAT version of an app and then a QAT version of the same app, what would happen and why.
The QAT version would override the UAT version b ecause they have the same package name.
You cannot have a UAT and QAT build of the same app on a device.