Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Selenium Model View Controller Test Framework Part 4 - Base Framework

Part 4 Base Framework:
Source code for each class

AppConstant.Java


package com.seleniummaster.qa.framework;

public class AppConstant {
   
    public static final String HOMEVALUE="500000";
    public static final String CREDITPROFILE="Excellent";
    public static final String DOWNPAYMENT="80000";
    public static final String LOANPURPOSE="New Purchase";
    public static final String INTERESTRATE="5";
    public static final String LOANTERM="30";
    public static final String STARTMONTH="Dec";
    public static final String STARTYEAR="2012";
    public static final String PROPERTYTAX="1.25";
    public static final String PMI="0.5";

}

ScriptBase.Java

Print

Selenium Model View Controller Test Framework Part 1

Part 1:

 Start the Selenium RC Server by using the command line:

 java -jar C:\Selenium_1X\selenium-server.jar -port 4444 -interactive

 

Print

How Selenium Model View Controller Test Framework works

Selenium Model View Controller Test Framework works in a very efficient way in which Quality Assurance engineers will separate web site element identification, test case data, test engine base script and main test script (simple script) in the Java package or .Net namespace. This way test maintenance would be very easy for future UI and test data update. 

This frame has several components:

1. Base Framework (includes test engine base script and App data)

2. Controller (includes the action that simulates the steps in the test case)

3. Model (includes all the web elements in the test case)

4. View or Main script (includes simple script to run the test)

See the Selenium Model View Controller Test Framework diagram below