SilkTest interacting with a xterm text based menu
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?
Re: SilkTest interacting with a xterm text based menu
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:
Hope that these solutions might help you at the first step.