バージョン選択

フォーラム

メニュー

オンライン状況

31 人のユーザが現在オンラインです。 (17 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 31
もっと...

サイト内検索

その他 > その他 > E2E テスト実行環境

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
seasoft
投稿日時: 2024/1/28 16:48
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7367
Re: E2E テスト実行環境
以下のような感じで、「RequestError: Error: socket hang up」というエラーが頻発します。
$ docker-compose -f docker-compose.dev.yml -f docker-compose.owaspzap.daemon.yml -f docker-compose.pgsql.yml -f docker-compose.mysql.yml -f docker-compose.owaspzap.yml -f docker-compose.yml up -d
[+] Running 5/5
 ✔ Container ec217-mailcatcher-1  Started                                                                                                        0.2s
 ✔ Container ec217-postgres-1     Started                                                                                                        0.2s
 ✔ Container ec217-mysql-1        Started                                                                                                        0.2s
 ✔ Container ec217-ec-cube-1      Started                                                                                                        0.1s
 ✔ Container ec217-zap-1          Started                                                                                                        0.1s
$ npx playwright test
[@faker-js/faker]: faker.company.companyName() is deprecated since v7.4 and will be removed in v8.0. Please use faker.company.name() instead.
[@faker-js/faker]: faker.fake() is deprecated since v7.4 and will be removed in v8.0. Please use faker.helpers.fake() instead.

Running 164 tests using 4 workers
  1) [chromium] › test/admin/customer/edit.test.ts:13:7 › 会員登録画面のテストをします › 会員登録画面のテストをします ──────────

    RequestError: Error: socket hang up

        at RequestError (/home/xxx/htdocs/ec217/node_modules/request-promise-core/lib/errors.js:14:15)
        at Request.plumbing.callback (/home/xxx/htdocs/ec217/node_modules/request-promise-core/lib/plumbing.js:87:29)
        at Request.RP$callback (/home/xxx/htdocs/ec217/node_modules/request-promise-core/lib/plumbing.js:46:31)
        at self.callback (/home/xxx/htdocs/ec217/node_modules/request/request.js:185:22)
        at Request.onRequestError (/home/xxx/htdocs/ec217/node_modules/request/request.js:877:8)

[5/164] [chromium] › test/admin/customer/edit.test.ts:18:7 › 会員登録画面のテストをします › LC_Page_Admin_Customer_Edit_Ex クラスのテストをします @ext
...


他に、以下のようなエラーも頻発します。
  22) [chromium] › test/installer/installer.test.ts:15:7 › インストーラのテストをします › インストーラを表示します ───────────

    Error: page.goto: net::ERR_EMPTY_RESPONSE at https://ec-cube/install/
    Call log:
      - navigating to "https://ec-cube/install/", waiting until "load"


      10 |     const browser = await chromium.launch();
      11 |     page = await browser.newPage();
    > 12 |     await page.goto(url);
         |                ^
      13 |   });
      14 |
      15 |   test('インストーラを表示します', async () => {

        at /home/xxx/htdocs/ec217/e2e-tests/test/installer/installer.test.ts:12:16

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/test-installer-installer-インストーラのテストをします-インストーラを表示します-chromium/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────


最後は、以下の文言を表示したまま、進まなくなります。
[157/164] [chromium] › test/installer/installer.test.ts:103:7 › インストーラのテストをします › トップページを確認します



テスト結果のエラーというより、環境構成の不備だと思うのですが、何か分かりましたら教えてください。

なお、Windows 上の Chrome から https://localhost:4430 にアクセスすると、フロント画面が表示されます。
https://localhost:4430/admin/ でログイン画面が表示されます。

test-results/ 以下に保存される PNG 画像は、全て白画面です。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   E2E テスト実行環境 seasoft 2024/1/27 18:44
     Re: E2E テスト実行環境の Node.js バージョン seasoft 2024/1/28 2:50
   » Re: E2E テスト実行環境 seasoft 2024/1/28 16:48
       Re: E2E テスト実行環境 seasoft 2024/1/28 16:55
         Re: E2E テスト実行環境 nanasess 2024/2/2 10:48
           Re: E2E テスト実行環境 seasoft 2024/2/5 2:11
           Re: E2E テスト実行環境 seasoft 2024/2/21 10:58
             Re: E2E テスト実行環境 seasoft 2024/2/21 13:47
             Re: E2E テスト実行環境 nanasess 2024/2/21 17:41
               Re: E2E テスト実行環境 seasoft 2024/2/21 20:30
                 Re: E2E テスト実行環境 seasoft 2024/2/26 15:46
                   Re: E2E テスト実行環境 nanasess 2024/2/26 16:07
                     Re: E2E テスト実行環境 seasoft 2024/2/27 12:15
                       Re: E2E テスト実行環境 seasoft 2024/3/2 12:22
                   Re: E2E テスト実行環境 seasoft 2024/3/28 13:33
                     Re: E2E テスト実行環境 nanasess 2024/4/9 1:23
                       Re: E2E テスト実行環境 seasoft 2024/4/9 20:35
                         Re: E2E テスト実行環境 nanasess 2024/4/9 23:11
                           Re: E2E テスト実行環境 seasoft 2024/4/10 11:55
                             Re: E2E テスト実行環境 nanasess 2024/4/10 12:16
                             Re: E2E テスト実行環境 nanasess 2024/4/19 0:42

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,421名です
総投稿数は110,086件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1652
8
red
1570
9
mcontact
1305
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.