Results 1 to 2 of 2

Thread: How to design and use the data sheet in a Script

  1. #1
    Junior Member
    Join Date
    Jul 2007

    How to design and use the data sheet in a Script

    If Dialog("Login").Exist Then
    'Login to the application
    Dialog("Login").WinEdit("Agent Name:").Set DataTable("LoginUid", "FlightR-WinApplication")
    Dialog("Login").WinEdit("Password:").SetSecure DataTable("LoginPwd", dtLocalSheet)

    What is data table, Local Sheet? How to design a data sheet and how to use it in the script?

  2. #2
    Contributing Member
    Join Date
    Mar 2007

    Re: How to design and use the data sheet in a Script

    DataSheet is used for getting parameterized data to the script.In QTP there are two inbuild datasheets one is global-Used across the actions and local-used only to that specified action.There is a concept to use external datasheet also like excel etc.,

    in ur code "Dialog("Login").WinEdit("Agent Name:").Set DataTable("LoginUid", "FlightR-WinApplication") "

    LoginUid - will be the field name of the datasheet
    FlightR-WinApplication - Ur Action Name

    From the FlightR-Window Action datasheet it will pick up the parameterized data from the LoginUid field and supply to the application "Agent Name" filed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.