SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Is there any way to run QTP Action through AOM.

    Hi

    Please consider a situation where there are 10 reusable actions in one main action.

    My one test contains combination of the above reusable actions.

    I want to call the actions depending on the logic written in vbs.

    Is there any way be which I can directly call any reusable action from vbs.

    like as we have qtp.test.run for running tests.

    something like qtp.action.run.... ???

    Thanks in advance....
    Automation Test Engineer

  2. #2
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    [ QUOTE ]

    Is there any way be which I can directly call any reusable action from vbs.

    like as we have qtp.test.run for running tests.

    something like qtp.action.run.... ???



    [/ QUOTE ]

    No. There's no way to do it. Can you explain the purpose?
    Rajkumar

  3. #3
    Member
    Join Date
    Mar 2010
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    Hi Rajkumar

    We have a established framework which is written in C# and uses Nant for writing Test Case logic.

    It calls a QTP Test for each target call and populates the data table required. It means if I have 10 steps i need to open 10 tests and call.

    Which degrades the performance...as lot of time is wasted in opening of test case.
    I was trying to optimize the framework...but m nt able to find the way out...as there are thousand test cases written on this framework...so cant change it completely have to optimize....it...
    Automation Test Engineer

  4. #4
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    I think I can't be of much help here, as I am not sure how your framework is designed & how it works.

    But I have a question. When you say, "it calls a QTP test & populates the data table required", what exactly are you doing here. Are you just populating the data sheet or are you also editing the Actions using AOM?
    Rajkumar

  5. #5
    Advanced Member cgrzelka's Avatar
    Join Date
    Feb 2005
    Location
    Bordeaux, France
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    If I understand correctly (and I'll take only 3 actions to simplify), you have actions A1, A2 and A3. For some test cases, you need to perform, let's say A1;A2;A3 (may be several times with different data) ; for some other test cases you need to perform, let's say, A1;A3;A2.

    You certainly can create a vbs file with the appropriate statements. Now, the main action of the QTP test would be to "executeglobal" that file. The filename could be a parameter of the test.

  6. #6
    Member
    Join Date
    Mar 2010
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    Hi Christian

    I think you have got the scenario.... can you please explain

    You certainly can create a vbs file with the appropriate statements. Now, the main action of the QTP test would be to "executeglobal" that file. The filename could be a parameter of the test.


    The process you described above...

    Thanks!!
    Automation Test Engineer

  7. #7
    Advanced Member cgrzelka's Avatar
    Join Date
    Feb 2005
    Location
    Bordeaux, France
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    1. You create (for instance, in a temp directory) a file that contains your test logic :
    RunAction "A1",...
    RunAction "A2", ...
    RunAction "A3", ...

    2. The main action of your QTP test (the one that also contains actions A1, A2 and A3) has one parameter, which is a file name (your QTP script also has the same parameter).

    3. The only statement in your main action of your QTP script is :

    ExecuteFile <i>FileName</i>

    where <i>FileName</i> is your parameter.

  8. #8
    Member
    Join Date
    Mar 2010
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    Hi

    Can you please explain the 2 point a bit more...

    This is what i have done..

    I have created vbs file with the followig Data:

    RunAction "Action1 [Login_Script]", oneIteration
    RunAction "Action1 [OpenDoc_Script]", oneIteration
    ...
    ..

    And I have a Main QTP test which have all the above actions present but the test is blank.

    I have added this line to the Test or the Main Action of the Test

    ExecuteFile "C:\...Path of the above vbs"

    But the above code is not working..

    Lemme know plz where m goin wrng... [img]/images/graemlins/smile.gif[/img]

    Thanks!!
    Automation Test Engineer

  9. #9
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    Akshay,

    Can you explain your requirements clearly?

    Do you want to run the action with different Test Data sheets or do you want to execute a function file?
    Rajkumar

  10. #10
    Member
    Join Date
    Mar 2010
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there any way to run QTP Action through AOM.

    Hi Rajkumar

    Sorry for making the thread active again... was nt able to log into the forum...

    Following is my req.

    -Consider a QTP Test which has 20 reusable actions in it.
    -I have 100s of Test which are based on the above reusable actions and different set of Test Data.

    What I am trying to achieve
    -The main test that I stated above should have only one line i.e.

    ExecuteFile "C:\A.VBS" --> I will parameterize the filename

    And this A.VBS will have the following code:

    RunAction "Action1 [D]", oneIteration
    RunAction "Action1 [A]", oneIteration
    RunAction "Action1 [b]", oneIteration
    ..so on...

    Similarly I can have B.VBS

    RunAction "Action1 [A]", oneIteration
    RunAction "Action1 [b]", oneIteration
    RunAction "Action1 [C]", oneIteration
    ..so on...

    So only one Main QTPTEST and different VBS files..

    But the above code is not working..

    Lemme know plz where m goin wrng... [img]/images/graemlins/smile.gif[/img]

    Thanks!!
    Automation Test Engineer

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:54 PM.

Copyright BetaSoft Inc.