ldtp library for Robot FrameworkIntroductionLDTPLibrary is a linux desktop GUI application testing library for Robot Frameworkthat leverages the ldtp libraries from theLDTP project. InstallationUsing pip The recommended installation method is usingpip: pip install robotframework-ldtplibrary The main benefit of using pip is that it automatically installs alldependencies needed by the library. Other nice features are easy upgradingand support for un-installation: pip install --upgrade robotframework-ldtplibrarypip uninstall robotframework-ldtplibrary Notice that using --upgrade above updates both the library and allits dependencies to the latest version. If you want, you can also installa specific version or upgrade only the ldtp tool used by the library: pip install robotframework-ldtplibrary==10.1.0pip install --upgrade ldtppip install ldtp==3.6.0 Proxy configurationIf you are behind a proxy, you can use --proxy command line optionor set http_proxy and/or https_proxy environment variables toconfigure pip to use it. If you are behind an authenticating NTLM proxy,you may want to consider installing CNTMLto handle communicating with it. For more information about --proxy option and using pip with proxiesin general see: Manual installationIf you do not have network connection or cannot make proxy to work, you needto resort to manual installation. This requires installing both the libraryand its dependencies yourself. Make sure you have Robot Framework installed. Download source distributions (*.tar.gz ) for the library and itsdependencies: Extract each source distribution to a temporary location. Go each created directory from the command line and install each projectusing: python setup.py install
If you are on Windows, and there are Windows installers available forcertain projects, you can use them instead of source distributions.Just download 32bit or 64bit installer depending on your system,double-click it, and follow the instructions. Directory Layout- demo/
- A simple demonstration
- doc/
- Keyword documentation
- src/
- Python source code
- test/
- Unit test and acceptance test for LDTPLibrary
UsageTo write tests with Robot Framework and LDTPLibrary,LDTPLibrary must be imported into your Robot test suite.See Robot Framework User Guide for more information. |
请发表评论