SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Aug 2002
    Location
    NY,NY,USA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to reboot machine and restart tests

    How do I reboot the machine and restart the tests? Is it possible?

    I want my application to be installed and after installation is finished depending upon weather or not installation succeds I want to reboot the machine otherwise want to send some message and not reboot.



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

  2. #2
    Member
    Join Date
    Dec 2000
    Location
    India
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    Are you expecting these actions to be executed using Silk Test tool?



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

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    IMHO, this kind of thing is fraught with peril ...

    Out of the box, what you're describing is nearly impossible (on a single machine). Silk just ain't built to "pick up where it left off" (darn -- now *that* would be a useful feature).

    You have 2 options that I'm aware of --

    1) Build yourself a mondo framework that allows you to "somehow" log where you are in a script and magically pick up where you left off by reading the log and skipping all the testcases that have already run (or not ... depends on what you want to do).

    2) Run the scripts and the agent on 2 machines. This is the more likely scenario -- but has its problems as well. Basically you have the script running on machine A, connected to machine B to actually run the installer. You can reboot the target machine, then things get tricky. Before the machine reboots, the test machine has to disconnect from the agent. The target machine needs to login as someone automatically (discussed in this forum in another thread), then start the agent. The test machine has to synch up with the target and reconnect to the agent, then pick up the test script execution.

    This approach has been discussed in this forum previously -- search for autologon and reboot to get a start.

    As I've said, though, you typically hit a ton of synchronization problems. Is it really worth it? I dunno. Depends on your world.

    Good Luck!

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

  4. #4
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    Here is a simple low tech solution I could think of for your specific situation:
    If I understand correctly You want silk to install the build then reboot the machine and then start the tests right?

    what you can do is have tow batch files one will start the installation script and then close silk and reboot the machine depending upon weather or not installation passed plus will copy the second batch file in the startup folder for the user account and another batch file will start the silk and execute the tests and aftersilk is done it will delete the file from startup folder so that tests won't get started if the machine is rebooted for some other reason. I am assuming that you can seperate the two .t files for installation and for tests. /wait command in the batch file will wait till the commmand finishes hence we will use this to run silk. following are the examples of batch files.
    let me know If you need further assistance. This method actually works best for me

    For the machine to restart on its own you will have to change following registry entries:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon


    AutoAdminLogon=1
    DefaultDomainName=Your_Domain_Name
    DefaultUserName=Your_User_name
    DefaultPassword=your_password

    if these keys are not there then you will need to create them.

    I have written shutdown.exe and sleep.exe for thier obvious purposes if you need I can formward them to you

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


    [This message has been edited by AUTOMATION_GURU (edited 04-03-2003).]

  5. #5
    Junior Member
    Join Date
    Aug 2002
    Location
    NY,NY,USA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    thanks you very much Automationguru this is exactly what I was looking for actually I would like to get back the number of errors if installation fails but I am not sure of how to get the message back to the batch file with -p options if you have any workaround for that can you please post it as you know ther eis a seperate thread running in the formum for that

    thank you very much for your help I really appreciate it.

    can you please post the code for shutdown.exe and sleep.exe
    ------------------


    [This message has been edited by whannatta (edited 08-13-2002).]

    [This message has been edited by whannatta (edited 08-13-2002).]

  6. #6
    Junior Member
    Join Date
    Sep 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    Automationguru could you please mail me the Shutdown.exe and Sleep.exe files. My Email address is mijigy@hotmail.com or could you please post it here.

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

  7. #7
    Junior Member
    Join Date
    Nov 2002
    Location
    Minsk, Belarus
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    I've attatched scripts that are enabling login information and disabling it.
    Before you reboot:
    1. Start DisableUserLogin() function
    2. AddToAutorun() - adds to HKLM\Software\Microsoft\Windows\Curren Version\Run the sPath with params (e.g. c:\silk\partner.exe -r yourscript.t -resume)
    3(Optional). setDefaultOS() - modifies boot.ini to set default OS for loading
    .......
    4. After script starts after reboot you must start: RemoveFromAutorun() EnableUserLogin() restoreBootIni() (if modified).
    If you have questions about this mail me to aliaksandr_kuznetsou@epam.com



    ------------------
    Kosher regards and so on.
    Schizoid
    Kosher regards and so on.
    Schizoid

  8. #8
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    here are sleep and shut dow exe's

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

  9. #9
    Junior Member
    Join Date
    Jun 2003
    Location
    Mountain View, CA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    I just try to reboot remote Machine with timer function, if application hangs.
    Could you send me your sleep and shutdown directly or post on Forum.May be some Notes for execution and arguments? I cannot see attachment with posts posted 04-03-2003 05:50 PM

    Thanks in advance
    AlexK
    alex.keylin@embarcadero.com

    [ 02-05-2004, 02:33 PM: Message edited by: AlexKeylin ]

  10. #10
    Member
    Join Date
    Dec 2003
    Location
    India
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to reboot machine and restart tests

    Hi automation Guru,
    I am doing the installation testing. i need what u talk about i.e. shutdown.exe and sleep.exe
    Can u pl send me those two exes?
    My email id: reddykj@india.com

    Thanks in advance
    Reddy K J
    <img border=0 title= alt=[Smile] src=smile.gif /] =================================
    Do not drive faster than your Guardian Angel can fly

 

 
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
  •  

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 02:23 PM.

Copyright BetaSoft Inc.