swing-back

swing-back description

License

License

GroupId

GroupId

ru.sbtqa.tag
ArtifactId

ArtifactId

swing-back
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

swing-back
swing-back description
Project URL

Project URL

http://github.com/sbtqa/swing-back
Source Code Management

Source Code Management

https://github.com/sbtqa/swing-back/tree/master

Download swing-back

How to add to project

<!-- https://jarcasting.com/artifacts/ru.sbtqa.tag/swing-back/ -->
<dependency>
    <groupId>ru.sbtqa.tag</groupId>
    <artifactId>swing-back</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/ru.sbtqa.tag/swing-back/
implementation 'ru.sbtqa.tag:swing-back:1.1.1'
// https://jarcasting.com/artifacts/ru.sbtqa.tag/swing-back/
implementation ("ru.sbtqa.tag:swing-back:1.1.1")
'ru.sbtqa.tag:swing-back:jar:1.1.1'
<dependency org="ru.sbtqa.tag" name="swing-back" rev="1.1.1">
  <artifact name="swing-back" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.sbtqa.tag', module='swing-back', version='1.1.1')
)
libraryDependencies += "ru.sbtqa.tag" % "swing-back" % "1.1.1"
[ru.sbtqa.tag/swing-back "1.1.1"]

Dependencies

compile (18)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 2.0.2-beta
org.powermock : powermock-api-mockito jar 1.6.6
org.powermock : powermock-module-junit4 jar 1.6.6
org.netbeans : jemmy jar 2.2.7.5
org.gridkit.lab : nanocloud jar 0.8.11
ru.sbtqa.tag : qa-utils jar 1.2.3
ru.sbtqa.tag : cucumber-runner jar 1.0.2
commons-lang : commons-lang jar 2.6
commons-io : commons-io jar 2.4
com.google.guava : guava jar 21.0
org.slf4j : slf4j-api jar 1.7.12
ch.qos.logback : logback-classic jar 1.1.7
ch.qos.logback : logback-core jar 1.1.7
info.cukes : cucumber-core jar 1.2.5
info.cukes : cucumber-java jar 1.2.5
info.cukes : cucumber-junit jar 1.2.5
org.aspectj : aspectjrt jar 1.8.7

Project Modules

There are no modules declared in this project.

English description | Описание на русском

Swing-back

Build Status GitHub release Maven Central

Swing-back it's a framework for automated testing swing-application using a PageObject pattern.

Documentation

Test example

There is example of using the swing-back with comments here

Loading and starting test application

There are several ways to load required application for testing via the swing-back.

Swing-back supports a loading from file system. This requires add a few properties into application.properties file witch are stored in classpath/config.

  • swingback.app.startclass = the full name of the main class your application (mandatory)

  • swingback.forms.package = full package path to package with forms

  • swingback.jvm.prop.systemProperty1 = value1 (optional)

    swingback.jvm.prop.systemProperty2 = value2

    swingback.jvm.prop.systemPropertyN = valueN

In this instance systemProperty1, systemProperty2, … systemPropertyN will be set in the jvm context in which the application will be ran.

With these parameters the required jars your application must be stored in a folder with path classpath/app/jars. All required resources for the test application must be stored in a classpath/app/resources folder.

If you want to specify a custom location with jars you should to add more parameters:

  • swingback.app.jars.path.abs = the absolute path to jars folder
  • swingback.app.resources.path.abs = the absolute path to resources folder

In this case swing-back will search the jars and resources in the folder specified folders.

Searching element on form

For finding form element use choosers. There are some choosers in priority order for easy to use.

  • ComponentChooserByName (determine element by name swing component.)

  • ComponentChooserByToolTip (determine element by tool tip swing component.)

  • ComponentChooserByText (determine element by text swing component.)

  • ComponentChooserByIndex (determine element by index among other components with the same type).

  • ComponentChooserByCoordinates (determine element by coordinates swing components.)

You can write yourself chooser by analogy.

Contacts

If you found error or you have a question? Check, maybe someone asked before, not found? Just create a new issue!

License

Page-Factory is released under the Apache 2.0. Details here.

ru.sbtqa.tag

Test Automation Gears

Versions

Version
1.1.1
1.1.0
1.0.1-alpha
1.0.0