I am getting the error: “android.os.Build.VERSION cannot be resolved to a variable” as an error attached to the line “int myVersion = android.os.Build.VERSION;” in the code below:
public void test4_validate_mainOverflowMenuAbout() {
int myVersion = android.os.Build.VERSION;
String myModel = android.os.Build.MODEL;
if(myVersion >= HONEYCOMB && myModel == "MY PHONE")
TestUtils.invokeMenuItem(@+id/dashboard_menu_item_about)
assertTrue(TestUtils.waitForTextOnThePageWithTimeout("My Text", True, 1000));
I THINK that my control structure is proper, but would appreciate a gander from more experienced eyes.
TIA for any and all assistance!
Regards,
Steve O’Sullivan
Because Build.VERSION is a static class… Use Build.VERSION.SDK_INT