This repository is created specifically for Red Hat Open Source Contest (RHOSC). It contains automated UI tests for HawtIO project.
The current test suite has limited functionality and it is cropped version of real life project.
Designed specifically for Red Hat Open Source Contest purpose.
- Java
- Maven
- HTML, CSS, XPath
- Cucumber framework
- Selenium and Selenide frameworks
- Review what already is implemented and if it is needed - refactor\fix\remove
- Come up with new test scenarios\cases\strategies
- Develop automated UI tests based on test scenarios\cases
- Make issue reports if some bugs were found while developing new tests
-
Make sure you have Java, Maven and Git installed and configured in your machine
-
Clone this repository
git clone https://github.com/jsolovjo/rhosc-hawtio-ui-tests.git
-
Create a new branch from master
-
Develop new UI tests - enjoy and have a fun!
-
Command to run all tests
mvn clean install -Dhawtio -Dhawtio.[spring-boot|karaf] -Dbrowser=chrome
-
Command to specific run tests (for instance, tests designed for Help page)
mvn clean install -Dhawtio -Dhawtio.[spring-boot|karaf] -Dbrowser=chrome -Dtest=RunHelpTests
-
Clone HawtIO project
git clone https://github.com/hawtio/hawtio.git
-
Go to
.../hawtio/
and build the project with commandmvn clean install
-
Go to
.../hawtio/examples/springboot-authentication/
and run the command:mvn spring-boot:run
-
Open
http://localhost:10001/actuator/hawtio/
in your web browser -
Login credentials:
Username:hawtio
Password:hawtio
Next steps are for having simple Camel quickstart:
-
Go to
.../hawtio/examples/springboot-authentication/
-
Open and edit
pom.xml
and add the following dependency:<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-spring-boot-starter</artifactId> <version>2.17.0</version> <!-- use the same version as your Camel core version --> </dependency>
-
Go to
.../hawtio/examples/springboot-authentication/src/main/java/io/hawt/example/spring/boot
and add a new Java class with the following content:package com.example; import org.apache.camel.builder.RouteBuilder; import org.springframework.stereotype.Component; @Component public class MyRoute extends RouteBuilder { @Override public void configure() throws Exception { from("timer:foo").to("log:bar"); } }
-
Download Karaf Runtime Binary Distribution
-
Follow the steps from the docs how to get started with Karaf
-
Deploy HawtIO on Karaf following the steps from here
-
Run the quickstarts following the steps from here
-
Open
http://localhost:8181/hawtio/
in your web browser -
Login credentials:
Username:karaf
Password:karaf
https://github.com/hawtio/hawtio
https://camel.apache.org/components/latest/spring-boot.html#SpringBoot-CamelSpringBootStarter
https://blog.stackleader.com/camel/2016/05/02/deploy-apache-camel-quickstart-karaf.html