Results 1 to 2 of 2

Thread: How will you load the object during run time?

  1. #1
    Contributing Member
    Join Date
    Feb 2008
    Answers
    40

    How will you load the object during run time?

    How will you load the object during run time?


  2. #2

    Re: How will you load the object during run time?

    Well, we won’t load objects during runtime, we only instruct QTP to interact with an object so it identifies it during runtime. QTP stores object definitions, or Test Object properties and along with those, it also stores Runtime object properties in its Object Repository. When the test runs, QTP maps these test object properties with the object’s runtime properties. If it successfully maps the runtime properties, test passes. If not, test fails.

    If you were asking about creating an instance of a particular application (or process) via QTP, then yes, it can be done using the “CreateObject” function. CreateObject basically creates an instances of an OLE Automation.

    For example, I want QTP to initiate an instance of Microsoft Excel, you would do it something like this:

    Dim oExcel
    Set oExcel=CreateObject(Excel.Application)
    oExcel.Launch ‘(Just for reference) Start Excel
    oExcel.visible=True ‘(Just for reference) Make Excel Application visible


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.
Interact