expect-lite is an quick and easy command line automation tool. Written in expect, it is designed to directly map an interactive terminal session into an automation script. expect-lite scripts use special character(s) at the beginning of each line to indicate the action. Basic expect-lite scripts can be created by simply cutting and pasting text from a terminal window into a script, and adding '>' '<' characters. No knowledge of expect is required. Expect-lite is targeted at the verification testing environment, and will produce a Pass/Fail result at the end of the script. However, its use is not limited to this environment. It includes a powerful debugger with breakpoints, step/skip, and the ability to copy/paste expect-lite lines right into a running script.
| Tags | Software Development Quality Assurance automation cli verification scripting language testing automation tool |
|---|---|
| Licenses | BSD Revised |
| Operating Systems | OS Independent |
| Implementation | Tcl |
| Translations | English |
Recent releases


Release Notes: User defined help was added (run your script with a -h). Arguments are now passed to include files (e.g. ~login.inc user=root). A new *NOINTERACT directive was added, which is useful for quick regression scripts. A ##Include Result: FAIL message was also added for quick regression scripts.


Release Notes: This release has full IPv6 support and fixes a bug in Library mode.


Release Notes: Minor fixes. Fixes for small bugs in IDE single step and paste functions, and a problem with lines ending with backslash.


Release Notes: Grouping of lines in a script for if statements and while loops, called code blocks. While Loops, a native looping mechanism based on code blocks. Constant values can have spaces on the command line, e.g. var1="value of this" var2=that.


Release Notes: @n (n=number) was fixed to set the timeout value from IDE (a problem with ssh user@192.168...). The *FORK display was fixed when "session" is part of the session name. The installer was updated with a "configure only" option, which just configures user account settings. A conditional test for undefined varibles was added.
Recent comments
09 Dec 2008 01:55
Re: wait-for-prompt
>
> % It would be good if wait-for-prompt
> % could be controlled by a prompt regex
> % that could be specified earlier on.
> %
This feature (User Defined Prompt) is now part of the 3.1.5 release. Thanks for the feedback!
Craig...
25 Oct 2008 14:25
Re: wait-for-prompt
> It would be good if wait-for-prompt
> could be controlled by a prompt regex
> that could be specified earlier on.
>
> I'm working with some network switches
> which have weird prompts not terminated
> by a CR or NL
I agree. I have it working in the next development version I am working on. I would like to test this new feature, please send me examples.
Craig...
21 Oct 2008 08:35
wait-for-prompt
It would be good if wait-for-prompt could be controlled by a prompt regex that could be specified earlier on.
I'm working with some network switches which have weird prompts not terminated by a CR or NL