Run NodeJS Tests in AWS Device Farm (Appium, Android)

  Рет қаралды 703

Error Farm

Error Farm

Күн бұрын

Пікірлер: 16
@MarkAustin-z5o
@MarkAustin-z5o 5 ай бұрын
Great. All working with my own tests. Very useful video. Thanks.
@errorfarm
@errorfarm 4 ай бұрын
Glad it helped!
@mr_possible6197
@mr_possible6197 8 ай бұрын
Can't we get the package or the apk from code pipeline artifacts once we design a build pipeline for our test automation framework ? Sorry if the question is silly, as I am new to Appium. Nice video by the way
@errorfarm
@errorfarm 8 ай бұрын
Yes we can. Here's more info about that: docs.aws.amazon.com/devicefarm/latest/developerguide/codepipeline.html
@nitinpunyani6001
@nitinpunyani6001 7 ай бұрын
I am facing issue when i run the code on aws device farm Continue... 2024-04-23T11:54:58.539Z WARN @wdio/config:ConfigParser: pattern ./test/specs/test.e2e.ts did not match any file 2024-04-23T11:54:58.539Z ERROR @wdio/cli:launcher: No specs found to run, exiting with failure 2024-04-23T11:54:58.540Z INFO @wdio/cli:launcher: Run onComplete hook Spec Files: 0 passed, 0 total (0% completed) in 00:00:04
@errorfarm
@errorfarm 7 ай бұрын
@@nitinpunyani6001 This is either wdio configuration issue or the npm bundle does not contain the test files. Check: 1. the configuration that ./test/specs/test.e2e.ts is the correct path and 2. check what is inside the npm bundle that test.e2e.ts is there.
@nitinpunyani6001
@nitinpunyani6001 7 ай бұрын
​@@errorfarm When i run the npm-bundle command after that i am facing this issue: ``````` PS D:\MobileAutomationDeviceFarm ode-device-farm> npm-bundle C:\Users\pc1\AppData\Roaming vm\v18.20.2 ode_modules pm-bundle\bin\cli.js:11 throw error ^ [Error: ENOENT: no such file or directory, open 'D:\MobileAutomationDeviceFarm ode-device-farm\.npmbundle ode_modules\device-farm\package.json'] { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'D:\\MobileAutomationDeviceFarm\ ode-device-farm\\.npmbundle\ ode_modules\\device-farm\\package.json' } Node.js v18.20.2 ``````
@nitinpunyani6001
@nitinpunyani6001 7 ай бұрын
Please tell me what will be the soultion?
@JavierDíazFernández-c4b
@JavierDíazFernández-c4b 2 ай бұрын
Can you make the video again or help me :(, I'm having problems with the versions: [DeviceFarm] npm install npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@wdio/allure-reporter@9.1.3', npm WARN EBADENGINE required: { node: '>=18.20.0' }, npm WARN EBADENGINE current: { node: 'v18.16.1', npm: '9.5.1' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@wdio/reporter@9.1.3', npm WARN EBADENGINE required: { node: '>=18.20.0' }, npm WARN EBADENGINE current: { node: 'v18.16.1', npm: '9.5.1' } npm WARN EBADENGINE } among other errors like: Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include `shortCircuit: true` in the hook's return. at new NodeError (node:internal/errors:399:5) at ESMLoader.resolve (node:internal/modules/esm/loader:846:13) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:7) and I just follow all your steps, however the unique difference is when doing in cmd: npm install -g npm-bundle, and I see: npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@6.0.4: Glob versions prior to v9 are no longer supported
@errorfarm
@errorfarm 2 ай бұрын
Sounds like your allure reporter needs higher Node version. Can you remove allure-reporter?
@errorfarm
@errorfarm 2 ай бұрын
After creating this video, AWS has added support for Node version 20. Don’t use 18 anymore but use 20. So in the beginning type: nvm install 20.
@JavierDíazFernández-c4b
@JavierDíazFernández-c4b 2 ай бұрын
@@errorfarm THAT was the error, thank you very much!!
@errorfarm
@errorfarm 2 ай бұрын
@@JavierDíazFernández-c4b I’m glad you got it working. 👍🙂
Run Python Tests in AWS Device Farm (Appium, Android)
10:37
Curso de Node.js - Introdução ao Express #06
6:59
Victor Lima - Ciência da Computação
Рет қаралды 113 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Boost Your GitLab Workflow: Automatic Release Notes Using AI
2:56
Андраник Саркисян
Рет қаралды 110
Run Java Tests in AWS Device Farm (Appium, Android)
21:47
Error Farm
Рет қаралды 624
Security Scan (SAST) in Azure Pipeline: Step by Step Guide
10:51
Beginner Tutorial: Playwright Test Automation
57:59
Error Farm
Рет қаралды 400
Мобильные автотесты с нуля | Appium Android
1:15:53
Introducing AWS Device Farm
6:01
Amazon Web Services
Рет қаралды 35 М.
JMeter Remote on AWS EC2
12:27
The Engineer
Рет қаралды 1,4 М.