wexpect:pexpect的Windows变体

时间:2021-05-23 00:35:03
【文件属性】:
文件名称:wexpect:pexpect的Windows变体
文件大小:102KB
文件格式:ZIP
更新时间:2021-05-23 00:35:03
python windows test-automation redirect stdio 期待 Wexpect是一个Windows变种。 Pexpect是一个Python模块,用于生成子应用程序并自动对其进行控制。 您是否需要wexpect,如果... 您想通过python脚本控制任何Windows控制台应用程序。 您要为Windows控制台应用程序编写测试自动化脚本。 您想通过同步并行控制多个应用程序来自动化您的工作。 安装 pip install wexpect 用法 要与子进程进行交互,请使用spawn方法: import wexpect prompt = '[A-Z]\:.+>' child = wexpect . spawn ( 'cmd.exe' ) child . expect ( prompt ) # Wait for startup prompt child . sendline ( 'dir' ) # List the curren
【文件预览】:
wexpect-master
----.travis.yml(1KB)
----issues()
--------bla.py(277B)
--------bla2.py(526B)
--------i09_py_sim_no_error2.py(775B)
--------long_printer.py(4KB)
--------i11_greek_parent.py(1KB)
--------i09_confused_string.py(757B)
--------i11_unicode_printer.py(508B)
--------i11_greek_printer.py(1KB)
--------i09_py_sim_no_error.py(711B)
--------i18_setecho_error.py(899B)
--------i10_parent.py(2KB)
--------i09_cmd_error.py(756B)
--------i11_unicode_parent.py(1KB)
--------README.md(66B)
----.github()
--------ISSUE_TEMPLATE()
----wexpect()
--------console_reader.py(19KB)
--------wexpect_util.py(5KB)
--------__main__.py(3KB)
--------__init__.py(2KB)
--------legacy_wexpect.py(74KB)
--------host.py(49KB)
----tests()
--------foo.py(435B)
--------test_misc.py(10KB)
--------test_parametric_printer_coverage.py(2KB)
--------test_isalive.py(3KB)
--------PexpectTestCase.py(3KB)
--------test_timeout_pattern.py(4KB)
--------test_parametric_printer.py(3KB)
--------parametric_printer.py(935B)
--------utils.py(188B)
--------long_printer.py(4KB)
--------lines_printer.py(316B)
--------test_interact.py(1KB)
--------test_console_reader.py(770B)
--------test_command_list_split.py(1KB)
--------test_misc_console_coverage.py(13KB)
--------test_destructor.py(2KB)
--------echo_w_prompt.py(263B)
--------exit1.py(62B)
--------__init__.py(77B)
--------test_run.py(4KB)
--------test_delay.py(998B)
--------test_constructor.py(1KB)
--------test_readline.py(2KB)
--------test_echo.py(645B)
--------pyinstaller_test.py(10KB)
--------test_expect.py(15KB)
--------list100.py(48B)
--------test_long.py(1KB)
--------needs_kill.py(261B)
----tox.ini(2KB)
----LICENSE(1KB)
----appveyor.yml(3KB)
----setup.cfg(1KB)
----wexpect.spec(963B)
----codecov.yml(118B)
----requirements.txt(27B)
----doc()
--------make.bat(764B)
--------requirements.txt(4B)
--------Makefile(638B)
--------source()
----examples()
--------foo.py(435B)
--------termination.py(2KB)
--------python.py(781B)
--------cmd_wrapper.py(965B)
--------hello_wexpect.py(655B)
--------README.md(752B)
----setup.py(167B)
----.gitignore(752B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(3KB)

网友评论