Magento 2 MFTF test : Chrome failed to start: exited abnormally - selenium-chromedriver

We are running the Magento function testing framework in Magento Vannila 2.4.2 enterprise.
We used devious documentation for all setups.
https://devdocs.magento.com/mftf/docs/getting-started.html
while runing below command we are getting issue,
vendor/bin/codecept run functional -c dev/tests/acceptance/codeception.yml
vendor/bin/mftf run:test AdminLoginSuccessfulTest --remove
Could anyone can help on this.
Here is the Error
AdminLoginSuccessfulTestCest: Admin login successful test
Test tests/functional/Magento/_generated/default/AdminLoginSuccessfulTestCest.php:AdminLoginSuccessfulTest
[Facebook\WebDriver\Exception\UnknownErrorException] unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Related

Multi-OS Engine build failed in Android Studio

I'm recently getting an error building a Multi-OS engine project using LibGDX in Android Studio. This is the output from the Multi-OS Engine console:
ERROR: Failed to upgradeonly on device, Unknown error
Command failed: [/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant, -jar, /Users/camilo/.moe/moe-sdk-1.3.0-beta-2/tools/ios-device.jar, --app-path=/path/to/my/project/ios-moe/build/moe/xcodebuild/Debug-iphoneos/MyApp.app, --wait-for-device, --launch-arg=-args, --launch-arg=--debug, --install-mode=upgradeonly]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ios-moe:moeLaunch'.
> Process exited with non-zero exit value
* Try:
:ios-moe:moeLaunch FAILED
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
My gradle looks like this:
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'org.multi-os-engine:moe-gradle:1.3.3'
}
}
LibGDX version = 1.9.6
Nonetheless the Application is installed in the device, but I cannot see the logs in the console. When I change the build target to Simulator it works just fine.
Problem solved, my iPhone has updated to 10.3.1 and Xcode didn't have the DeveloperDiskImage corresponding to the latest iOS version, so I had to update Xcode too to version 8.3.1.

Selenium - Uncaught WebDriverError: chrome not reachable

Currently I'm using the follow stack:
1. Selenium Webdriver 3.0.1 (NodeJS API)
2. Mocha
3. Chromedriver 2.25.3
Often when I run my tests in Codeship (continuous integration) I get this error:
Uncaught WebDriverError: chrome not reachable
(Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-42-generic x86_64)
Note: This never happened running locally, only occurs when my tests start in codeship, and it's an intermittent error (sometimes it happens, sometimes not)
Screenshot error:
Any ideia how solve this?
Does codeship have chrome installed on their test server?
I'm guessing not. It might be better to run this against phantomjs (headless browser) instead for CI purposes.

"init: Failed to spawn google main process: unable to execute: No such file or directory" in /var/log/syslog

When booting up or restarting one of my instances in Google Compute Engine, I'm getting this error in /var/log/syslog.
Without the "google" service/process, I'm unable (among other things) to update my SSH keys from GCE's Metadata.
Running
sudo service google start
gives me the error
start: Job failed to start
with the same error line in /var/log/syslog.
Any ideas on how to resolve this issue?
Fixed myself by following the "From Source Repository" installation instructions in this git repo: https://github.com/GoogleCloudPlatform/compute-image-packages
It appears that all the /usr/... and /etc/... files were missing.

Error when running sitespeed.io with chrome : Chrome failed to start: exited abnormally

I was running this command on the terminal
$ sitespeed.io -u http://cybercom.com -b chrome
but always facing this error, I have tried many times but in vain cannot figure out the problem
message: 'unknown error: Chrome failed to start: exited abnormally\n (Driver info: chromedriver=2.16.333243 (0bfa1357514444f1ddb82bf70944f96),platform=Linux 3.13.0-65-generic x86_64)'
knowing that
1-Os version :
Ubuntu 14.04.3 LTS
2-my google chrome version is
$ google-chrome -version
Google Chrome 46.0.2490.71
3-chrome driver version
$ chromedriver -version
ChromeDriver 2.10.267518
but in the message error it is "Driver info: chromedriver=2.16.333243" .... I didn´t understand why they aren´t the same version ?
Google chrome version is not supported neither with chromedriver=2.16 nor with ChromeDriver 2.10.
----------ChromeDriver v2.16 (2015-06-08)----------
Supports Chrome v42-45
----------ChromeDriver v2.10 (2014-05-01)----------
Supports Chrome v33-36
what should I do in this case ?
I appreciate your help . Thx

LibGDX - HTML5 Run&Deploy

I'm using Android Studio.
I want to run and deploy my application on HTML5.
I'm entering the command "gradlew.bat html:superDev" on the Terminal, but it gives me that error message:
Execution failed for task ':core:compileJava'. Could not find tools.jar
How can I solve this problem?
Here's the full error message:
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Configuration on demand is an incubating feature.
:core:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:compileJava'.
> Could not find tools.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I had the same issue.
You need install jdk Download here
You need configure your variable environment: JAVA_HOME
Or you can copy tools.jar from %JAVA_HOME\lib to Android Studio\lib