> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/autify-university/foundation/execution-environments/jst-test-execution.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# 日本標準時 (JST) テスト実行

サイトやアプリケーションに、JSTの時刻に基づく特定の要件がある場合、あるいはアクセスするデバイスがJSTを使用している必要がある場合、JSTテストの実行を有効にすることで、問題なくAutify上でテストを行うことができます。

### JST テスト実行をワークスペースのデフォルトに設定する

以下の手順で、ワークスペースの JST テスト実行がデフォルトに設定することができます。

1. 左側のペインで `設定` をクリックします。
2. `ワークスペース` でワークスペースを選択します。
3. `タイムゾーン設定` の下の `「今すぐ実行」機能を日本標準時で動作するよう設定する。` オプションをチェックします。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-7c84f9780ce74c5ec09caa21849deddb2714b107%2Fimage\(174\).png?alt=media)

## JSTでシナリオを実行する

JST でのテスト実行は、通常のテストの実行と同じ方法で選択できます。

* シナリオ編集画面から実行する
* テストプランの環境として
* Autify API を使用する

### シナリオ編集画面

ワークスペースの設定でJST実行を有効にしている場合、シナリオ編集画面の右上にある `今すぐ実行 (JST)` ボタンをクリックすることで、JSTでシナリオを実行することができます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-859e4e08697b3a9df0621226ba84fa0cc80772e2%2Fimage\(175\).png?alt=media)

### テストプラン

テストプラン画面では、各ブラウザにタイムゾーン情報が表示されます。JST実行をサポートしているブラウザは名前に `(JST)` が、JST実行をサポートしていない環境は名前に `(UTC)` のみが表示されます。

もし、サポートしていない環境で利用したい場合は、サポートチームまでご要望として背景と併せてご連絡ください。

#### ワークスペースのタイムゾーンがJSTの場合

ワークスペースの設定でJST実行をデフォルトに設定している場合、画面上には主にJSTを使用する実行環境が表示されます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-5450f3431e2d605639083fbc9699f075023e5156%2Fimage\(176\).png?alt=media)

{% hint style="info" %}
**UTCの実行は可能か？**

JST をデフォルトの実行タイムゾーンに設定している場合でも、名前の後に (UTC) が付いているブラウザやデバイスを選択することで、UTC 実行を選択することができます。同じテスト計画内で、JST と UTC のテスト実行を組み合わせることができます。

<img src="https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-e3b87679b32322d404221439022fd9d6a3d7bdf4%2Fimage(178).png?alt=media" alt="" data-size="original">
{% endhint %}

#### ワークスペースのタイムゾーンがUTCの場合

ワークスペースの設定で JST 実行をデフォルトに設定していない場合、画面上にはすべての実行環境が一目で表示されます。JST でテストを実行するには、名前に `(JST)` が含まれる環境を選択するだけです。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-406e09a2e1542043c8a7af3d910073ffcc73f226%2Fimage\(190\).png?alt=media)

### API

JSTでシナリオを実行したい場合、httpsやAutify CLIでAPIリクエストを行う際に、`timezone` 機能を定義することができます。

| **Capability** | **Possible Values (string)** |
| -------------- | ---------------------------- |
| `timezone`     | “JST”                        |
|                | “Asia/Tokyo”                 |

{% hint style="warning" %}
**APIはデフォルトでUTCを使用します**

ワークスペースの設定でJSTの実行を有効にしていても、リクエストで `timezone` 機能を指定しなければ、シナリオはデフォルトでUTCで実行されます。
{% endhint %}

#### Autify CLI を使用した例

以下は、Autify CLI 経由で API リクエストを行い、`timezone` 機能を使って JST でテストを実行する例です。

\<WORKSPACE\_ID> と \<SCENARIO\_ID> は、テストに適した値に置き換えてください。

```bash
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>
      }
  ]
}'
```

AutifyのAPIを使用する詳細については、[APIによる柔軟なテスト実行](https://help.autify.com/nocode-web/autify-university/integrations/flexible-test-execution-via-api.md)をお読みください。

## テスト結果で実行されたタイムゾーンを確認する

テスト実行されたタイムゾーンは、以下の画面で確認できます。

### テスト結果ページ

`https://app.autify.com/projects/<###>/results`

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-e764cb78b3510a0370d51c12b29e3f291b580b12%2Fimage\(179\).png?alt=media)

### テスト結果機能ページ

`https://app.autify.com/projects/<###>/results/<###>/capabilities/<###>`

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-230af5a6ec5c03a17b6f03eba8a268ae5bb036cf%2Fimage\(180\).png?alt=media)

### テスト結果ページ (詳細) 上部

`https://app.autify.com/projects/<###>/results/<###>/capabilities/<###>/scenarios/<###>`

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-95d33f78453372c9df058572e776bbb5e8edf64f%2Fimage\(181\).png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/autify-university/foundation/execution-environments/jst-test-execution.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
