Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No implementation for net.thucydides.core.webdriver.WebdriverManager was bound. #1263

Closed
anasantosribeiro opened this issue May 30, 2018 · 8 comments

Comments

@anasantosribeiro
Copy link

I tried run a project serenity+appium+java+ cucumber with gradle i receiving this error :
No implementation for net.thucydides.core.webdriver.WebdriverManager was bound.
while locating net.thucydides.core.webdriver.WebdriverManager

My dependencies in build.gradle
dependencies {
compile "io.appium:java-client:4.1.2"
compile group: 'junit', name: 'junit', version: '4.12'
compile 'net.serenity-bdd:serenity-core:1.1.36'
compile 'net.serenity-bdd:serenity-junit:1.1.1'
compile 'net.serenity-bdd:serenity-cucumber:1.9.7'
compile 'org.slf4j:slf4j-nop:1.7.25'
compile 'net.serenity-bdd:serenity-reports:1.9.15'
}

My class Runner:

mport cucumber.api.CucumberOptions;
import net.serenitybdd.junit.runners.SerenityRunner;
import org.junit.runner.RunWith;

@RunWith(SerenityRunner.class)
@CucumberOptions(plugin = {"pretty", "json:build/Cucumber.json, html:build/cucumber-html-report"},
features = {"src/main/resources/features"},
tags = {"~@instrumentado/unitario ","@ok","@ok/ios"},
glue = {"stepDefinition"})

public class CucumberTestRunner {}

My class AppiumDriverHelper
public class AppiumDriverHelper {

private static AppiumDriver<MobileElement> driver;

public static AppiumDriver<MobileElement> getAppiumDriver(String plataform) throws MalformedURLException {

    if (driver == null) {
        if (plataform.equals("android")) {
            DesiredCapabilities cap;
            cap = new DesiredCapabilities();
            cap.setCapability(DEVICE_NAME, "Nexus 5 API 23");
            cap.setCapability(MobileCapabilityType.BROWSER_NAME, "Android");
            cap.setCapability(MobileCapabilityType.VERSION, "6.0");
            cap.setCapability("platformName", "Android");
            cap.setCapability("app", new File("artifacts/Rico.apk"));
            cap.setCapability ("unicodeKeyboard", true);
            cap.setCapability ("resetKeyboard", true);
            driver = new AndroidDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"), cap);
        } else {
            if (plataform.equals("ios")) {
                DesiredCapabilities cap = new DesiredCapabilities();
                cap.setCapability(DEVICE_NAME, "iPhone X");
                cap.setCapability(MobileCapabilityType.BROWSER_NAME, "iOS");
                cap.setCapability(MobileCapabilityType.VERSION, "11.2");
                cap.setCapability(MobileCapabilityType.PLATFORM, "Mac");
                cap.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
                cap.setCapability(MobileCapabilityType.PLATFORM, "Mac");
                cap.setCapability("platformName", "IOS");
                cap.setCapability("app", new File("artifacts/Rico.app"));
                driver = new IOSDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"), cap);

            }
        }

    }

Can you help me ?

@ricardorlg
Copy link
Contributor

This question should be in rocket chat, but take a look to Serenith Appium Example

@cliviu
Copy link
Collaborator

cliviu commented May 31, 2018

hi @Hhaninha , your dependencies are wrong. remove compile 'net.serenity-bdd:serenity-core:1.1.36'

@anasantosribeiro
Copy link
Author

@ricardorlg I saw but the only difference between my project is file serenity.proporties what in my i created the class AppiumDriverHelper thank you for answer.

@anasantosribeiro
Copy link
Author

@cliviu I deleted the dependency but continue with the same error, thank you for answer.

@wakaleo
Copy link
Member

wakaleo commented May 31, 2018

Try:

dependencies {
compile "io.appium:java-client:4.1.2"
compile group: 'junit', name: 'junit', version: '4.12'
compile 'net.serenity-bdd:serenity-core:1.9.18'
compile 'net.serenity-bdd:serenity-junit:1.9.18'
compile 'net.serenity-bdd:serenity-cucumber:1.9.7'
compile 'org.slf4j:slf4j-nop:1.7.25'
}

@anasantosribeiro
Copy link
Author

@wakaleo now changed the error for
java.lang.Exception: No runnable methods

@wakaleo
Copy link
Member

wakaleo commented May 31, 2018

Take a look at https://github.com/serenity-bdd/serenity-junit-starter.

As this is a usage issue rather than a defect, you might get support more suited to your needs with one of the Serenity Support packages (https://johnfergusonsmart.com/serenity-bdd-mentoring/ - I would recommend one of the lightweight mentoring packages to start with). You can also ask the broader Serenity community at https://serenity-bdd.rocket.chat.

@anasantosribeiro
Copy link
Author

@wakaleo thank you, I go to see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants