Wednesday 28 August 2013

Naming Conventions while writing the QTP Script

Naming Conventions

Automation Components:


• Modules:
  For modules, we should give a name as
  Syntax: Module_<TestCaseName> (Here Module name is one which Calling the Test case from Main Test Case)
  Ex: Module_ Book_Flight (It's a reusable script)
   
• Business/Main Scripts:
  Syntax: Script_<TestCaseName>
  Ex:  Script_ Flight_Application


• Functions:
  Syntax: Function_<Function Name>
  Ex: Function_Login
• Shared Repository:
  Syntax: Repository_<Module Name>
  Ex: Repository_Flight_Applications.tsr
• Test Data( For Excel file):
  Syntax: TestData_<ModuleName>
  Ex: TestData_Flight_Applications.xls

No comments:

Post a Comment