DevExpress / DevExpress/testcafe-browser-tools

Testcafe screenshot is not working for firefox on Cent os

Open
#200 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

STATE: Need clarification
Dominant language
C++
Stars
30
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Scenario :
1] Using frontend-maven-plugin to download node and testcafe in project directory.
2] Running testcafe based tests from Java using xvfb-run command along with node and testcafe using code like :
Runtime.getRuntime().exec()
3] Using .testcaferc.json to add configuration where the screenshot is enabled.

The actual command that is running :
xvfb-run --server-num=43717 --server-args=-screen 0 1024x768x24 {project_root_path}/node/node {project_root_path}/node_modules/testcafe/lib/cli/cli.js 'path:/mnt/jenkins/firefox/firefox-68.1.0esr/firefox/firefox --start-fullscreen' {project_root_path}/src/test/resources/testcafe-test-files/transform-add-and-subtract-time.js

The error while taking the screenshot is :

Warnings (2): -- Was unable to take a screenshot due to an error.

  `Error: Command failed:
  {project_root_path}/node_modules/testcafe-browser-tools/bin/linux/glibc-64/screenshot
  200002
  {project_root_path}/target/screenshots/Add Time.png`

Software versions I am using :
Testcafe version : 1.1.0
FirefoxBinary version: Mozilla Firefox 68.1.0esr
CentOS version : Linux release 7.4.1708 (Core)

Can you please help me in resolving this issue ?
@AndreyBelym

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command shown in the issue with the listed TestCafe, Firefox, and CentOS versions. Inspect the .testcaferc.json screenshot configuration and the browser-tools screenshot executable path. Done means the Firefox run completes without the screenshot warning and produces the requested file under target/screenshots.

Written by the indexing model from the issue text.

Assessment

Tech stack
centos, java, linux, node.js
Domain
operating-systems, testing-qa, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.