Then navigate to Libraries tab and click Add External JARs.ī) Add Selenium Java jar, you may add the source file too.Ĭ) Add all the jars from the libs folder as well.Ī) Right click on Project ' OnlineStore' > Select Properties > Java build path**. Right click on Project ' OnlineStore' > Select Properties > Java build path. We are almost ready to write the first cucumber selenium test but before that we need to associate all the Selenium & Cucumber jars to the newly created project.Ī) Let's first add Selenium Jars. Step 3: Add External Jars to Java build path Now your new created project ' OnlineStore' will display in eclipse project explorer. This demo website is a complete ecommerce website where a customer can register and purchase electronic items.ĭ) You may or may not see this message but if in case you get any, check ' Remember my decision' and click on Yes. Note: I am naming this as OnlineStore, as gives you the opportunity to practice automation on Live demo site. Note: You may see a direct option for Java Project, if you are using the latest version of Eclipse like LUNA.Ĭ) Give your Project name ' OnlineStore' as shown in below given figures. 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.Ī) Create new Java Project from File > New > Java Project . Once you've established your workspace, you'll want to create a project and begin writing code. Each programming assignment you do will typically require its own project. Generally speaking, each project encompasses one independent program. After selecting the workspace folder, Eclipse will be open.Ĭ) You may see the window like this, this is the Welcome window for Eclipse. You can change it later on from ' Switch Workspace' under ' File' menu of eclipse. If you wanted to, you could have more than one, but chances are you won't have a use for more. I like to choose my own workplace location and will place all my ToolsQA tutorial projects under it. Typically you only need one workspace, and you can think of it as your " My Documents" for Java code. It's a folder that 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.
Think of it like "My Documents" in the Windows operating system. First time when you start eclipse, it will ask you to select your workspace where your work will be stored as shown in below image.ī) Create a "working directory" for all of your projects. Step 1: Select WorkSpace on Eclipse start upĪ) Double click on ' eclipse.exe' to start eclipse. To configure Eclipse with Cucumber, we need to launch the Eclipse IDE, create a Workspace, create a Project and add External libraries to the project.