LiquidTest requires an Eclipse Project to structure Test Cases. If you have not created a project, create one via the File → New → Project.. menu.
From the many Project options choose Java → Java Project (assuming you are intending to Record Selenium HTML or Selenium JUnit) test cases.
Click on the LiquidTest/Eclipse
Window → Preferences menu option and then select the
LiquidTest tab. On this pane the Browser and Test Writer can be changed as well as the timeout and other code generation options. To create JUnit tests make sure you have chosen the appropriate writer for your JUnit library (JUnit 4 in the example below).
LiquidTest has a helpful Wizard to help with the creation of LiquidTest test cases. The Wizard imports the necessary LiquidTest library into the project to allow your test cases to replay. Click on the LiquidTest button..
The LiquidTest Wizard provides an interface to create your Test Case and to configure LiquidTest prior to recording.
Select the preferred base package and class name and press the
Finish button. This creates the new test class, switches the Workbench to the LiquidTest Perspective and starts the recording using Firefox or Internet Explorer in the LiquidTest browser view. Note: For more screen space you may wish to close the “Welcome” pane (if you have installed the LiquidTest Eclipse Standalone version).
Create a test scenario by navigating to a site and performing a transaction. For instance adding a new record, performing a search or purchasing an item using a shopping cart. When the transaction is complete press the
Finish Recording button on the LiquidTest Browser.
This will write out the test into the class selected as a single method.
Running your first Test Case is as simple as right clicking and selecting the appropriate runner. In the example above, if you recorded a Selenium HTML (.html) test you would right click and select
Run As.. →
Watch your Test Case execute: Now that you have executed the Test Case the browser (in the browser view) should repeat the actions you recorded and you should see the Runner stating the results: