Code example for Instrumentation

Methods: getContext

0
		try{ 
			Log.i(TAG, "------It is testLoginVerification()-----------");
			//android=new AndroidHybridDataJava(); 
			//android.parser(instrumentation.getContext()); 
			data=new UserInfoConstants();
			data.parser(instrumentation.getContext());
			activityName = soloMain.getCurrentActivity().getClass().getSimpleName();
			if(activityName.equalsIgnoreCase("Login"))
			  { 
				Log.i(TAG, "------It is LoginVerifcation-----------" + activityName);
				soloMain.waitForActivity("Login", 2000);
				for (int i = 0; i < 40; i++) 
				    { 
					activityName = soloMain.getCurrentActivity()
							.getClass().getSimpleName(); 
					if (activityName.equalsIgnoreCase("Login")) {
 
						Log.i(TAG, "------for()-- loop-----");
						break; 
					   }