Skip to main content

Install Eclipse IDE And Set up a Project

Download Eclipse for Java Developers, extract and save it on any drive. It is totally free. You can run ‘eclipse.exe’ directly so you do not need to install Eclipse in your system. In this tutorial we will see how to Install Eclipse IDE And Set up a Project in Eclipse for Appium Mobile Automation.
Steps to Download and Install Eclipse IDE
Eclipse_Installation_1
2) For Windows users, you will have to know what type of version of your OS you have. If your computer is a 64 bit Windows, select Windows 64 and if you have a 32 bit Windows, select Windows 32 bit.
Eclipse_Installation_2
3) Save the .zip file to your disk.
Eclipse_Installation_3
4) Once you have downloaded the Eclipse archive you will need to Extract the zip file, which will create the unzipped Eclipse folder. You may want to Extract the archive to the root of C: drive, thus creating the folder “C:eclipse”, or just moved the extracted eclipse folder to the root of C: drive if you extracted it already.
Eclipse_Installation_4
5) Open the eclipse folder from the location where you have saved it. I have kept it on C drive.
Eclipse_Installation_5
6) Since Eclipse IDE does not have any installer, there will be a file inside the Eclipse folder named eclipse.exe. You candouble click on the file to run Eclipse.
Eclipse_Installation_6
NoteThis step is not required, but it’s strongly recommended. Right-click the Eclipse Icon and press “Send To” -> “Desktop (Create Shortcut).” Now you will be able to launch Eclipse from your desktop.

Steps to Set Up First Eclipse Project

Create a “working directory” for all of your projects. Think of it like “My Documents” in the Windows operating system. It’s a folder which contains a lot of your documents, but there’s nothing to prevent you from creating another folder called “My Other Documents” (for instance) to house other documents.
Typically you only need one workspace, and you can think of it as your “My Documents” for Java code. If you wanted to, you could have more than one, but chances are you won’t have a use for more. To keep it simple we will go with default settings and once you are comfortable with Eclipse, You can change it later on from ‘Switch Workspace‘ under ‘File‘ menu of eclipse. After selecting workspace folder, Eclipse will be open.

Step 1: Select WorkSpace on Eclipse start up

a) Create a workspace folder where you will contain all the program files you create. You can choose whatever place you want for your workspace, but it’s easiest to just use the default you’re given.
Eclipse_SetUp_1
b) You may see the window like this, this is the Welcome window for Eclipse. You may close this window.
Eclipse_SetUp_2

Step 2: Create a new Project

Projects: A collection of related code. Generally speaking, each project encompasses one independent program. Each programming assignment you do will typically require its own project.
Once you’ve established your workspace, you’ll want to create a project and begin writing code. In Eclipse, projects are the next-smallest functional unit after workspaces, but where you might have only one workspace, you will usually have several projects inside one workspace.
a) Create new Java Project from File > New > Project.
Eclipse_SetUp_3
b) Give your Project name ‘AppiumTestProject‘ as shown in below given screenshot. Click on Finish button.
Eclipse_SetUp_4
c) In case you have selected Next instead of FInish in the previous step, you will get this below window. Click on Finish this time and you are done with the project creation.
Eclipse_SetUp_5
Note: You may or may not see this message but if in case you get any, check Remember my decision and click on Yes.
Setup-Project-4

Step 2: Create a new Package

a) Right click on folder ‘src‘ and select New > Package.
Project_SetUp_1
a) Give your Package name ‘amazon‘ and click on Finish button.
Project_SetUp_2

Step 3: Create a new Class

Now that you have a project set up, you’re going to start writing some new classes.
a) Right click on Package ‘amazon‘ and select New > Class.
Project_SetUp_3
b) Give your Class name ‘StartApplication‘, check the option public static void main‘ and click on Finish button. This will bring up totally a sweet class creation window.
Project_SetUp_4
NoteIn case of not creating class for Main test case, please do not click ‘public static void main’. We need to select it only in case of writing test cases which we are going to execute and from where we call other classes. This will be our main method or a starting point to test. For functional classes we don’t need this to be checked.

c) Now your Eclipse window will looks like bellow.
Project_SetUp_5


Comments

Popular posts from this blog

JMeter Exceeded Maximum Number of Redirects Error Solution

While running performance test, JMeter allows maximum 5 redirects by default. However, if your system demands more than 5 redirects, it may result in JMeter exceeded maximum number of redirects error. In this post, we have listed down steps to overcome this error. Actual error in JMeter: Response code: “Non HTTP response code: java.io.IOException” Response message: “Non HTTP response message: Exceeded maximum number of redirects: 5” This error is noticed because  JMeter  allows maximum 5 redirects by default and your system may be using more than 5 redirects. You need to increase this count to more than 5 in jmeter.properties file. Follow below steps to achieve this. Navigate to /bin directory of your JMeter installation. Locate jmeter.properties file and open it in any editor. Search for “httpsampler.max_redirects” property in opened file. Uncomment the above property by removing # before it. Change to value to more than 5 Eg. 20. Save the file and restart JMeter. If

SSO with SAML login scenario in JMeter

SAML(Security Assertion Markup Language) is increasingly being used to perform single sign-on(SSO) operations. As WikiPedia puts it, SAML is an XML-based open standard data format for exchanging authentication and authorization data between parties, in particular, between an identity provider and a service provider. With the rise in use of SAML in web applications, we may need to handle this in JMeter. This step-by-step tutorial shows SAML JMeter scenario to perform login operation. First request from JMeter is a GET request to fetch Login page. We need to fetch two values ‘SAMLRequest’ and ‘RelayState’ from the Login page response data. We can do this by using  Regular Expression Extractor . These two values need to be sent in POST request to service provider. Refer below image to see how to do this. We will get an HTML login page as a response to the request sent in 1st step. We need to fetch values of some hidden elements to pass it in the next request. We can do this b

A Tutorial to Send Email using JMeter

Sending email is a mundane activity in any professional’s life. It’s a common medium for communication nowadays. Therefore performance testing of email server is not only important but necessary for an organization. JMeter can be helpful to perform load testing in such scenarios. In this tutorial, we will see how JMeter can be used to send email. We will use SMTP Sampler of JMeter to send an email. JavaMail API is needed to enable email functionality in JMeter. Download it from  here  and paste the jar in JMeter’s lib folder. Now, perform below steps to configure SMTP Sampler. Add a new Thread Group under Test Plan. Right click on Thread Group and select Add–>Sampler–>SMTP Sampler. We need to populate SMTP server’s details in this sampler. We will use GMail for sending an email. For this, enter these values in SMTP Sampler fields. Server: smtp.googlemail.com, Port: 587. Provide values in Email Address From and To fields of Mail Settings section to specify sender and reci