126.96.36.199.Creating a Project
In MarathonITE, a project holds all the testing project resources. Let us start by creating a new project for the DuckDuckGo application.
If you have MarathonITE running, quit it. And start marathonite without any arguments.
MarathonITE displays a project selection dialog. The project selection dialog allows you to create, modify projects. From the project selection, click on the New and from the displayed options select Web Application Project.
MarathonITE opens up a new project dialog.
Configuring the Project
MarathonITE project configuration is provided in 3 sections which are displayed as tabs in the dialog. Generic information regarding the project is given in the Project tab, the default fixture configuration is provided in the Application tab and script language settings in the Language tab.
In the project tab, provide the name of the project and use the Browse button to select an empty folder to save the project. Optionally you can provide Description. We shall leave the pattern fields as empty for this tutorial.
Click on the Application tab.
MarathonITE borrows the concept of Fixtures from xUnit family of testing frameworks. A fixture defines how an application is launched from MarathonITE and also provides
teardown methods that are executed at the beginning and end of a test script respectively. A MarathonITE project can have more than one fixture. The application tab is used to create a default fixture.
Application tab allows you to select a launcher and appropriate information required for the launcher. We will use Web Application Launcher designed for launching web applications using a browser.
From the launcher combobox, select Web Application.
Enter the website URL – https://duckduckgo.com into the URL (Prefix) field. For this example, we can leave the Start Path field empty. Select Chrome as the Default Browser. You can select initial browser window size by setting the Initial Window Size options.
Note: When using https protocol you can use only Chrome browser for recording. You can, ofcourse, use other browsers for playing back the scripts.
Now select Language Tab.
Language tab allows you to select the scripting language and customize the language runtime used in MarathonITE scripts. At this time MarathonITE supports Ruby and we intend to support other languages. For this example, there is nothing we need to customize in this tab.
Testing the Configuration
You can test the configuration and check for any errors by using the Test option. When you select the option, MarathonITE uses the given configuration to launch and connect to the webdriver.
Once MarathonITE is able to connect to the driver – a window is shown. The window shows the standard output and error from the command – you can see any errors if MarathonITE is unable to connect to the webdriver intsance.
Click on the Close button. This should close the window.
Saving the Project
Click on the Save button to save the project. MarathonITE will close the project configuration window and you are presented with the project selection dialog with the newly created project already select.
Click on the Select button to start MarathonITE with the new project.