Category Archives: Installation

What is Jenkins?

Jenkins is an open source automation tool written in Java with plugins built for Continuous Integration purpose. Jenkins triggers a build for every change made in the source code repository, for example, Git repository.

Once the code is built it deploys it on the test server for testing. Concerned teams are constantly notified about build and test results. Finally, Jenkins deploys the build application on the production server.

Jenkins achieves Continuous Integration with the help of plugins. If you want to integrate a particular tool, you need to install the plugins for that tool. For example it, Maven 2 project, Amazon EC2, HTML publisher etc.

Advantages of Jenkins include:
  • It is an open source tool with great community support.
  • It is easy to install.
  • It has 1000+ plugins to ease your work. If a plugin does not exist, you can code it and share with the community.
  • It is free of cost.
  • It is built with Java and hence, it is portable to all the major platforms.
Now here we look into How to setup Jenkins for a Maven project. :
Step 1 – Starting Jenkins: which can be started via command line or web application server.
1.Download Jenkins Zip file and extract it(i have downloaded for windows as I am setting it up on windows7).
2.In cmd go to the path you have extracted Jenkins (eg.C:\Program Files (x86)\Jenkins)
3.To start the Jenkins, run the command jenkins.exe start
-To restart the Jenkins: Jenkins.exe  restart
-To stop the Jenkins: Jenkins.exe  stop
4.By default, it will open up on 8080 port as  localhost:8080 (make sure nothing else is running on port 8080)
Step 2 – Creating and configuring user on Jenkins
1.To create a user go to Manage Jenkins->Manage Users->Create User->Provide the required information
2.Go to Manage Jenkins->Configure Global Security
-Check Enable security
-In Security Realm, select Jenkins own user database and check Allow users to sign up
-In authorization, there are multiple options select as per requirement
-Save once done
Step 3 – Configuring System

1.Go to Manage Jenkins->Configure System
2.Configure JDK
-Give the JDK name
-JAVA_HOME : C:\Program Files\Java\jdk1.7.0_45
3.Maven configuration
-Give a maven name
-MAVEN_HOME : C:\apache-maven-3.2.5\apache-maven-3.2.5-bin\apache-maven-3.2.5
4.Global Maven_OPTS
–Xmx512m
–XX:MaxPermSize=128m
5.Save once done
Step 4 – Adding Plugins
1.Go to Manage Jenkins->Add Plugins
2.Install the plugins which are required, Eg. GIT client plugin: which Shared library plugin for
other Git related Jenkins plugins,  GIT plugin: This plugin integrates GIT with Jenkins etc.
Step 5 – Creating jobs
1.Go to New Items->Give a project name in “Item name” field->select Maven project->click OK
2.Now configure the job
-Provide the description
-In Source Code Management, there are options for CVS project, Git etc,  select the one which is required
-In Build Triggers, there are multiple options like “Build when a change is pushed to GitHub”,
“Poll SCM”, “Build whenever a SNAPSHOT dependency is built” etc, select the required one
-Give the path of your pom.xml file in Build Root POM
– Give “Goals and options“  take a use case where the requirement is to install the code then give ”clean install”
3.configure the job as in the screenshot and don’t forget to save
Step 6 – Run the build(job) from home page and output should be.
Thanks for reading this article!

What is Genymotion emulator ?

Genymotion is a fast third-party emulator that can be used instead of the default Android emulator. In some cases, it’s as good as or better than testing on actual devices.

This article shows you how to create emulator through genymotion and How to install Google Play Services on Genymotion Step by Step.

1. Download and install genymotion emulator

First, we have to create account for downloading the genymotion emulator

1

Once you have created the account clicks on Download

3

After downloading you have to install genymotion on your machine

4

for the installation process, it is asking for us to install Virtual box 5.0.4 setup wizard, click on next button.

5

Launch the genymotion on your machine

6

How to create Samsung s5 emulator on genymotion. Click on add

7

Select which one you want for launching the emulator

8

<a href="http://blog.nbostech.com/wp-content/uploads/2016/11/91 achat viagra gratuit.png”>9

It is taking some time for downloading the emulator, Once it is downloaded click on finish button

10

Click on start button otherwise double click on emulator which we have downloaded now

11

It’s time to launch the Samsung emulator.

12

By default, your emulator doesn’t have Google play store for downloading the apps, So we need to install Google play store,

Here are some simple steps to do to make Google Services be available on Genymotion

Step 1: Install ARM Translation – The secret behind Genymotion’s fluidness is its ROM is compiled to x86 to match the most popular computer’s CPU Architecture

14

To install, download Genymotion-ARM-Translation_v1.1zip and then drop&drop the downloaded file to an opened Genymotion virtual device. After file transferring is done, there will be a confirmation dialog like below. Just simple click OK to flash it on a virtual device.

15

There will be an another dialog to let you know that the flashing process is done.

16

you need to reboot the device through command line like this:

adb reboot for the specific device

where

” 192.168.137.102:5555 ”   device name.

In case you accidentally close the virtual device, don’t be panic. You might need to relaunch for a few times before it can boot up.

Step 2: Install gapps – Before we go on to the next step, you need to download the flashable zip of gapps by your virtual device’s Android version: Here I am going to download the second

Android 5.0.x, Android 4.4.x, Android 4.3.x, Android 4.2.x, Android 4.1.x, Android 4.0.x, Android 2.3.3

17

And then drop&drop the downloaded file to a virtual device like previous and go through the flashing process.

18

Reboot the virtual device once again.

After the virtual device is booted up, you will notice that Google Play services have stopped problem will keep popping up like this:

Getting error like this

19

Better to restart the emulator or click on ” ok ”

All you need to do is be patient and login to Google Play Store and update all of the installed app.

20

21

Congratulations, Google Play Services are now available on your Genymotion virtual device.

22

Now verify your emulator version on your machine

Use ” adb devices” on your command prompt

13

You have successfully installed the genymotion emulator on your machine

Thank you for reading this article!

What is Appium ?

Appium is an open-source tool for automating native, mobile web, and hybrid applications on iOS and Android platforms. Native apps are those written using the iOS, Android, or Windows SDKs. Mobile web apps are web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in ‘Browser’ app on Android). Hybrid applications are web applications (or web pages) in the native browser, such as UIWebView in iOS and WebView in Android (not Safari or Chrome). Hybrid apps are developed using HTML, CSS, and Javascript.

Importantly, Appium is “cross-platform”: it allows you to write tests for multiple platforms (iOS, Android, Windows), using the same API. This enables code reuse between iOS, Android, and Windows test suites.

Environment setup for appium on windows 7.

Required Softwares:

  • java – JDK 1.8
  • Neon Eclipse
  • Apache maven
  • Android SDK
  • Emulator/Real device/
  • Appium server

Adding system variable:

  • JAVA_HOME
  • MVN_HOME
  • ANDROID_HOME

Step 1: Download and install java JDK 1.8 version

1.1 Accept license and click on below statement

1

1.2 Once installed the java, We should add java path into the system variables.

1.3 Create environment variable for JAVA_HOME. Follow the below step:

Navigate to System Properties ->Advanced System Setting->Environment Variable ->User Variable ->New ->Add path of java JDK folder

Ex: C:\Program Files\Java\jdk1.8.0_101

8

9

1.4 Adding java bin folder to System variable->Path->Edit

Ex: C:\Program Files\Java\jdk1.8.0_101\bin

12

3

1.5  Now verify the java installation using command prompt

Use java –version to verify java version and output comes like below.

4

Step 2: Download and install Eclipse

5

6

2.1 Unzip the folder and Run the Eclipse

Step 3: Download and install apache maven

7

3.1 Unzip the folder and save it on the local disk

3.2 Create environment variable for MAVEN_HOME. Follow the below step:

Navigate to System Properties ->Advanced System Setting->Environment Variable ->User Variable ->New ->Add path of Maven folder

Ex: C:\Users\akumar\Downloads\apache-maven-3.3.9

10

11

3.3  Adding maven bin folder to System variable->Path->Edit

Ex: C:\Users\akumar\Downloads\apache-maven-3.3.9\bin

13

3.4 Now verify the mvn installation using command prompt

Use mvn –version to verify maven version and output comes like below.

14

Step 4: Download and install Android SDK

4.1 Create environment variable for Android_HOME. Follow the below step:

Navigate to System Properties ->Advanced System Setting->Environment Variable ->User Variable ->New ->Add SDK manager path
SDK manager path :
C:\Users\akumar\AppData\Local\Android\sdk

15

4.2  Adding SDK Platform tools to System variable->Path->Edit

Ex: C:\Users\akumar\AppData\Local\Android\sdk\platform-tools

16

Step 5: Emulator/ Real device

When building an Android app, it’s important that you always test your application on a real device before releasing it to users. … You can use any Android-powered device as an environment for running, debugging, and testing your applications. So We can use two types of devices like Emulator/Real device.

Real device Testing: If you want to test one android app from your real device, follow the steps.

For test to run on devices, we need to make sure

  • Connect your real device to computer via USB cable 
  • USB Debugging is enabled
  • ADB lists your devices into the connected devices

Enabling USB Debugging:

By default, Android devices do not have USB Debugging enabled, these are under Developer Options. To turn them on,

  • Navigate to Settings app on phone
  • Scroll down and click on the Developer Options
  • Turn on the Developer Options and click the USB Debugging.

DevOptions

USBDebug

Some devices do not have “Developer Options” and hence the way to enable Debugging mode is to launch the Settings screen. Once done, tap “About Phone” and then scroll to the bottom and tap on “Build Number” 7 times (Yes 7 times)!

Once done, you will now be able to enable/disable it whenever you desire by going to

Once the above setups are done, launch Terminal (or Command Prompt) and type in

Actually, my device name is MOTO E (2nd generation).

30

Note:  ” Once you fix to test on real device You must install your real device drivers on your computer. Otherwise, your real device not connected with ADB devices.

Ex: My real device name is Motorola , So I need to install Motorola drivers

Emulator Testing : It is a virtual device but not the real phone but software which gives same functionality as the real phone (except few functionality like the camera). So we need to create the emulator for testing the apps.

Creation of Emulator: Before going to create Emulator , We need to add some properties to the SDK Manager

Open the SDK manager , Follow the below steps.

1. You have to mark below contents

  • Tools
  • Android version, which version you want
  • Extras

And install those packages

20

5.1 After installation of all packages go through this path

5.2 Click on AVD Manager

17

5.3 We need to Create Emulator( means Virtual device) tap upon create

18

5.4 Give the properties of your virtual device

21

22

 

 

 

 

 

 

 

5.5 Start your emulator and launch

23

24

5.6  Getting error while launching AVD with AMD processor

Solution: Make sure you have installed HAXM installer on your SDK Manager.

25

5.7 Finally getting the Emulator

26

5.8 Now verify your emulator is working or not through command prompt

Use ” adb devices ” to verify emulator and output is like below

29

Note: Using Genymotion emulator instead of AVD emulator

Since the performance of Android AVD emulator is quite low, especially not using the “host GPU”, so it’s better for us to use Genymotion, which is a faster Android emulator, based on VirtualBox.

Please follow the link for installation of VirtualBox and Genymotion.

Step 6: Download and install Appium

6.1 Unzip the folder and Install

27

6.2 Run the appium server

28

You have successfully setup the appium server with windows 7.

Thank you for reading this article!

1.open the link given below.

2.click on the  highlighted link from the below snapshot.

apache01

3.click on the  highlighted link from the below snapshot, it starts downloading the tomcat7.

apche1

4.extract the tar file manually and open the terminal and check the extracted tar file is in Downloads folder.

5.now check that you have tomcat folder in the specified location

If you find tomcat folder its okay, otherwise type the below command to create a  tomcat  folder

copy paste the below commands step by step.

6.open the .bashrc file

 now you will see the .bashrc file opened , then copy paste the below statements at last.

save and close this file manually and also close the terminal.

7.now open the tomcat-users.XML file manually from the below location.

then copy and paste the below tags in the tomcat-users.XML file
the below tags should be 
between the <tomcat-users> </tomcat-users> tags.

8.to start the tomcat server,

9.now open the browser and type the below URL.

now you will observe the below snapshot.

apche2

If the above screenshot doesn’t appear in the browser, shutdown it from terminal(see step no -10) immediately and restart the server (see  step no -8).

now click on the Manager App tab from the above screen shot, then you will get the below screenshot.

apache3

now type the below credentials in the above pop-up window.

the next step you will get the below screen shot where you can deploy the web applications.

apache4

10. to stop the tomcat server

You have successfully installed the tomcat server.

 

 

1.open the link given below.

2.click on the download link as shown in acheter cialis bruxelles the below snapshot.

image1

3.click on the highlighted link as shown below, to download maven.

image2

4.extract the tar file manually and open the terminal and check the extracted tar file is in Downloads folder.

5.now check that you have maven folder in the specified location.

If you find maven folder its okay, otherwise type the below command to create a maven folder 

copy paste the below commands as well.

6.open the .bashrc file

 now you will see the .bashrc file opened , then copy paste the below statements at last.

save and close this file manually and also close the terminal.

7.check the maven version.

You have successfully installed maven -3.3.9.

Introduction:

Android SDK is mainly used for developing Android applications and has some good features that come handy for testing the Android apps. For ex. DDMS (Dalvik Debug Monitor Server)is the main tool in Android SDK that is used for testing purpose. I’ll be covering the steps to install Android Studio and SDK for Windows and Mac.

Installation for Windows:

– Prerequisites for installing Android SDK:

  1. Java Development Kit (JDK) should be installed before you install the Android SDK. Ensure that you are using the latest version of JDK. If not, its better to update as minimum version required is 1.7.
  2. Add the environment variable JAVA_HOME :
    – Click on ‘Start’ >> Right click on ‘Computer’ and click on Properties.
    – Click on ‘Advance System Settings’ >> Environment Variables.
    – Click on New and add ‘JAVA_HOME’ variable and value will the path of the JDK installed.
  3. Also add the path of bin folder to the ‘Path’ variable Ex: C:\Program Files\Java\jdk1.8.0_71\bin.

– Installing Android Studio and SDK :

  1. Download and install Android Studio from the link >> http://developer.android.com/sdk/index.html.
  2. After installation go to the ‘SDK’ folder where the Android SDK is installed.
    – Click on ‘SDK Manager’.
  3. Ensure that the latest versions of ‘Android SDK Tools’ and ‘Android SDK Platform-tools’ are installed. If not, then Check the latest versions and install.
  4. Add the environment variable ANDROID_HOME :
    – Click on ‘Start’ >> Right click on ‘Computer’ and click on Properties.
    – Click on ‘Advance System Settings’ >> Environment Variables.
    – Click on New and add ‘ANDROID_HOME’ variable and value will the path of the SDK installed.
  5. Add the path of ‘Platform-tools’ and ‘Tools’ to the ‘Path’ variable.
    Example: D:\Android\sdk\platform-tools; D:\Android\sdk\tools
  6. Installation is done. Now open the CMD prompt and type >> adb and press Enter.
    – If the command is executed and list of adb commands are displayed then you are ready to use Android SDK.

Installation for Mac:

– Prerequisites for installing Android SDK:

  1. Java Development Kit (JDK) should be installed before you install the Android SDK. Ensure that you are using the latest version of JDK. If not, its better to update as minimum version required is 1.7.

– Installing Android Studio and SDK :

  1. Download and install Android Studio from the link >> http://developer.android.com/sdk/index.html.
  2. After installation go to the ‘SDK’ folder where the Android SDK is installed.
    – Click on ‘SDK Manager’.
  3. Ensure that the latest versions of ‘Android SDK Tools’ and ‘Android SDK Platform-tools’ are installed. If not, then Check the latest versions and install.
  4. Copy ‘Platform-Tools’ and ‘Tools’ path to Bash Profile. Generally you’ll find this under : /Users/”YOURUSER”/Library/Android/sdk
    – Open bash_profile using the below command:
    sudo open -a “TextEdit” ~/.bash_profile  OR use vi editor: sudo vi ~/.bash_profile
    – Add below paths:
    export PATH=/Users/”YOURUSER”/Library/Android/sdk/platform-tools:$PATH
    export PATH=/Users/”YOURUSER”/Library/Android/sdk/tools:$PATH
  5. restart terminal. (You can use —>>  source ~/.bash_profile).
  6. Installation is done. Now open the terminal and type >> adb and press Enter.
    – If the command is executed and list of adb commands are displayed then you are ready to use Android SDK.

Conclusion:

I have shared the steps to install Android SDK on Windows and Mac. We are now ready to use the Android SDK for either the development or Testing purpose. Thanks for reading this article. For more info please visit http://developer.android.com.