SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Command Line Interface Testing

    Hi,
    Our server is running on Unix machine. I can access the directory structure of the Server machine, through the browser. I have to delete some of the files in my unix server and I have to verify it thro GUI (web page). Also I have to verify the properties of file with the web content. Is it possible in SilkTest...?
    I tried to record the telnet actions. But SilkTest couldn't. Have anybody faced this situation/scenario before....? How can I achieve my aim...?

    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  2. #2
    Senior Member
    Join Date
    Oct 2002
    Location
    Calgary, Alberta, Canada
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Command Line Interface Testing

    I downloaded some code from the Downloads section of this site that enables you to work with a Command prompt easily. Then I wrote a test case to use telnet via the command line.

    [ ] CMD.TypeKeys("telnet 129.2.1.8")
    [ ] Print("Entered: ""telnet 129.2.1.8 "". ")
    [ ] CMD.TypeKeys ("<Enter>")
    [ ] Print("Hit ""<Enter>"".")
    [ ] CMD.TypeKeys("{sCommandLineAction}" + "<ENTER>")

    If you use SYS_EXECUTE, you can capture the output message from the command line like this:
    [ ] SYS_Execute("dir, outputmessage)
    [ ] Print ("{outputmessage}")

    I couldn't find the DOS handling code in the downloads section today though. If you're interested, I can try to find it for you and email what I have to you.

    ------------------
    Beware of bugs in the above code; I have only proved it correct, not tried it."
    --Donald Knuth


    [This message has been edited by signal_11 (edited 04-11-2003).]
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    --Donald Knuth

  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: Command Line Interface Testing

    See attached...It's old, but it should still get you where you want to go.

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

  4. #4
    Senior Member
    Join Date
    Oct 2002
    Location
    Calgary, Alberta, Canada
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Command Line Interface Testing

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by jamesso:
    See attached...It's old, but it should still get you where you want to go.

    <HR></BLOCKQUOTE>

    That's the one. Thanks for attaching it. I used that to write the test case using telnet as I described earlier. James is right, it will help you get the job done.

    ------------------
    Beware of bugs in the above code; I have only proved it correct, not tried it."
    --Donald Knuth


    [This message has been edited by signal_11 (edited 04-11-2003).]
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    --Donald Knuth

  5. #5
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Command Line Interface Testing

    Hi,
    Thanks a lot for all the replies. I'm working on that.



    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  6. #6
    Member
    Join Date
    Oct 2000
    Location
    Bothell, WA, USA
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Command Line Interface Testing

    I have been doing a lot of CLI testing lately and the approach that I am using is a bit different (but not necessarily better).

    I have windows declarations for Telnet and use TypeKeys() to enter commands. When I want to view the output for a specific command, I start logging using Telnet.Terminal.StartLogging.Pick(). I have a network path that I use for the log file name so I can access it whether I am running on local or remote agents. Then I use the function ListRead (lsTelnetLines, TELNET_LOG_PATH) to grab the output.

    Good luck.

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

  7. #7
    Member
    Join Date
    May 2003
    Location
    DC
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Command Line Interface Testing

    Originally posted by jamesso:
    See attached...It's old, but it should still get you where you want to go.
    <font size="2" face="Verdana, Arial, Helvetica">Jamesso,
    Where can I get the attached code? I couldn't locate it. Can you please help me find it.

    Thanks
    Ray

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

    Re: Command Line Interface Testing

    Seems that the attachments feature was deleted in the new version of this site and the attachment went away with it. I'll try to post it somewhere else. In the mean time you can drop me an e-mail and I'll send it that way.

  9. #9
    Junior Member
    Join Date
    Feb 2005
    Location
    Dublin
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Command Line Interface Testing

    Can you please pass me telnet code? Thanks!

    I'll appreciate your help...

 

 

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 07:19 AM.

Copyright BetaSoft Inc.