SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Dec 2000
    Location
    Pune, India
    Posts
    135
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DialogBox is being recognized as generic MsgBox

    I have captured on DialogBox from our application

    The declaration is as follows,

    [-] window DialogBox IOAllocationByLV
    [ ] tag "I?O Allocation by LV"
    [ ] parent FileServersForCalled

    But when I record any actions on this DialogBox SilkTest is recognizing it as standard MsgBox and recording statements as MsgBox.SetActive( ) instead of IOAllocationByLV.SetActive( )

    How do I resolve this problem so that SilkTest starts recognizing it as specifically IOAllocationByLV DialogBox instead of generic MsgBox?


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

  2. #2
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DialogBox is being recognized as generic MsgBox

    problem is your dialogbox really is a messagebox. in your script you could refer to it as either and silk will deal with it correctly. when you're recording actions on a window silk basically has to pick a window dec of yours that matches the window your acting on. quite possible that there are more than one possible matches in all of your declarations. in this case the messagebox declaration is a possible match. Not sure how Silk goes about finding a match, doubt you can control this. Can you comment out the MessageBox declaration while recording? if not, you may be stuck replacing after you've recorded your actions.

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

  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DialogBox is being recognized as generic MsgBox

    This has worked for me in the past with web applications.

    Make sure your frame file is the first item in your list of use files. You can find this information in runtime options.

    1. Expand options menu
    2. Select runtime
    3. Verify that your frame file is before any other include files in the Use files edit field. Example:

    c:\<myframefile.inc>,extend/explorer.inc

    Many times the built in include files are declared before your frame file as a result you get the generic dialogbox window name when recording.

    - Joe

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

  4. #4
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DialogBox is being recognized as generic MsgBox

    The formatting of my example was stripped out in the previous post. The example should look like this:

    C:\YourFramFile.inc,extend\explorer.inc



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

  5. #5
    Senior Member
    Join Date
    Dec 2000
    Location
    Pune, India
    Posts
    135
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DialogBox is being recognized as generic MsgBox

    I cannot comment the generic message box declaration because I am also using it in my script for handling popup error message, if I comment the script cannot compile.

    Other problem is that the application DialogBox contains some more objects than the generic MsgBox. I want to verify these other objects. Presently I have declared the DialogBox and writing the script manually for verification, this is taking time, I wanted to take some help from recording to make it fast.

    I have got different inc files for different modules I changed the sequence in options runtime use files but it is still not working.

    Can any one provide any other solution for this?


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

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

    Re: DialogBox is being recognized as generic MsgBox

    In my opinion, it is worth commenting out your generic messagbox declaration and recording a separate window declaration for all your different dialogboxes. See the discussion at http://www.qaforums.com/Forum1/HTML/001966.html for more details.

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

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    Pune, MH, India
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DialogBox is being recognized as generic MsgBox

    Hi,

    Declare generic messagebox with unique name
    instead of using standard name as
    MessageBox.

    -Niteen


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

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DialogBox is being recognized as generic MsgBox

    1. The script should be able to use any of the frame - as a dialogbox or as a message box.
    Check the following: The window id/tags combination is referring to the same object. If the #id tag refers to the same, it will work fine.

    2. To work with additional objects in the dialogbox, just reRecord the whole dialogbox again once, and the cut and paste declarations of those additional objects into the original messagebox. Call objects as and when you need.


    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

 

 

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 03:54 AM.

Copyright BetaSoft Inc.