Getting Started

logo-androidSo YOU dare to try out Seleniet? Brave one you are…

This post will show you a step by step guide on how to get Seleniet running without any external System at hand but just a PC with your file system.

Installation / Setup

Download the latest version of seleniet by navigating to:

http://eitzen.at/maven-repo/com/et/seleniet/seleniet-exec/

and choosing the latest version. Navigate into that folder and download the

seleniet-exec-{YOURVERSION}-bin.zip

unzip it and rename the created folder

seleniet-exec-{YOURVERSION}

to something that matches your project name.

Change into this local directory and VOILA everything is setup!

Starting Seleniet

Seleniet offers two “modes”:

  • Composer: an IDE like mode where you can create test cases and modify them, and you can also configure execution profiles and debug test executions.
  • Run: to start test execution with or without Executor GUI

So the first step for you is to start with the composer by running

seleniet.bat (or ./seleniet.sh if you are on Linux)

This brings up the composer IDE where you can create your test cases as normal text files. In our example we gonna start with a simple test case and that is we want to search Google for Seleniet:

openurl http://www.google.at
enter xpath,//input[@name='q'],"Seleniet Test",replace
enter xpath,//input[@name='q'],$$[Keys.ENTER]

This code tells Seleniet to go to the google page, enter “Seleniet” and “Test” and hit Return.

Save this to a local file with an .seleniet extension and select Execute | Run…

In the dialog please choose the following settings:

Execution configuration for Getting Started

and click Run. Be patient, Seleniet has grown to a real monster so it might take some seconds till it pops up the Executor!

Getting Started Executor before start

You may now click Next Step to walk through the test case step by step or if you are “insane” click the Continue button to get it kicked and running.

 

If you closed the Composer now you would have to enter the execution configuration again on restart so it’ sbest to save it by going again to Execution | Run… and click on the Save Profile button on bottom left. Name it to anything but use the .selexprof extension. In our case name it local.selexprof for example.

This way you now can run your tests in two ways. One via the Composer (AFTER you have restarted it)  by selecting Execution | and the shortcut to your selexprof file listed there or two via the command line:

seleniet.bat run --profile local

HOOORRAYYYY I hope you are already infected by the Seleniet Virus 😉

So where are the results?

Besides the green log area background color you hopefully noticed there is also a junit.html report file created. Just check it out in your browser 🙂

Getting Started Test report

 

Leave a Reply

Your email address will not be published. Required fields are marked *