1Automation Framework
2Test Automation ApproachThe Test Script Modularity Framework
The Test Library Architecture Framework
The Keyword-Driven or Table-Driven Testing Framework
The Data-Driven Testing Framework
The Hybrid Test Automation Framework3Test Automation Framework	The most commonly implemented framework is a combination of all of the above techniques, pulling from their strengths and trying to mitigate their weaknesses. 	NexOS Test Automation Framework (Hybrid) =Test Script Modularity / Test library Framework				+The DataDriven Testing Framework
4Test Script Modularity FrameworkThe test script modularity framework requires the creation of small, independent scripts that represent modules, sections, and functions of the application-under-test.These small scripts are then used in a hierarchical fashion to construct larger tests, realizing a particular test case.
5Test Library Architecture FrameworkThe test library architecture framework is very similar to the test script modularity framework and offers the same advantages, but it divides the application-under-test into procedures and functions instead of scripts.This framework requires the creation of library files (SQABasic libraries, APIs, DLLs, and such) that represent modules, sections, and functions of the application-under-test. These library files are then called directly from the test case script.This is incorporated in NexOS Project by creation of Business functions which are specific to partition/workspace/reveal in vbs files and NexOS,generic / Global functions (for each web Object). which are used as libraries.
6VBS files for PartitionsPartition in NexOSLibrary file		1.Login				NexOS_Login.vbs			2.Application			NexOS_Application.vbs		3.Credit				NexOS_Credit.vbs		4.LPF				NexOS_LPF.vbs		5.PRP				NexOS_PRP.vbs		6.Registration			NexOS_Registration.vbs		7.Underwriting			NexOS_Underwriting.vbs		8.Submit				NexOS_Submit.vbs		9.Pipeline			NexOS_Pipeline.vbs	Each .vbs  file has the functions defined for that particular partition
7VBS files for Generic FunctionsFunctionality		Library File1.Datatable			DataTable.vbs		2.Global				Global.vbs		3.Reporting			HTML.vbs		4.Object Descriptions		Constants.vbs		5.Messages			messages.vbs		6.Utilities			util.vbs
8Data-Driven Testing FrameworkData-driven testing framework is incorporated in NexOS Project by inputting the data into an Excel file and importing the values into QTP Data table at the time of execution. Enables to test the application with multiple sets of data.
9Configuration SettingsEnvironment Variables (read only data) are declared in Config.ini fileFollowing are the Environment variables:AccessResultsLocation
ScreenshotRootpath
POS_Validation
TakeScreenshot10Login ConfigurationThe user id, password (encrypted) and environment (URL) and the Host Name are driven from the Login_Config.xls file attached to the config folder in the QC test planDefault URL i.e., http://originationit will be taken if there is no entry for the URL and the QC User Name will be taken to login to the application if there is no userId Provided in the Login_Config.xls file
11Folder StructureTest Plan consists of three main folders:Development contain scripts under constructionHandoff are scripts delivered to client. Performance are scripts modified 		for stress testing.Each folder structure contains:	Config			Documents	LIB			OR	Recovery		ScriptsTest Plan
12Test Plan StructureConfig: Configuration file has the environmental variables of URL, Userid, Password, Pool, AccessResultsLocation path, Login config path, Screenshot root path, POS validation and Take Screen shot.Documents:Documents folder contains all documents required for preparation and understanding of the NexOS Automation project.LIB: Contains Business Library and Global Library Functions located in the form of  vbs fileOR:Contains object repository files attached in the Attachment section. Object Repository is used in Login part of the application, because some win objects are not identified by the descriptive programming or takes more time to identify. The file is saved in .tsr( Test Shared Repository) extension.
13Test Plan Structure (continued)Recovery: Contains some attachments for Recovery Scenarios in .qrs(Quick Test Recovery Scenario) and .vbs files are attached in Attachment sectionScripts: Contains Integration and POS folders, where integration folder contains Test set folder, in Test Set Process Flow folder wise is divided, respected test scripts and the Smoke Test Cases. Each test script has its own test data attached in the attachment section. POS folder contains all the pos test scripts and the test data attached to the Attachment section.The Test Scenarios in NexOS automation Project are divided into different Test Sets, each Test Set contains 10 Process Flows, each flow contains different Test scenario Scripts, for each script test data is attached in the Attachment section. Test Set (X)->Process Flow (X)->Test Script
14Handoff and Performance Folder Handoff folder:Folder structure is same as the structure mentioned above (i.e. Config, Documents, LIB, OR, Recovery, Results and Scripts).Process of delivering the scripts is a folder is created with a date 2007_11_15(start date of deliverables). Performance folder:These set of scripts were to support performance testing team and returns the page rendering time.
15Script Components GuidelineWhen the script is developed and ready for execution, follow the guidelines given below:Connect to Quality Center.

Automation Framework 042009 V2

  • 1.
  • 2.
    2Test Automation ApproachTheTest Script Modularity Framework
  • 3.
    The Test LibraryArchitecture Framework
  • 4.
    The Keyword-Driven orTable-Driven Testing Framework
  • 5.
  • 6.
    The Hybrid TestAutomation Framework3Test Automation Framework The most commonly implemented framework is a combination of all of the above techniques, pulling from their strengths and trying to mitigate their weaknesses. NexOS Test Automation Framework (Hybrid) =Test Script Modularity / Test library Framework +The DataDriven Testing Framework
  • 7.
    4Test Script ModularityFrameworkThe test script modularity framework requires the creation of small, independent scripts that represent modules, sections, and functions of the application-under-test.These small scripts are then used in a hierarchical fashion to construct larger tests, realizing a particular test case.
  • 8.
    5Test Library ArchitectureFrameworkThe test library architecture framework is very similar to the test script modularity framework and offers the same advantages, but it divides the application-under-test into procedures and functions instead of scripts.This framework requires the creation of library files (SQABasic libraries, APIs, DLLs, and such) that represent modules, sections, and functions of the application-under-test. These library files are then called directly from the test case script.This is incorporated in NexOS Project by creation of Business functions which are specific to partition/workspace/reveal in vbs files and NexOS,generic / Global functions (for each web Object). which are used as libraries.
  • 9.
    6VBS files forPartitionsPartition in NexOSLibrary file 1.Login NexOS_Login.vbs 2.Application NexOS_Application.vbs 3.Credit NexOS_Credit.vbs 4.LPF NexOS_LPF.vbs 5.PRP NexOS_PRP.vbs 6.Registration NexOS_Registration.vbs 7.Underwriting NexOS_Underwriting.vbs 8.Submit NexOS_Submit.vbs 9.Pipeline NexOS_Pipeline.vbs Each .vbs file has the functions defined for that particular partition
  • 10.
    7VBS files forGeneric FunctionsFunctionality Library File1.Datatable DataTable.vbs 2.Global Global.vbs 3.Reporting HTML.vbs 4.Object Descriptions Constants.vbs 5.Messages messages.vbs 6.Utilities util.vbs
  • 11.
    8Data-Driven Testing FrameworkData-driventesting framework is incorporated in NexOS Project by inputting the data into an Excel file and importing the values into QTP Data table at the time of execution. Enables to test the application with multiple sets of data.
  • 12.
    9Configuration SettingsEnvironment Variables(read only data) are declared in Config.ini fileFollowing are the Environment variables:AccessResultsLocation
  • 13.
  • 14.
  • 15.
    TakeScreenshot10Login ConfigurationThe userid, password (encrypted) and environment (URL) and the Host Name are driven from the Login_Config.xls file attached to the config folder in the QC test planDefault URL i.e., http://originationit will be taken if there is no entry for the URL and the QC User Name will be taken to login to the application if there is no userId Provided in the Login_Config.xls file
  • 16.
    11Folder StructureTest Planconsists of three main folders:Development contain scripts under constructionHandoff are scripts delivered to client. Performance are scripts modified for stress testing.Each folder structure contains: Config Documents LIB OR Recovery ScriptsTest Plan
  • 17.
    12Test Plan StructureConfig:Configuration file has the environmental variables of URL, Userid, Password, Pool, AccessResultsLocation path, Login config path, Screenshot root path, POS validation and Take Screen shot.Documents:Documents folder contains all documents required for preparation and understanding of the NexOS Automation project.LIB: Contains Business Library and Global Library Functions located in the form of vbs fileOR:Contains object repository files attached in the Attachment section. Object Repository is used in Login part of the application, because some win objects are not identified by the descriptive programming or takes more time to identify. The file is saved in .tsr( Test Shared Repository) extension.
  • 18.
    13Test Plan Structure(continued)Recovery: Contains some attachments for Recovery Scenarios in .qrs(Quick Test Recovery Scenario) and .vbs files are attached in Attachment sectionScripts: Contains Integration and POS folders, where integration folder contains Test set folder, in Test Set Process Flow folder wise is divided, respected test scripts and the Smoke Test Cases. Each test script has its own test data attached in the attachment section. POS folder contains all the pos test scripts and the test data attached to the Attachment section.The Test Scenarios in NexOS automation Project are divided into different Test Sets, each Test Set contains 10 Process Flows, each flow contains different Test scenario Scripts, for each script test data is attached in the Attachment section. Test Set (X)->Process Flow (X)->Test Script
  • 19.
    14Handoff and PerformanceFolder Handoff folder:Folder structure is same as the structure mentioned above (i.e. Config, Documents, LIB, OR, Recovery, Results and Scripts).Process of delivering the scripts is a folder is created with a date 2007_11_15(start date of deliverables). Performance folder:These set of scripts were to support performance testing team and returns the page rendering time.
  • 20.
    15Script Components GuidelineWhenthe script is developed and ready for execution, follow the guidelines given below:Connect to Quality Center.
  • 21.
    Ensure that TestData (Excel sheet) is attached to the Test Script.
  • 22.
    Add all theLibrary files required for test execution in LIB.
  • 23.
    Add Configuration filein Config folder.
  • 24.
    Add Object Repositoryfile in OR.16Script Execution from Test LabGo to Test Lab in Quality Center
  • 25.
    Select the requiredtest from the execution grid and click on Run button on the header,
  • 26.
    Select the requiredhost for execution and again click on Run button in the Pop up window
  • 27.
    Quality Center willinitiate QTP and executes the selected script.
  • 28.
    Click on RunTest Set button in order to run the entire Test set 17Execution From QualityCenter
  • 29.
    18Test ResultsTest Resultsare of two types:ReportingScreen shotsReporting - Test Results are stored in two places. Microsoft Access (Database) Test Lab in Quality Center.Screen shots
  • 30.
    19Storing Results inAccess and QCTracking Results in MS-Access:All the Verification points in each script are stored in the Respective Table of the MS-Access. Results can be tracked at the following location which can be configurable from the configuration file. Path : agotsnexosdev03\E$\NexOS.Kiran\NEXOS\TestData\NexOSPOS.mdbTest Lab in Quality Center:Go to Test Lab Tab in the Quality centreDouble click on the script executed in the Execution gridDouble click on the Run Name in the Test instance Properties Dialog BoxVerify the results in the Run Steps Dialog box
  • 31.