E Vehicle Android General - 5 Flashcards

1
Q

What build variants should be used for all unit testing and instrumented testing?

Name for using a tablet and and emulator.

A

With a tablet:

ConditionArmMockServices and FinalCheckInArmMockServices

With an emulator:

ConditionX86MockServices and FinalCheckInX86MockServices

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

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)

A

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

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

INT and dev are _____ .

A

One in the same

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

INT has the latest ____ .

A

BFF Build

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

If you are not able to test your view model with a regular Unit test, it is in indicator that ….

A

It is an indicator that you are doing something wrong in your viewModel because it should not be reliant on the Android Framework.

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

Activities, fragments, and adapters will need to be tested with what kind of test?

A

Instrumented Tests

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

You should/shouldn’t be using things like contexts in your viewmodels.

A

Shouldn’t

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

Repositories in Android code deal with ____ and should be tested with ________ .

A

Service calls

Regular JUnit tests

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

Usually in adapters you are doing things like …..

A

Setting button texts and layouts

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

What is the good practice to do with if statements that are only one line?

A

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.

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

Generally, if you want to disable the device back button or change where it takes you, what can you do?

A

Override onBackPressed() and just don’t put anything in the body or put whatever you want to do inside the body.

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

What does TAC stand for?

A

Terms and Conditions

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

What does LDR stand for?

A

Loss Damage Reports

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

After the Reorg in Fall of 2019, what department am I in?

Full name, short name, and number.

A

Rental Operations Solutions

ROPS

9833

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

The code freeze is usually about how long before the release.

That time is for what?

A

One month

UAT testing and regression testing

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

What does MDM stand for?

A

Mobile device management.

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

Our master branch should mirror what is in ____ .

A

MDM’s hands and Prod

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

Can you get to condition from Final Check In?

A

No, it’s its own app.

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

How do you build and run the Final Check In app?

A

Change the build variant to finalCheckInArmDebug and run it.

20
Q

When you start up Final Check In, what is the easiest thing to input for set location?

A

0101

21
Q

What does mock services mean like using the build variants conditionArmMockServices and finalCheckInArmMockServices?

A

It means it is using mock data and doesn’t actually make web calls.

22
Q

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?

A

MileageValidator

23
Q

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?

A

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.

24
Q

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.

A

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.

25
Q

Can you have a UAT and QAT build of the same app on a device?

A

No

26
Q

From sourcetree if I checkout a remote branch, what will happen?

A

You create a local copy of the branch with the same name.

27
Q

What version of Android Studio did I have with my windows laptop?

What version do I have with my mac?

A
  1. 2

3. 5.3

28
Q

What is the java version that our vehicle BFF uses?

What is the java version that our vehicle APK uses?

A

Java 8

Java 8

29
Q

How many digits are EHI branches? What format?

A

4 numbers.

For example, 0101

30
Q

What are the four good US group branches to use for testing?

A

0101

0708

5611

0523

31
Q

How many digits are unit numbers and in what format?

A

6 digits of letters and numbers.

32
Q

What VIN can you use to return multiple vehicles from condition search?

A

0000001

or

00000002

or

00000130

33
Q

In bitbucket comments, how can you do in line code in comments?

A

Surround in single back ticks like this….

You don’t need the else statement here.

34
Q

What does IRN stand for?

A

Incident Report Notice

35
Q

In order to run unit tests, what build variant should you be on?

A

conditionArmMockServices or conditionX86MockServices

36
Q

Give a simple explanation of Activity result and request codes.

A

When you start an activity, you can give it a request code that is an int. Only the activity that you are using to start the activity needs to know about it.

The result code is what the activity that was started sends back by using startActivityForResult.

In other words:

The activity that is starting the new activity has a request code. It starts the new activity. The activity that was started says OK i’m done and sets the result code and then says finish.

So what gets sent back to the first Activity, it has the request code and the result code so that it knows what happened on the Activity.

37
Q

How do you make an out of office outlook event?

A

Go to calander

click appointment

add details and dates - if all day then check the box

do not invite anyone

set to out of office from drop down

add it

Then, find it on calander and copy and paste it.

Click into one of them, set to free on the drop down menu

Click do not request response

Add people to invite.

add it

38
Q

What is the Open team also known as?

What is their repo called?

A

They are also known as Ticket

The repo is: RC-Ticket

39
Q

As of NOV 2019, what are the vehicle feature flags?

A

ACCIDENT_REPORTING,

BUY_TERMS,

FINAL_CHECK_IN

SEND_TO_SHOP

TELEMATICS,

TELEMATICS_UI

40
Q

What happens during a blackout like during Thanksgiving and Christmas?

A

There are no releases.

41
Q

How do you use git for personal use with github on work computer?

A

1) Log off vpn (If you are on it)
2) Turn off githooks with the following command:

git hooks-off

3) Do personal stuff
4) Turn githooks back on with the following command:

git hooks-on

5) Log back onto vpn (If you want to be on it)

42
Q

What git command can you do to associate your git push commands with the origin so you don’t have to do git push origin HEAD anymore?

What can you do at that point?

A

git push origin HEAD -u

This will make it so you can just do git push from then on

43
Q

Do off rent claims have ticket numbers?

A

No

44
Q

How do you force a Black Duck Scan build?

A

Go to the APK build in jenkins,

click back to project,

click build with perameters and selecet force Black Duck

Click Build.

45
Q

What is the easy way to search using a VIN?

A

Search 8 numbers starting with 0’s. For example:

00000001

00000130

46
Q

What is the name of the app for Close?

A

Returns