I see the error below when I run my first script.
com.intuit.karate.exception.KarateException: http call failed after 702 milliseconds for URL: https://qa.myorg.intVersion.
Here is my feature file.
Feature: Test feature
Scenario: Verify my service is up and running
Given url 'https://qa.myorg.int\Version'
When method get
Then status 200
Here is my Java file:
package examples
import org.junit.runner.RunWith
import com.intuit.karate.junit4.Karate
@RunWith(Karate.class)
public class jenkinsTest {
}
I have waited manually for a long time in debug mode. Still, I see the error below and no HTML reports are loaded into the target folder. (I see ONLY Karate.log under target folder.)
11:36:23.751 [main] ERROR com.intuit.karate - javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, http call failed after 271489 milliseconds for URL: https://qa.myorg.int/Version
How can I solve it?
Refer to the configure
documentation for SSL. Try this:
Feature: Test feature
Background:
* configure ssl = true
Scenario: Verify my service is up and running
Given url 'https://qa.myorg.int/Version'
When method get
Then status 200
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With