- Print
- DarkLight
Japan Standard Time (JST) Test Execution
If your site or application has specific requirements based on the time in JST, or requires that devices that access it must be using JST, you can use JST test execution to test on Autify without issue.
Setting JST test execution as the default for your workspace
You can set JST as the default timezone for your workspace with the following steps.
Click
Settings
in the left-hand paneSelect your workspace under
WORKSPACES
Check the
Set the Run now function to use Browsers with JST
option underTimezone
Using JST during test execution
You can choose to run your tests in JST in the same way you normally run your tests:
Directly from the scenario editor
As an environment in a test plan
Using the Autify API
Using JST from the scenario editor
If you have set JST execution as the default in your workspace settings, you can run scenarios in JST by clicking the Run now (JST)
button in the top right of the scenario editor.
Using JST in your test plan
The test plan UI displays timezone information in the names of each environment. Environments that support JST execution will have (JST)
in their names, while environments that do not support JST execution will have (UTC)
in their names.
If you want to use JST execution for an environment that is unsupported, please contact the support team with details about your needs.
If your default timezone is JST
If you have set JST execution as the default in your workspace settings, the UI will primarily display execution environments that use JST.
What about UTC execution?
Even if you’ve set JST as the default execution timezone, you can still choose UTC execution by selecting browsers and devices with (UTC) after their names. You can combine JST and UTC test execution in the same test plan.
If your default timezone is UTC
If you have not set JST execution as the default in your workspace settings, the UI will display all execution environments at a glance. To run a test in JST, simply choose an environment with (JST)
in its name.
Using JST with the API
If you want to execute a scenario in JST, you can define the timezone
capability when making an API request over https or the Autify CLI.
Capability | Possible Values (string) |
---|---|
| “JST” |
“Asia/Tokyo” |
The API uses UTC by default
Even if you have enabled JST execution in your workspace settings, scenarios will be executed in UTC by default if you do not specify the timezone capability in your request.
Example using Autify CLI
The following is an example of an API request via Autify CLI that uses the timezone
capability to run a test in JST.
Replace <WORKSPACE_ID>
and <SCENARIO_ID>
with the proper values for your test.
autify web api execute-scenarios --project-id '<WORKSPACE_ID>' --execute-scenarios-request '{
"name": "Testing JST with the timezone capability",
"capabilities": [
{
"os": "Linux",
"browser": "Chrome",
"timezone": "JST"
}
],
"scenarios": [
{
"id": <SCENARIO_ID>
}
]
}'
For more information on using Autify’s API, please read Flexible test execution via API.
Confirming which timezone your test was executed in
You can confirm the timezone of your test execution in the following locations in the UI.
Test results page
https://app.autify.com/projects/<###>/results
Test result capabilities page
https://app.autify.com/projects/<###>/results/<###>/capabilities/<###>
At the top of the scenario detailed test results page
https://app.autify.com/projects/<###>/results/<###>/capabilities/<###>/scenarios/<###>