SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SilkTest interacting with a xterm text based menu

    Hi,


    I'm new to SilkTest, haven't written a script yet.

    We have an script writer onsite, however the test case aren't fully automated.

    A great deal of manual test preparation has to take place before the SilkTest.t files can actually be executed.

    I queried Google, and while I got a picture of a menu-pic, didn't find anything about how to get SilkTest to interact with this type of item "menu pic"

    The Software Under Test, is started by typing in a command on the xterm command line, and then a text based menu system appears, and is navigable via the Esc, cursor keys, and the spacebar.

    Is it possible to get SilkTest to work with that.

    Ideally put together a library of functions, e.g. fEnableFunc1(), EnableDRP(), EnableRecording(), EnableMute(), etc

    which would basically enter the key presses required to start the menu system, followed by down-arrow, down-arrow, down-arrow (to get to the relevant item), depress the enter key, and so on.


    Sorry for rambling,
    but what's the best way to approach this?



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

    Re: SilkTest interacting with a xterm text based menu

    Hi,
    You can build a solution based on your levels in Silktest.

    For Beginner/intermediate level
    You can use typekeys and other tricks for each action. Better write functions and call as per needs. For validation, you can do the same of adv level or use OCR to read the console text.

    For Advanced level
    You can extend the class of your console (Mostly it is DialogBox). List out your required actions and write couple of methods for each. For validating, you can select visible area of console and do copy, paste short cuts. From the contents, get the last line and verify things. You can write couple of methods like below:

    InvokeXTerm()
    Login()
    EnterCommand()
    CopyAllContents()
    GetLastLineOutput()
    TypeKeys()
    CloseXTerm()

    Hope that these solutions might help you at the first step.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

 

 

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 12.50%
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 10:10 AM.

Copyright BetaSoft Inc.