Projects / Expect-lite

Expect-lite

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
Licenses
Operating Systems
Implementation
Translations

Recent releases

  •  04 Jun 2014 15:00

    Release Notes: Fuzzy Expect: expect an approximate number. Plus several bugfixes: $var ending in semicolon not dereferencing, an IDE issue when typing a line that ended in a semicolon, and while loop comparison if the first value was blank.

    •  22 Apr 2014 10:56

      Release Notes: Feature:Fuzzy Expect was added for approximate numbers. Speed when using EL_REMOTE_HOST=none (default) was improved. *TIMESTAMP now has millisecond resolution.

      •  19 Nov 2013 07:29

        Release Notes: The EL_SHELL environment variable was added when using EL_CONNECTION_METHOD=none. *TIMESTAMP output now goes to the *LOG file. *LOGAPPEND now correctly appends to the default log file name. String, math, search/replace, and concat functions were added. *NOINCLUDE was added to prevent include files from being included.

        •  23 Jul 2013 13:37

          Release Notes: Bugfixes and improvements. Improves foreach loops using code blocks by normalizing the list variable before executing, Improved login prompt detection, eliminating delay when using EL_CONNECTION_METHOD=none, Improved copy/paste into INTERACT/IDE from Windows and PuTTY.

          •  28 May 2013 06:25

            Release Notes: This release enhanced code blocks with a foreach loop, added string math (search/replace, concat, remove), improved SSH login, and fixed an SSH options bug.

            Recent comments

            09 Dec 2008 01:55 cvmiller

            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 cvmiller

            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 samjam

            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

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.