thucydides-webtests/thucydides

Thucydides biased towards firefox? Is there built-in IE support?

Closed this issue · 3 comments

After playing around with a sample test I'm creating, I'm realizing that this framework is biased towards firefox.

I've tried this, to set the driver to IE, but it fails.
@Managed
public WebDriver webdriver = new InternetExplorerDriver();

I've also tried configuring it in settings, but it seems like the ThucydidesRunner defaults the browser back to firefox at some point.

What's the scoop with that?

Thanks,
-Sam

Hi Sam,

Firefox is the default driver, but you can run Thucydides with any browser-based Webdriver driver (i.e. Firefox, Chrome and Internet Explorer). You can set the webdriver.driver property on the command line, e.g. -Dwebdriver.driver=iexplorer. However, you need to tweek the surefire plugin configuration to make sure this property will be passed to the JUnit JVM, with something like this:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.7.1</version>
            <configuration>
                <systemPropertyVariables>
                    <webdriver.driver>${webdriver.driver}</webdriver.driver>
                </systemPropertyVariables>
            </configuration>
        </plugin> 

Then you can just pass in the system property (or define it in your pom.xml file), e.g.

$ mvn test -Dwebdriver.driver=iexplorer

The full list of other command-line options and how to use them is detailed towards the end of https://github.com/thucydides-webtests/thucydides/wiki/Thucydides-Tutorial.

Even after following the instructions on the link you have posted it still always defaults back to firefox any ideas?

Could you send me your pom.xml file?

Thanks,

John.

On 28 July 2011 03:43, MaxDeAngelis <
reply@reply.github.com>wrote:

Even after following the instructions on the link you have posted it still
always defaults back to firefox any ideas?

Reply to this email directly or view it on GitHub:

#27 (comment)


John Smart | Wakaleo Consulting | +64 21 032 2797
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com