Fire Framework Installation Steps
Fire Framework Installation Steps
Tavant Technologies’ FIRE framework, which stands for Framework for Intelligent and Rapid
Execution, is a ready-to-use automation platform which can be used in a variety of projects
with requirement of less customization and maintenance. It has been developed using open
source tools like Selenium, TestNG, WebDriver and Java.
The FIRE Framework offers three different levels of script writing based on the users’ skill sets.
1. Users with no knowledge of programming
2. Users with basic knowledge of programming/scripting
3. Expert users who can write or enhance custom utilities
This framework is easy to adopt and maintain. It provides flexibility in test data maintenance,
parallel execution of test cases, remote machine test execution and cross browser execution.
It is a planned & structured framework that helps in reducing the risk of negative ROI of test
automation. It also helps in increasing the ratio of test scenarios which can be automated
and increases the coverage of automation.
To get started on the FIRE Framework, the initial setup steps are as follows:
1. Install JDK1.7
a. Visit Java download page
b. Download JDK
c. Install JDK
d. Set Environment variable JAVA_HOME to path (also set path and class path as
shown below) where JDK is installed
i. Variable name : JAVA_HOME
ii. Variable value: C:\Program Files\Java\jdk1.7
e. Open command window and test java installation by typing java –version
(*path: http://svn.corp.tavant.com/svnproj/FunctionalAutomation/trunk/DemoProjects)
4. Download and Install the “apache tomcat-7.0.40” files and extract. Set the variable path
ii. Start the tomcat server from command prompt (from the command
prompt, go to the tomcat bin folder path and type the command as
“catalina run” or by clicking on “startup” file from bin folder)
iii. The server can be stopped by command <Ctrl> + C.
iv. Access the sample demo application website using URL >
http://localhost:8080/SampleWebapp/login
User credentials: admin/admin.
6. Run the Command “mvn clean install” from projectNamefolder where pom.xml file is
located.
8. For browser like IE and Chrome we need download the native drivers from the website
http://code.google.com/p/chromedriver/
http://code.google.com/p/selenium/downloads/list
The FIRE framework contains two different excel files- Repository.xls and a testcase.xls.
These files are located at \Fire\src\test\resources”.
1. Page Objects
2. CustKeywords
3. Keywords
1. Page Objects :
Page Object worksheet will contain information of how framework can identify each
element in the pages which is available in the application. Each element should have unique
name to identify the objects. Page object has the following fields;
2. Custom Keywords:
The User has the option to create project specific methods whenever it is required. Those
methods will be placed under Custom Keywords section .This allows the user to avail these
methods at a later point.
ClassName : Class Name is where the user has written the custom methods.
MethodName :The user enters his custom methods under this field.
Description : This field holds the Description about the method
AliasKWName : This is the Alias name we give for the custom method. Users will use
this name while referring to the custom methods.
*Sample Custom Keywords
The user has to import the project into the eclipse, doing the following steps,
EclipseFileImport Existing Maven ProjectSelect the Project Folder .The user also
has to extend the WebPage to the Java class while writing the Custom methods.
Below screenshot depicts how the user can create custom methods for a specific project.
The user will pass multiple parameters as a single parameter with a splitter in the I/O Value
field. In the below mentioned example, the user splits the parameter with “:” .User will
separate the parameter in the code. The user will also provide the custom method name in
the Action field and the parameters in the I/O Value field. Please find screenshot below
3. Keywords
All the keywords which are defined in the framework will be displayed in the keywords page
in the repository file. User can use the keywords screen for reference. User will be using an
alias name to use the keywords.
1. Run Configuration
2. TC_ScenarioActions
3. Action-Steps
4. TestDataSet
5. DataPool
1) Run Configuration
The Run Configuration sheet incorporates the button called ‘Setup & Run’. Clicking on the
button allows the user to initiate the test run.
Clicking on the Setup & Run button causes the following Screen to popup.
URL – Application URL could be provided here.
Browsers- User has the option to run the tests in cross browser execution and currently fire
framework supports 3 different browsers –Firefox, Internet Explorer and Chrome.
Run Tests Parallel –This feature allows the user to run tests in parallel.
Select Groups To Run – All the groups which are mentioned in the TC_ScenarioActions sheet
will be displayed and user can select the group which is required while running the tests.
Let’s Say user selects the option Cross Browser Execution and selected the browsers FF and
IE. So the test cases we selected will be executed in FF and IE browsers one after other.
Parallel Execution
Parallel Execution option allows the user to run tests in parallel by opening multiple instances of the
browser and running the tests simultaneously.
2. TC_ScenarioActions
User can have multiple scenario sheets starting with the name ‘TC_’ followed by the test
case file name.
3. Actions-Steps
Actions are nothing but the Methods/Functions. In order to avoid redundancy, the user can
use the action statement to cover a series of steps.
Let’s say a user wants to write an action called ‘Login As Admin’ .User will accept the inputs
called “Username”, “Password” and then Clicks on Login/Submit Button .These details can
be written under an action as mentioned below.
Here Action will be the method/Function Name and Step Description will provide the each
step description .Command will be the Keywords which are defined in the framework.
Commands will be mapped from the Keywords sheet in the Repository. Target Element will
be the object names and this will be mapped from the PageObject in the Repository file and
the value will be the user input values.
TestDataSet
TestDataSet will be used if the user needs to use specific data set for the test
cases.TestDataSet Sheet will have the following fields
Variable: Element Name where user wants to pass the value will be provided and Target
Element Name should be mapped to Target Element Name in Repository File.
Above Example, Test DataSet ID will be provided in the I/O Value field in the
TC_ScenarioActions sheet.
DATAPOOL
DataPool basically used for Data Driven Tests. User can have multiple Datapool and
datapool name defined by the user. Datapool sheet will have the following fields.
Variable field holds value which is referred to by the target element field in repository file
Above example, user has used data pool called SSNDATAPOOL in the I/O Value in the
TC_ScenarioActions.
Storing Variable
User can store value to a variable and use it whenever it is required in the test cases. So We
have introduced this feature in FIRE using the keyword “Fire_storeValue” .User can store
value to a variable and variable name can be defined with ‘var_<variable name>’ .
Please find the sample of storing a value to a variable and use that variable in the test case.
Global Variables
User can define global variable and use it wherever it is needed. So a global variable will be defined
under CommonTestData sheet in Repository file.
Variable Value
user Admin
pwd Admin
*Global Variable defined in CommonTestData Sheet
In the above example, the user is using the global variable with in “{}” in the Value field and the
corresponding value which is defined in the CommonTestData sheet will be passed to the
TargetElement.
Results
Result folder and reports will be created/generated once the test execution is completed. User can
navigate to the test execution reports by clicking on the Open Report button in the Test Run
Configuration window. Refer the screenshot below:
When a user clicks on the “ OpenReport” Button ,the Test Execution Report page will be opened and
this report will provide detailed information about the test execution like: Total Test cases, Total
Testcase passed, Total Testcase Failed and Total Testcase skipped with Detailed Result Report .
Please find the Test Execution Report screenshot below:
Another way to access the Result file is by navigating to the test-output folder with Date and
Time stamp and clicking on Result.html file. The test-output folder with date and time stamp
will be created under project folder. Please find the Test Execution Report screenshot
below.
When any test case fails, the Test execution report page will provide a hyperlink which provides the
reason to why the Testcase failed. Please find the screenshot below:
In the case of a Testcase failure, a screenshot of the failed scenario will be created and it will be
located under the test-output folder and the path for it is
“Test-output folder” with date and time stamp > screenshot > Browser > folder.The filename for the
screen shot would be <test case name>.png.
Please Refer the below screenshot :