Skip to main content

Posts

Showing posts from June, 2016

Set Environment Path in Linux

- Create /bin folder in /home directory - Go to /home/user directory - Open terminal and type the following command vim .bashrc Note: You can open .bashrc file in any editor. - Add the following line in .bashrc file export PATH=$PATH:~/bin - Save the changes in .bashrc file - Go to ~/bin folder and create any file Ex: touch uiautomatorviewer Format : touch filename - Open file and enter the following code Ex: #!/bin/bash echo "Message"; /home/user/tools/uiautomatorviewer - Save the file and change it to executable format chmod +x filename - Restart the terminal - Now enter the filename in any directory Enjoy !!!!!!!! Regards and Thanks, Gokul Karthik M Software QA Engineer Email : gokul.hotspot@gmail.com Phone : +91 99441 70730

Create UIAutomator Project Using Eclipse

Step 1 : Open Eclipse IDE Step 2 : Go to ' File ' -> ' New ' -> ' Java project ' Step 3 : Add Project name and click ' Next ' Step 4 : Click ' Finish ' Step 5 : Expand your project and right click on src folder -> ' New ' -> ' Class ' Step 6 : Enter ' Name ' for class . Also mention ' Package ' and then click ' Finish ' Step 7 : Right click on your project -> open ' Properties ' Step 8 : Go to ' Java Build Path '  Step 9 : Open ' Library Section ' Step 10 : Click on ' Add External Jar ' and navigate to ' android-SDK/platforms ' and choose uiautomator.jar and android.jar file Step 11 : Click on ' Add Library ' -> Select ' JUnit ' . Select JUnit 3. If you want to select JUnit 4. Then you need Java 5. Step 12 : Click ' Next ' -> then ' Finish ' . Then ...