robotframework-apachetomcat

A Robot Framework Apache Tomcat Manager Library


Keywords
testing, robotframework, apache, tomcat, autotesting, python, robot-framework, tomcat-manager, tomcat-server
License
Apache-2.0
Install
pip install robotframework-apachetomcat==2.0.0

Documentation

Robot Framework Apache Tomcat Manager

Robot Framework library to manage Apache Tomcat server

Build Status

Short Description

Robot Framework library for managing Apache Tomcat Server.

This library is Implemented on the basis of: - Manager App HOW-TO - tomcat-manager

Installation

Install the library from PyPI using pip:

pip install robotframework-apachetomcat

Settings for Apache Tomcat Server

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>

Documentation

See keyword documentation for ApacheTomcatManager library on GitHub.

Example

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

License

Apache License 2.0