Results 1 to 3 of 3
  1. #1

    Using AOM to get Current Test Name

    Hello All,
    I am pretty new to OOP and not too slick at it yet. What I want to do is a very easy thing, but I am confused on the syntax.
    I am loading a external datasheet from excel. Depending on which test is calling this datasheet load action, I want to put the datasheet into the local sheet of some specific action. All I want to do is use the AOM to find the current test name. I can't figure out how to refer to the information and all I can find in the help is where you initiate a new automation object which involves starting qtp. I want to access the name property while the test is already running.
    Here is some pseudocode of what I want to do
    Select Case test.name
    case test1
    put ds in that action
    case test2
    put ds in the other action
    end select

    Can someone help me with accessing this AOM?

    Thanks in Advance,

  2. #2
    Join Date
    Jan 2007
    Pittsburgh, PA

    Re: Using AOM to get Current Test Name

    You don't need AOM to get the test name. Just use the below one line of code.
    Msgbox Environment("TestName")

  3. #3

    Re: Using AOM to get Current Test Name

    That was what I needed. Thanks for the help.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:30 PM.

Copyright BetaSoft Inc.