Repository navigation
Added
#6787 [vividus-plugin-aws-cloudwatch] Introduce AWS CloudWatch plugin (Incubating)
"Incubating" means that the functionality is currently a work-in-progress and may change in the future releases.
Start listening before an action, then poll a log group and stream for matching events. The saved events contain eventId, timestamp, and message:
When I start listening for CloudWatch log events
!-- Perform the action that produces a log event
When I wait `PT2M` with `PT10S` polling until at least one event matching `` pattern appears in CloudWatch log group `/aws/logs/my-application` and log stream `application.log` and save them to scenario variable `applicationEvents`
Then `${applicationEvents[0].message}` is not equal to ``#6965, #6984 [vividus-agent-newrelic] Introduce New Relic reporting (Incubating)
"Incubating" means that the functionality is currently a work-in-progress and may change in the future releases.
Optionally publish VividusRun and VividusStory events to the New Relic Event API. Story events include status and batchIndex; run and story events share a run ID and can include custom attributes. Reporting is disabled by default:
newrelic.enabled=true
newrelic.api-key=<YOUR_API_KEY>
newrelic.endpoint=https://insights-collector.newrelic.com/v1/accounts/<ACCOUNT_ID>/events
newrelic.event.attribute.environment=staging#6615 [vividus] Add expressions to load files
Use loadFile to read UTF-8 text and loadBinaryFile to read binary data from a file system path:
Given I initialize scenario variable `text` with value `#{loadFile(/home/user/data/body.txt)}`
Given I initialize scenario variable `image` with value `#{loadBinaryFile(/home/user/data/image.png)}`Both expressions fail if the file does not exist or the path refers to a directory.
#6744, #6892 [vividus] Add object pools for sharing test data
Initialize a named pool of table rows, borrow an item, replenish the pool, and check its remaining size:
Given I initialize object pool `credentials` with data:
|login |password|
|user-1|pass-1 |
When I take object from pool `credentials` and save it to scenario variable `credential`
Given I add objects to object pool `credentials`:
|login |password|
|user-2|pass-2 |
When I save size of object pool `credentials` to scenario variable `credentialsCount`Pools are shared across threads and stories. Borrowed objects can be returned after each story by setting object-pool.return-objects-after-story-completion=true; the default is false.
#6806 [vividus] Add unescapeJSON expression
Decode JSON escape sequences. Each application performs one unescape pass, so nested escaping can be decoded by nesting the expression:
Given I initialize scenario variable `text` with value `#{unescapeJSON(\"abc\"+\"xyz\")}`The resulting value is "abc"+"xyz".
#6893 [vividus] Assert execution duration of sub-steps
Execute a table of steps and compare their total duration with an ISO 8601 duration:
When I execute steps and assert duration is less than `PT5S`:
|step |
|Then `${var}` is = `0` |#6946 [vividus] Add new step executing sub-steps for each table row
Run steps once per row of an inline table or a table stored in a variable. The current row and its zero-based index are available as ${row} and ${rowIndex}:
When I execute steps:
|step |
|Given I initialize scenario variable `greet-${rowIndex}` with value `Hello, ${row.name}` |
for each row of table:
|name |
|Alice|
|Bob |#7036 [vividus] Compare binary variables by content
Equality and inequality checks between binary variables now compare their bytes, rather than whether both variables refer to the same objects. This lets tests verify downloaded or uploaded file content against an expected binary file:
When I download file `/sdcard/file.png` from device and save its content to scenario variable `actual`
Given I initialize scenario variable `expected` with value `#{loadBinaryFile(/data/file.png)}`
Then `${actual}` is equal to `${expected}`Binary comparisons also report whether the values are equal and the length of each value. Comparisons involving non-binary values retain their existing behavior.
#6862 (Closes #6861) [vividus-plugin-web-app] Add network emulation steps
Chrome tests can override the network state reported to the page and separately control real requests with latency, throughput, offline mode, and URL-specific rules:
When I override network state with configuration:`{
"offline": false,
"downloadThroughput": 50000,
"uploadThroughput": 50000,
"latency": 400
}`
When I emulate network conditions with configuration:`{
"matchedNetworkConditions": [{
"urlPattern": "",
"downloadThroughput": 50000,
"uploadThroughput": 50000,
"latency": 400
}]
}`
When I reset network conditions emulationOverriding the reported state alone does not throttle or block requests; use both steps when both effects are needed.
#7036 [vividus-plugin-mobile-app] Add step verifying a file does not exist on a device
Check that a file cannot be downloaded from the device, for example after deleting it:
When I delete file `/sdcard/Pictures/avatar.png` from device
Then file `/sdcard/Pictures/avatar.png` does not exist on device#6649 [vividus-plugin-web-app][vividus-plugin-mobile-app] Add step waiting for all matching elements to disappear
The new step waits until no elements matching the locator remain, and succeeds immediately if none exist:
When I wait until all elements located by `id(welcome-image)` disappear#6650 [vividus-plugin-db] Attach SQL query results to reports
Non-empty SQL query results saved to variables are now published as formatted HTML tables in reports, including column names and row counts.
#6829 [vividus-plugin-ssh] Add port forwarding logging
Starting SSH port forwarding now logs the local and remote addresses and the SSH server connection, making connection failures easier to diagnose.
#6894 [vividus-plugin-aws-secrets-manager] Support defaults for missing secret values
Specify a default after the secret key. The default is used when the key is missing; a missing secret still produces an error:
db.connection.test.host=AWS_SECRETS_MANAGER(my_profile, my_secret/dev/host:localhost)#6967 [vividus-plugin-aws-secrets-manager] Improve secret-resolution errors
Errors now identify the secret, profile, and property involved and preserve the underlying cause, making missing secrets and other lookup failures easier to diagnose.
#6651 (Closes #3430) [vividus-to-xray-exporter] Add Xray Cloud support
Export results to Xray Cloud by enabling cloud mode and providing API credentials:
xray-exporter.cloud.enabled=true
xray-exporter.cloud.client-id=<YOUR_CLIENT_ID>
xray-exporter.cloud.client-secret=<YOUR_CLIENT_SECRET>xray-exporter.cloud.api-base-url can be configured for regional deployments. The existing Xray Server mode remains the default.
Deprecated
#6649 [vividus-plugin-web-app][vividus-plugin-mobile-app] Deprecate single-element disappearance step
| Deprecated step | Replacement pattern |
|---|---|
When I wait until element located by `$locator` disappears |
When I wait until all elements located by `$locator` disappear |
Fixed
Bump version of the removed dependency stored in Jitpack
aShot dependency was bumped from 4351741a39 to 12cfadadac (4351741a39 build is not available on JitPack anymore) fixing the build error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':distTar' (registered by plugin class 'org.gradle.api.distribution.plugins.DistributionBasePlugin').
> Could not resolve all files for configuration ':runtimeClasspath'.
> Could not find com.github.pazone:ashot:4351741a39.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/github/pazone/ashot/4351741a39/ashot-4351741a39.pom
- file:/C:/Users/user/.m2/repository/com/github/pazone/ashot/4351741a39/ashot-4351741a39.pom
- https://jitpack.io/com/github/pazone/ashot/4351741a39/ashot-4351741a39.pom
Required by:
root project '***-tests' > org.vividus:vividus-plugin-web-app:0.6.18 > org.vividus:vividus-extension-selenium:0.6.18
#7041 [report] Fix missing scenarios in reports
Track nested lifecycle steps correctly so that logging between sub-steps does not leave an unclosed step and prevent a scenario from being written to the report.
#6843 [vividus-plugin-web-app] Fix switching between multiple browser tabs
When I switch to new tab now selects the next tab in order and wraps from the last tab to the first. It reports a failure if only one tab is open.
#6983 (Fixes #6982) [vividus-plugin-web-app] Support Cyrillic in case-insensitive locators
Case-insensitive text matching now supports Russian, Ukrainian, and Belarusian Cyrillic letters as well as ASCII Latin. Other alphabets remain case-sensitive.
#6788 [vividus-plugin-mobile-app] Fix Proxy steps for mobile apps
Fixed the exception when Proxy steps used headers:
org.jbehave.core.steps.ParameterConverters$ParameterConversionFailed: No parameter converter for class io.netty.handler.codec.http.DefaultHttpHeaders
at org.jbehave.core.steps.ParameterConverters.convert(ParameterConverters.java:419)
...
#7067 [vividus-plugin-web-app][vividus-plugin-mobile-app] Close tunnels when session creation fails
Stop the tunnel after an unsuccessful remote browser startup while preserving the original WebDriver error.
[vividus-plugin-web-app][vividus-plugin-mobile-app] Fix resources used by Shadow DOM attachments
Corrected the Bootstrap resource version used when rendering Shadow DOM attachments.
#6731 [vividus-plugin-browserstack] Fix BrowserStack Local with SSL-inspecting proxies
Disable SSL certificate validation for BrowserStack Local when a proxy is enabled, avoiding tunnel startup failures caused by SSL inspection.