这是indexloc提供的服务,不要输入任何密码
Skip to content

--skipRestart is causing issue, test runs not getting completed #297

@dipak-amber

Description

@dipak-amber

flashlight test
--bundleId com.amberstudent
--beforeAllCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts1/SetupHomeToSearch.yml"
--testCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts1/NavHomeToSearch.yml"
--resultsFilePath /users/dipakkorde/desktop/results/resulthometosearch.json
--skipRestart

While running tests using this runs not getting completed. Getting error

/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/atrace/pollFpsUsage.js:11
throw new Error(Could not parse ATrace line "${line}");
^

Error: Could not parse ATrace line "CPU:2 [LOST 1457 EVENTS]"
at parseLine (/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/atrace/pollFpsUsage.js:11:19)
at FrameTimeParser.getFrameTimes (/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/atrace/pollFpsUsage.js:75:105)
at /snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/pollPerformanceMeasures.js:30:74
at /snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/cppProfiler.js:48:9
at /snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/shell.js:84:13
at Array.forEach ()
at Socket. (/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/shell.js:83:33)
at Socket.emit (node:events:537:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)

Node.js v18.5.0

Instead when i am running tests using

flashlight test \
--bundleId com.amberstudent
--beforeAllCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts/SetupFlow.yml"
--testCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts/ScrollSearchPage.yml"
--resultsFilePath /users/dipakkorde/desktop/results/resulthometosearch.json

All iterations getting completed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions