SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    May 2002
    Location
    Vancouver, BC, Canada
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    TextPanel always on top?

    Hi all,

    I'm just looking for an easy way to visually track the progress of my automated test. Basically the problem is that my script will run through several iterations that visually look the same, but the data is different. I'm hoping there is a way for me to easily see which test is going on at any given time as the tests can take upwards of 6 hours.

    The closest thing I've found is TextPanel, which would work great but to run my tests properly I need to expand our program to fill the entire screen and the TextPanel then disappears behind our software. Is there a way to set the TextPanel to always remain at the forefront? Or is there perhaps another way to provide this functionality easily?

    Thanks
    Dave

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

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Dallas, TX
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TextPanel always on top?

    We hooked a TextPanel call to one of our very common functions (we overrode "attach" in order to provide some better logging, so we literally use it everywhere).

    Then it becomes a pretty simple matter to put "TextPanel 1, g_Status" in there. I think attaching to the window will block out the text-panel (you will lose sight of it) so attach is a pretty decent place to put it.

    (Are you listening CompuWare?!?)

    --Robert

  3. #3
    Senior Member
    Join Date
    Aug 2002
    Location
    Manchester, UK
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TextPanel always on top?

    Alternatively, will putting the TextPanel on top of the Windows Task Bar solve this?

    A maximised window will not cover this.

    Regards,


    ------------------
    Automation and Test Consultancy

    Testing@archiemoore.co.uk

    **************************************

    [This message has been edited by mooreaz (edited 02-06-2003).]
    Automation and Test Consultancy

    Testing@archiemoore.co.uk

    **************************************

  4. #4
    Junior Member
    Join Date
    Sep 2002
    Location
    Germany
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TextPanel always on top?

    But look out: Sometimes I had problems with the attachments and automations, because of the TextPanel. So keeping it on top could cause even more problems

    Still running...

    ------------------
    QARun 4.8 Build 1376
    Win95, Win2000, NT 4.0 SP5 (german)
    QARun 4.8 Build 1376
    Win95, Win2000, NT 4.0 SP5 (german)

  5. #5
    Member
    Join Date
    Sep 2001
    Location
    Netherlands
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TextPanel always on top?

    Well, here you have your solution:

    The next function will create a textpanel which stays ON TOP !


    ;-------------------------------------

    Declare DllFunc "long SetWindowPos( long, long, long, long, long, long, long ) user32" SetWindowPositie

    Function Main

    textpanel 1, "Not on top", 100, 100, 100, 100
    sleep 5
    TextPanelOnTop 1, "Put on top", 100, 100, 100, 100
    sleep 5
    textpanel 1 "Not on top", 100, 100, 100, 100
    sleep 5
    Textpanelclose 1
    sleep 5

    End Function ; Main

    Function TextPanelOnTop(Number, Text, A, B, C, D)

    textpanel Number Text, A, B, C, D

    Repeat
    sleep 50, "ms"
    setfocus "~N~RUNAWL.EXE~*~*"
    WinGetPos( x, y, w, h, Activename() )
    Until Instr(ActiveName(), "RUNAWL.EXE") != -1

    SetWindowPositie (activewindow(), -1,x,y,w,h,0)


    End Function


    Greetings,

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


    [This message has been edited by QAToolBoy (edited 02-27-2003).]

 

 

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 9.38%
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 03:50 AM.

Copyright BetaSoft Inc.