logo
Tags down

shadow

cucumber.runtime.CucumberException: Failed to instantiate class when run on other devices


By : xiaomeng
Date : September 15 2020, 12:00 PM
it helps some times Your problem written here:
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: org.json.JSONException: No value for desiredCapabilities
code :


Share : facebook icon twitter icon

cucumber.runtime.CucumberException: Failed to instantiate class


By : Shishir
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , I assume that your class file InsideSaleEndToEndTesting was containing annotations of JUnit and also glue codes/functions. Hence when cucumber tried to create a instance of InsideSaleEndToEndTesting, it had thrown these exceptions.

cucumber.runtime.CucumberException: Failed to instantiate class


By : S. Seidel
Date : March 29 2020, 07:55 AM
may help you . So, recently I restructured my code according to this great post here: https://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/
This link guides you to build a Parallel WebDriver executions using TestNG.

cucumber.runtime.CucumberException: Couldn't load plugin class: json-pretty with Cucumber Selenium and Java


By : Hakan KELEŞ
Date : March 29 2020, 07:55 AM
I wish this helpful for you Seems you were pretty close.
You need to change the plugin definations as follows:
code :
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class) 
@CucumberOptions( plugin={"pretty:target/cucumber-htmlreport.text", "json:target/cucmber-report.json"})

public class CucumberTest { //codes }

cucumber.runtime.CucumberException: Failed to instantiate stepDefinitions class


By : csema
Date : March 29 2020, 07:55 AM
this one helps. The instantiation fails as it's not possible to create a new object of Steps with the default constructor.
code :
public class Steps {

    private static WebDriver driver;
    WebDriverWait wait=new WebDriverWait(driver, 20);

    ...

cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter


By : Tru Lance
Date : March 29 2020, 07:55 AM
I hope this helps . I'm having this similar issue, and to solve it I've changed the plugin in @CucumberOptions:
code :
@CucumberOptions(
        plugin = { "com.vimalselvam.cucumber.listener.ExtentCucumberFormatter:path/report.html"}
)
Related Posts Related Posts :
  • Mockito is not mocking the method
  • Sum of double values, strange result
  • How to integrate a spring boot application using spring cloud stream to IBM event streams on bluemix cloud
  • Counting number of days of a particular month when given a duration
  • JUnit test for void method ( output-input dependency )
  • Why does Collections.unmodifiableMap not check if the map passed is already an UnmodifiableMap?
  • ServiceLoader and services which are valid at all times
  • How to Run Cron Jobs in Kotlin Ktor?
  • How do I deserialize array of different types with GSON
  • Gradle Plugin dependency
  • java saying 'cannot find symbol' though method is declared in class
  • How to minimize the sum of the elements in the final array after performing k number of operation
  • Can I generate a jar with maven without method bodies in Java?
  • Java/Kotlin callback syntax - do I really need 2 callback definitions after conversion to Kotlin?
  • Spring boot RESTful - three tier architecture
  • What is a big double that I can use to simulate infinity?
  • Java Socket does not error but is not functional(?)
  • how can I get specific value of an array list using stream
  • I Can't Write A Triangle Pattern in Java
  • Unique Identifier for a video file in Android
  • How do I get a response to a http in java?
  • I don't know (Unresolved compilation problem:)
  • Custom ordering MSSQL hibernate Spring boot 2
  • How to build and run okhttp 3.10.0
  • ArrayList errors
  • How to create a partitioned table in BigQuery from java?
  • (JNI) Get Java method's memory address with GetMethodID
  • Java: Unable to understand for loop behaviour
  • Java - Rounding BigDecimal value with 2 decimal place at 2 levels
  • Minecraft-moding: Mod works only in IDE but not when exported as jar
  • Increasing Number Of Treads Cause The Longer Loop Duration
  • Using Java streams to find mode when there might be multiple modes?
  • How to access classes Vector of a Classloader in Java 12?
  • Java Regex: find single quoted text with escapes
  • How to Convert String of numbers to a distinct ArrayList
  • How to know if a date is in previous x minutes?
  • In Java, the expression "+ + + + + +" is executed, the compiler reports no errors and can execute correctly?
  • Long string concatenation problem in java?
  • How to get current week number and year in Java using GregorianCalendar?
  • What is the difference between ThreadContext.put() and MDC.Put()?
  • Mapstrut/Lombok: No property named "customfields" exists in source parameter(s) as on Dec 31 2019
  • Java:Add name of each instance of object to list
  • What is the more idiomatic use of super and extends in this case?
  • HttpConnect fails in android
  • How to add two Optional<Long> in java
  • While formatting a float number using System.out.format(), irrelevant answers are shown up. Why?
  • Operate a given Java stream pairwise
  • How do load a Service without using ServiceLoader.Provider class (for J1.8 compatibility)
  • Issues with creating gradle project in IntelliJ
  • How to create file choosers similar to default windows boxes?
  • Your code did not execute within the time limits in Hackerrank
  • How Do You Login To An ASPX Website Using A Jsoup
  • My do while loop is stopping after one iteration. how do I keep it going?
  • How do I repeatedly check if the user is verified in the Firebase Authentication?
  • keeping an android service running for a long time
  • Liveness / Health probe for Java threaded application
  • I am not very beginner of coding in java, But I need some help in understanding the constructor in java
  • Maven Shade : include only specific artifacts and exclude all the rest
  • Why does the "this" keyword print exactly what toString() is printing?
  • Lower and Upper Bound for Java Wildcard Type
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk