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
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    Do you do this?:

    Taskbar.StartButton.SetActive ()
    Taskbar.StartButton.Click()

    If yes and still a problem, try:

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">int tries = 0
    while (TRUE)
    do
    Taskbar.StartButton.SetActive ()
    Taskbar.StartButton.Click()
    break // Don't forget this!
    except
    tries++
    if (tries &lt; 10)
    Sleep(2)
    continue
    else
    LogError(&quot;..&quot
    break</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

    [ 01-09-2004, 01:31 PM: Message edited by: Chris Mead ]
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    testcase run successfully but failed in test plan or test suit

    i have couple of test case, all run perfectly by itself, but if put those test case in test plan or test suit, it failed in some case. for example
    Taskbar.StartButton.Click() this line got error like:
    [ ] *** Error: Window '[PushButton]#1|[PushButton]$304' is not active

    Anyone got suggestion?

    Thanks in advanced

    TiGeR

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    Thanks for ur help, but both way isnot work, i found out problem is: after uninstall, no active windowns exists more. so i guess silktest lost here. if i click a windows(anyone), make it active, Taskbar.StartButton.SetActive ()
    Taskbar.StartButton.Click() will work well.

    now problem is: how i can active a windowns? (like click in windows somewhere)

    Thanks

  4. #4
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    That isn't really the best way to access stuff that would normally be accessed using the mouse and the taskbar. I am sorry that I didn't notice this the first time I replied.

    Are you trying to run something via the Start button, etc.?

    You will want to avoid coding mouse interaction (or keystrokes) for the start menu stuff as it is very error prone. If you want to run something use either SYS_EXECUTE or another similar approach. Search this forum on SYS_EXECUTE.
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  5. #5
    Member
    Join Date
    Jan 2004
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    thanks again, I do need mouse click on start menu.
    I need check if application's shortcut is there after installation and uninstallation.

  6. #6
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    Hmm. I see. I would highly recommend finding out the underlying (registry?) entries that correspond to the entries as the Start Menu is difficult to code. If you do decide to go with manipulating the start menu, be warned that you will need different code for every OS.
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  7. #7
    Member
    Join Date
    Jan 2004
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    i will try, Thanks alot,

  8. #8
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    Originally posted by Chris Mead:
    finding out the underlying (registry?) entries that correspond to the entries as the Start Menu
    <font size="2" face="Verdana, Arial, Helvetica">Actually speaking, in Windows, these are files inside predetermined directories. For WinNT they are under \winnt\profiles\currentuser\startmenu.
    What you need to find then is the profile directory for the current user, for which you might need to access the registry. Not Sure.

    HTH,
    Harshil

  9. #9
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    Hmm. That might even be easier.

    On 2k and XP, it is:

    C:\Documents and Settings\{username}\Start Menu

    and/or

    C:\Documents and Settings\All Users\Start Menu
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  10. #10
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcase run successfully but failed in test plan or test suit

    One Update on this,

    There is an environment variable USERPROFILE, which contains the profile directory for the current user. So All you need to do is

    SYS_GETENV("USERPROFILE").

    However, if you want to find the profile directory for ALL Users, there is an API called GetAllUsersProfileDirectory in userenv.dll file that can be used.

    Thanks and Regards,
    Harshil

 

 
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 02:44 AM.

Copyright BetaSoft Inc.