SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MultiParenting Problem

    The AUT has an identical window that has multiple parents. It is a VB6 app. and the window in question is a VBForm. I have tried the following tags to no avail:

    [ ]tag "~ActiveApp/[VBForm]*Contact" (this works great when recording, but I receive a VB error from the AUT when playing back the script: "Object doesn't support this property or method")

    The following tags do not even work when recording identifiers:

    [-]multitag "[VBChildForm]MPL/[VBForm]*Contact"
    [ ]"[VBChildForm]MPL/[VBForm]*Contact"

    [ ]tag "../[VBForm]*Contact"


    Unfortunatly, a function call cannot be made from the parent statement like it can from the tag statement.

    Any help would be greatly appreciated.
    Thanks,
    Steve


    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    I saw similar stuff on this forum. Try to add a new extention in Silk using your app's .exe. Then try simply to identify your app. I hope this will do you some good.

    ------------------

  3. #3
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    The extension enabler is correct for both the agent and SilkTest so this is not the issue. The issue is that SilkTest does not support a multiparent statement, and thus must be tricked by adding the parent to the tag statement. Unfortunatly, this is not working for the AUT. The error that I receive when using the multitag statement with the parent prefixed to the tag is: 'Multitag prefix differs from the first item'.

    Ideas...???

    Thanks,
    Steve

    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

  4. #4
    Senior Member
    Join Date
    Aug 1999
    Location
    Irvine, CA
    Posts
    157
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    You need to do it the first way you described:

    tag "~ActiveApp/[VBForm]*Contact"

    What method are you calling when you get the "Object doesn't support this property or method" error? It seems like this is where you need to troubleshoot the problem.

    ------------------
    Matt Gray
    Kofax Image Products
    Matt Gray

  5. #5
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    Matt,
    The method that I am calling is a Click on a Command Button - about as simple as you can get. The Procedure Name in the error log of the AUT is mnuEdit_Click and the error number is 438. This doesn't make any sense to me since there isn't a menu on this window. I wonder how SilkTest determines ActiveApp - I would imagine that it uses the Task List to determine this...but perhaps it uses some other logic to dermine ActiveApp.

    Any thoughts would be helpful.

    Thanks,
    Steve



    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

  6. #6
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    You can write a function which will return the respective tags.

    For Ex:

    window VBFrom A
    tag GetTag()

    ---
    ---
    ---

    GetTag()
    if Desktop.GetActive() == VBChildForm("A")
    return "[VBChilForm]A/[VBForm]*Contact"
    else
    return "[VBChilForm]B/[VBForm]*Contact"

    You can use the switch .. case statement if you expect more parents.

    p.s : Syntax might not be correct. I am just explaining you the idea.

    Regards


    ------------------


    [This message has been edited by Sandeep (edited 07-31-2001).]

  7. #7
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    Thanks for your responses. Unfortunatly, these are not working yet....

    The format "[VBChildForm]ContactIndex/[VBForm]*Contact" is not working for any of my windows. Is there an agent setting that needs to be turned on or off to allow this to work? "../[VBForm]*Contact" also does not work for any of my windows in the Frame...

    Everything else in my frame is working great, except for the multiple parentage. I suppose I could break the window into seperate windows each with thier unique parent, but that would mean that all thier children would have to be seperated as well...

    Steve

    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

  8. #8
    Junior Member
    Join Date
    Jul 2001
    Location
    milford, Ma, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    The tag looks correct.
    Just for testing purposes, try not using the ActiveApp with using the parent and see if the click method works. See if the problem is the ActiveApp or the method being called.


    ------------------



    ------------------

  9. #9
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MultiParenting Problem

    cgriswold,
    The problem is the ~ActiveApp... I have a feeling that there is a problem in the code for this particular window, since the use of ~ActiveApp does not cause errors in other windows... Now I just have to work with the developers to see what is wrong with that particular window that it doesn't work with ~ActiveApp.

    My next question is why doesn't "[VBChildForm]MPL/[VBForm]*Contact" work???

    Thanks,
    Steve

    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 10:59 AM.

Copyright BetaSoft Inc.