SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    At runtime, how do I find out the class mappings in use?

    I am trying to write a sanity check in TestCaseEnter, to ensure that the computer has got all it's class mappings in order. I want to do this by comparing the class mappings which are set, against a standard list stored in a text file in a central location.
    Unfortunately, I can't work out how to access (at runtime) the class mappings which are currently in use. They are stored in the .opt file corresponding to the current option set in use, so if I could identify the option set then I could look in the .opt file and easily extract the data from there, but I don't know how to do that either.

    Anybody know if it's possible, at runtime, to find out either the name of the in-use option set, or to directly find out the clas mappings in use?

    P.S. If there's nothing else, then the last resort is to look at the silktest title bar, which shows the name (including location) of the in-use option set, but that would be a very messy workaround.

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

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: At runtime, how do I find out the class mappings in use?

    How about FindWindow() ?

    John


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

  3. #3
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: At runtime, how do I find out the class mappings in use?

    When in doubt of what class mappings are used what I would recomment is creating a Script Enter function that will set the class mappings for you. Something like:

    This way the class mapping that you want will be set for you. You can alway read this data in from the text file where you are storing these class maps.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  4. #4
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: At runtime, how do I find out the class mappings in use?

    Brilliant, that sounds absolutely perfect. Ta loads.

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

  5. #5
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: At runtime, how do I find out the class mappings in use?

    Where is the ScriptEnter placed? Is it placed inside the mainwin declaration? And how do we call it, let's say I am having problem with the app launch based on the defaultbasestate, like

    testcase Startapp()

    The above testcase doesn't work, and I would like to override the DefaultBaseState (which is executed by executing the DefaultScriptEnter function when the script file is first accessed) with ScriptEnter().

  6. #6
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: At runtime, how do I find out the class mappings in use?

    Declare it as a function in your frame file but not inside any window declaration.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

 

 

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 11:03 PM.

Copyright BetaSoft Inc.