Running karate tests on chrome with chromedriver inside docker

We only support chrome native via Docker. Note that you can use existing Selenium “Grid” infra, for e.g see these: https://github.com/ptrthomas/karate-devicefarm-demo https://stackoverflow.com/a/60992292/143475 You can consider creating your own Docker image (which is very common) or use an existing “Selenium flavored” one. Do note that Karate is open-source. Maybe you would be interested to contribute this … Read more

How to get Sikuli working in headless mode

I successfully got sikuli running in headless mode (no physical monitor connected) Ubuntu: check Xvfb. Windows: install display driver on the machine (to be headless) from virtualbox guest additions display drivers and use TightVNC to remotely set resolution from another machine. Detailed steps for windows 7 Assume that: Machine A: to be headless machine, windows … Read more

Message “Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout”

The timeout you specify here needs to be shorter than the default timeout. The default timeout is 5000 and the framework by default is jasmine in case of jest. You can specify the timeout inside the test by adding jest.setTimeout(30000); But this would be specific to the test. Or you can set up the configuration … Read more

How to skip the rest of tests in the class if one has failed?

I like the general “test-step” idea. I’d term it as “incremental” testing and it makes most sense in functional testing scenarios IMHO. Here is a an implementation that doesn’t depend on internal details of pytest (except for the official hook extensions). Copy this into your conftest.py: import pytest def pytest_runtest_makereport(item, call): if “incremental” in item.keywords: … Read more

Gradle Test Dependency

You can expose the test classes via a ‘tests’ configuration and then define a testCompile dependency on that configuration. I have this block for all java projects, which jars all test code: task testJar(type: Jar, dependsOn: testClasses) { baseName = “test-${project.archivesBaseName}” from sourceSets.test.output } configurations { tests } artifacts { tests testJar } Then when … Read more