8000 GitHub - lipan-sudo/PexpectLibrary: A pexpect wrapper for Robot Framework
[go: up one dir, main page]

Skip to content

lipan-sudo/PexpectLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads Downloads Downloads

An (almost) complete and convenience Pexpect wrapper for Robot Framework, with extra functionalities.

Keyword Documentation

See keyword documentation for available keywords and more information about the library in general.

Installation

The recommended installation method is using pip:

pip install PexpectLibrary

What is included in this library?

This library is almost complete. It provides the following classes to use:

  • pexpect.spawn
  • pexpect.fdpexpect.fdspawn
  • pexpect.popen_spawn.PopenSpawn
  • SerialSpawn, a class to interact on serial ports using pyserial, which is not in the pexpect library.

Note that not all keywords support all classes above.

Missing Functionalities

Below is a list of missing functionalities from pexpect.

  • pexpect.run()

    This function use pexpect.spawn which only work in *nix platforms. It's better to use the built-in keyword Process.Run Process.

  • pexpect.spawn.interact()

    This function is useless and difficult to implement due to Robot Framework's standard streams restriction.

  • class pexpect.replwrap.REPLWrapper

    The usage of this class is quite different from other classes. A new library with different name may better. This may be added in the future.

  • class pexpect.pxssh.pxssh

    This class wraps the ssh command using pexpect.spawn . If you need a ssh client, an ssh client library might be better.

Let me know if you need these. They might be added in the future.

About

A pexpect wrapper for Robot Framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0