Step Samples


License

License

Categories

Categories

Java Languages KeY Data Data Formats Formal Verification
GroupId

GroupId

ch.exense.step.examples
ArtifactId

ArtifactId

demo-java-http-keyword
Last Version

Last Version

3.13.0
Release Date

Release Date

Type

Type

jar
Description

Description

Step Samples
Step Samples
Project URL

Project URL

http://exense.ch/
Source Code Management

Source Code Management

https://github.com/exense/step-samples/

Download demo-java-http-keyword

How to add to project

<!-- https://jarcasting.com/artifacts/ch.exense.step.examples/demo-java-http-keyword/ -->
<dependency>
    <groupId>ch.exense.step.examples</groupId>
    <artifactId>demo-java-http-keyword</artifactId>
    <version>3.13.0</version>
</dependency>
// https://jarcasting.com/artifacts/ch.exense.step.examples/demo-java-http-keyword/
implementation 'ch.exense.step.examples:demo-java-http-keyword:3.13.0'
// https://jarcasting.com/artifacts/ch.exense.step.examples/demo-java-http-keyword/
implementation ("ch.exense.step.examples:demo-java-http-keyword:3.13.0")
'ch.exense.step.examples:demo-java-http-keyword:jar:3.13.0'
<dependency org="ch.exense.step.examples" name="demo-java-http-keyword" rev="3.13.0">
  <artifact name="demo-java-http-keyword" type="jar" />
</dependency>
@Grapes(
@Grab(group='ch.exense.step.examples', module='demo-java-http-keyword', version='3.13.0')
)
libraryDependencies += "ch.exense.step.examples" % "demo-java-http-keyword" % "3.13.0"
[ch.exense.step.examples/demo-java-http-keyword "3.13.0"]

Dependencies

compile (4)

Group / Artifact Type Version
ch.exense.step : step-api-keyword jar 1.1.3
ch.qos.logback : logback-classic jar 1.0.13
org.apache.httpcomponents : httpclient jar 4.5.8
junit : junit jar 4.8.1

Project Modules

There are no modules declared in this project.

step-samples

Sample projects for STEP

Prerequisites

  • Maven is installed
  • JDK 8 is installed
  • Using a Java IDE is recommended (for instance Eclipse)
  • Chrome is installed

Overview

This repo contains two maven projects showcasing the basic capability of step's Keyword API.

The project demo-java-keyword contains a keyword class and package as well as a JUnit test class allowing you to understand how the java dependency and API work.

The project demo-selenium-keyword has similar content as the first project but this time, extended dependencies will allow the use of the chrome WebDriver and the corresponding JUnit test class will trigger a basic Selenium workflow.

Goal

The purpose of this repo, once you've familiarized yourself with the project's contents, is to help you package and deploy the keywords onto a STEP platform. For a local installation, just download the latest release and follow our installation guidelines.

ALternatively, if you're not interested in experimenting with a local instance and are not planing on running step on premise, you could skip this step and just contact us through our company contact form to request a cloud cluster directly. In that scenario, step is offered as a SaaS application and you don't have to worry about any operational aspects such as infrastructure, installation, upgrades or housekeeping.

Project setup

Ideally using an IDE like Eclipse, and after cloning this repo and checking the prerequisites from above, you can start by just running the two JUnit classes. JavaKeywordExampleTest will make use of keyword methods defined in JavaKeywordExample and SeleniumKeywordExampleTest will make use of keyword methods defined in SeleniumKeywordExampleTest.

Packaging

Just run maven's package goal against the pom files of both projects. In addition to also executing the JUnit tests, two jar files containing the keyword classes will be built as a result: demo-java-keyword-0.0.1-SNAPSHOT.jar demo-selenium-keyword-0.0.1-SNAPSHOT-shaded.jar which you'll find in their corresponding project output folders.

Deployment

Deployment onto either a local step instance or a cloud instance can then ensue. Please follow the recommendations from our official documentation.

Help

For support, please check out our official support page or contact form.

ch.exense.step.examples

exense

Versions

Version
3.13.0
1.1.3