Robot Framework library to manage Apache Tomcat server
Robot Framework library for managing Apache Tomcat Server.
This library is Implemented on the basis of: - Manager App HOW-TO - tomcat-manager
Install the library from PyPI using pip:
pip install robotframework-apachetomcat
To use this library you need to add a user with the following roles to
tomcat-users.xml
file on Apache Tomcat server: - manager-gui -
manager-script - manager-jmx - manager-status.
<tomcat-users> <user username="tomcat" password="tomcat" roles="manager-jmx,manager-status,manager-script,admin,manager-gui,admin-gui,manager-script,admin"/> </tomcat-users>
See keyword documentation for ApacheTomcatManager library on GitHub.
An example of using ApacheTomcatManager library in Robot Framework test case:
*** Settings ***
Library ApacheTomcatManager
Library Collections
*** Test Cases ***
Simple Test
Connect To Tomcat my_host_name 8080 tomcat tomcat alias=tmc
${info}= Serverinfo
Log Dictionary ${info}
Close All Tomcat Connections
Apache License 2.0