Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-pmc] RedDeer sample

> These are helper classes. Straight from the dev:

Are those classes big? Can they be generated or is it manual work? How much work?

Dani



From:        Aleksandar Kurtakov <akurtako@xxxxxxxxxx>
To:        eclipse-pmc@xxxxxxxxxxx
Date:        21.02.2017 12:13
Subject:        Re: [eclipse-pmc] RedDeer sample
Sent by:        eclipse-pmc-bounces@xxxxxxxxxxx






----- Original Message -----
> From: "Daniel Megert" <daniel_megert@xxxxxxxxxx>
> To: eclipse-pmc@xxxxxxxxxxx
> Sent: Friday, 17 February, 2017 5:50:26 PM
> Subject: Re: [eclipse-pmc] RedDeer sample
>
> Hi Alex
>
> Why is the test using ' org.jboss.reddeer
> .eclipse.jdt.ui.wizards.JavaProjectWizard' and not
> 'org,eclipse.jdt,internal,ui,wizards.JavaProjectWizard'? Similar question
> for the other changed Eclipse classes.

Hi Dani,
These are helper classes. Straight from the dev:

"When you call open method on reddeer JavaProjectWizard it will find a shell menu "File" -> "New" -> "Other" then in "New" Wizard it will find "Java" -> "Java Project" TreeItem and clicks on "Next" button.
Now you have NewJavaProjectWizardPageOne. You can set Project name which means it will find text widget with label "Project Name:" and sets the specified text and so on.
RedDeer usually interacts only with user interface (widgets)."

So some of these helper classes are created for commonly used UI widgets to make interacting with them simpler and less error prone when writing tests.



>
> Dani
>
>
>
> From: Aleksandar Kurtakov <akurtako@xxxxxxxxxx>
> To: eclipse-pmc@xxxxxxxxxxx
> Date: 14.02.2017 13:37
> Subject: [eclipse-pmc] RedDeer sample
> Sent by: eclipse-pmc-bounces@xxxxxxxxxxx
>
>
>
>
> Hi everyone,
> I asked our QE to prepare RedDeer test that creates new Java project, creates
> New class in it with main method, adds sysout in the main method, launch the
> class and expect that console view has the proper text printed. You can see
> the code at [1]. If you would like to run it clone [2], cd reddeer.example,
> mvn clean verify. It's a tycho build with additional repo to add reddeer so
> everyone can experiment from that point. The class file is JUnit 4 POJO
> itself, annotated to run as RedDeerSuite (much like SWTBot does).
> Please let me know of any questions you may have and I'll forward them to
> respective people.
>
> [1]
>
https://github.com/rawagner/reddeer-helloworld/blob/master/reddeer.example/src/reddeer/example/BasicTest.java
> [2]
https://github.com/rawagner/reddeer-helloworld/
>
> --
> Alexander Kurtakov
> Red Hat Eclipse team
> _______________________________________________
> eclipse-pmc mailing list
> eclipse-pmc@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
>
https://dev.eclipse.org/mailman/listinfo/eclipse-pmc
>
>
>
>
>
> _______________________________________________
> eclipse-pmc mailing list
> eclipse-pmc@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
>
https://dev.eclipse.org/mailman/listinfo/eclipse-pmc

--
Alexander Kurtakov
Red Hat Eclipse team
_______________________________________________
eclipse-pmc mailing list
eclipse-pmc@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-pmc





Back to the top