Search the web
Sign In
New User? Sign Up
uispec4j
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 610 - 622 of 622   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#622 From: "Shelley" <shelleyguo80@...>
Date: Sun Nov 29, 2009 11:17 am
Subject: Re:Is UISpec4J suitable for this situation?
shelleyguo80
Offline Offline
Send Email Send Email
 
--- In uispec4j@yahoogroups.com, Daniel Wellner <daniel.wellner@...> wrote:
>
>
> I have used UISPec4J for a customer running about 10.000 JUnit tests per
build, most of which contain UI testing through UISpec4J.
> Our CI runs the build atleast 10 times a day, every day for over 2 years now,
without any trouble related to UISpec4J. Swing itself can be tricky though,
> because of it's event-queue architecture, but that is manageable.
>
> /Daniel
>
to Laurent, TA means Test automation, that's exactly what UISpec4J does.

to Daniel, thanks for your comments, it's helpful. :)

#621 From: Daniel Wellner <daniel.wellner@...>
Date: Sun Nov 29, 2009 10:06 am
Subject: Re:Is UISpec4J suitable for this situation?
daniel.wellner
Offline Offline
Send Email Send Email
 
I have used UISPec4J for a customer running about 10.000 JUnit tests per build,
most of which contain UI testing through UISpec4J.
Our CI runs the build atleast 10 times a day, every day for over 2 years now,
without any trouble related to UISpec4J. Swing itself can be tricky though,
because of it's event-queue architecture, but that is manageable.

/Daniel

#620 From: Laurent <laurent+uispec4j@...>
Date: Sat Nov 28, 2009 1:52 pm
Subject: Re: Is UISpec4J suitable for this situation?
laurent+uispec4j@...
Send Email Send Email
 
Hi,

On Fri, 27 Nov 2009 06:07:05 -0000, "Shelley" <shelleyguo80@...>
wrote:
>   We were planing to use UISpec4J in large Swing project's TA system,
and
>   integrate it into CI system(like Hudson), do you think UISpec4J is
>   suitable for this situation(stable...etc)? I'd like to know if someone
is
>   working on such project, and suggestions & comments are welcome.

I currently have several "small" projects using UISpec4J, built with
Hudson, and I have no problems related to uispec4j. The only thing for the
CI is it can't be executed on a headless machine (like selenium, on linux
machine xvfb may help).
By the way, what do you mean by "TA system" ?

Laurent.

#619 From: "Shelley" <shelleyguo80@...>
Date: Fri Nov 27, 2009 6:07 am
Subject: Is UISpec4J suitable for this situation?
shelleyguo80
Offline Offline
Send Email Send Email
 
Hello:
   We were planing to use UISpec4J in large Swing project's TA system, and
integrate it into CI system(like Hudson), do you think UISpec4J is suitable for
this situation(stable...etc)? I'd like to know if someone is working on such
project, and suggestions & comments are welcome.

Many thanks!

-Shelley

#618 From: Pascal PRATMARTY <pascal.pratmarty@...>
Date: Thu Nov 26, 2009 9:04 pm
Subject: UISpec4J 2.1 is on Maven public repositories
pratmartyp
Offline Offline
Send Email Send Email
 
Dear UISpec4J users, 

We are pleased to announce that UISpec4J 2.1 is now available on Maven repositories.

If you use Maven, you should add these lines in your pom.xml: 

              <dependency>
                <groupId>org.uispec4j</groupId>
                <artifactId>uispec4j</artifactId>
                <version>2.1</version>
                <classifier>jdk15 or jdk16</classifier>
              </dependency>

As you have noticed above, the 'classifier' information accepts two possible values, depending whether your project is built upon jdk 5 or jdk 6.

If you want to be able to build your project for both jdk 5 and 6, you should rather use the following configuration (automatically checks the version of the underlying jdk for targetting the right UISpec4J library):

    <profiles>
      <profile>
        <id>jdk15</id>
        <activation>
          <jdk>1.5</jdk>
        </activation>
          <dependencies>
              <dependency>
                <groupId>org.uispec4j</groupId>
                <artifactId>uispec4j</artifactId>
                <version>2.1</version>
                <classifier>jdk15</classifier>
              </dependency>
          </dependencies>
      </profile>
      <profile>
        <id>jdk16</id>
        <activation>
          <jdk>1.6</jdk>
        </activation>
      <dependencies>
          <dependency>
            <groupId>org.uispec4j</groupId>
            <artifactId>uispec4j</artifactId>
            <version>2.1</version>
            <classifier>jdk16</classifier>
          </dependency>
      </dependencies>
      </profile>
    </profiles>

Thank you Laurent Desgranges and Boris Gonnot for your help.

Regards and happy testing,

- Pascal



#617 From: Pascal PRATMARTY <pascal.pratmarty@...>
Date: Thu Nov 26, 2009 8:57 pm
Subject: Re: Re: How to run UISpec4J testcase in Ant?
pratmartyp
Offline Offline
Send Email Send Email
 
Hi Shelly,

I'm not an Ant expert, so can't tell for sure where your problem is without experimenting directly, sorry :(

Here is what we did in a project I worked for:

        <junit printsummary="true" showoutput="true" failureproperty="test.fail" fork="true" forkmode="once">
            <formatter type="xml"/>
            <classpath refid="classpath-for-running-tests"/>
            <test todir="${location.report.junit}" name="com.mycompany.myproduct.UnitTestsSuite"/>
        </junit>

The class UnitTestsSuite is defined as follows:

public class UnitTestsSuite {
    public static TestSuite suite() throws Throwable {
        return createSuite("Unit Tests", "./src/test/");
    }
}

.... (utils methods)

    public static TestSuite createSuite(String title, String sourceRoot) throws ClassNotFoundException {

        TestSuite suite = new TestSuite();
        addTests(suite, sourceRoot, "**/*Test.java", null);
        suite.setName(title +" (" + suite.countTestCases() + " tests)");
        return suite;
    }

    public static void addTests(TestSuite suite, String sourceRoot, String filesToInclude, String filesToExclude) throws ClassNotFoundException {
        File projectRoot = new File(sourceRoot);
        DirectoryScanner scanner = new DirectoryScanner();
        scanner.setBasedir(projectRoot);
        final String[] includedTests = new String[]{filesToInclude};
        scanner.setIncludes(includedTests);
        if (filesToExclude != null) {
            scanner.setExcludes(new String[]{filesToExclude});
        }
        scanner.scan();
        String[] files = scanner.getIncludedFiles();
        for (int i = 0; i < files.length; i++) {
            String s = files[i];
            final String className = s.substring(0, s.length() - 5).replace(File.separatorChar, '.');
            suite.addTestSuite(Class.forName(className));
        }
    }

Hope this helps,

Cheers,

- Pascal



On Nov 17, 2009, at 5:57 AM, Shelley wrote:

hello,
the Ant script is as follows, and compile target is executed well, i can not figure out where the mistake is:

<target name="runjunit" depends="compile" description="Run junit tests and generate reports">
<mkdir dir="${report.html}" />
<mkdir dir="${report.xml}" />

<junit fork="true" forkmode="once" printsummary="withOutAndErr" errorproperty="test.error" showoutput="on">
<classpath>
<path refid="classpath" />

</classpath>
<formatter type="xml" />
<batchtest todir="${report.xml}" haltonfailure="no">
<fileset dir="${build.path}/trscase" includes="**/*Suite*.class">

</fileset>
</batchtest>
</junit>

</target>

Many thanks.
-Shelley



--- In uispec4j@yahoogroups.com, Pascal PRATMARTY <pascal.pratmarty@...> wrote:

Hi Shelley,

This is weird ; your tests should run fine with Ant.
Have you checked the test output (generated report files)? What does  
it tell?
If this does not help, can you please send the full Ant target  
definition, and more particularly the precise call made to the junit  
target?

Cheers,

- Pascal



On Nov 13, 2009, at 7:03 AM, Shelley wrote:

hi&#65306;
i'm trying to run UISpec4J testcase in Ant, but seem there are  
aways errors:
  [junit] Running mytest.abc.TestSuite
  [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
  [junit] Test mytest.abc.TestSuite FAILED

i wrapper all cases in a Test suite, which can be run manually in  
eclipse, but using Ant seems always failure...

anyone who have experienced this please give some comments.
thanks

-Shelley



------------------------------------

Yahoo! Groups Links








------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/uispec4j/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/uispec4j/join
   (Yahoo! ID required)

<*> To change settings via email:
   uispec4j-digest@yahoogroups.com
   uispec4j-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   uispec4j-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/



#616 From: "Shelley" <shelleyguo80@...>
Date: Tue Nov 17, 2009 4:57 am
Subject: Re: How to run UISpec4J testcase in Ant?
shelleyguo80
Offline Offline
Send Email Send Email
 
hello,
the Ant script is as follows, and compile target is executed well, i can not
figure out where the mistake is:

<target name="runjunit" depends="compile" description="Run junit tests and
generate reports">
		 <mkdir dir="${report.html}" />
		 <mkdir dir="${report.xml}" />

		 <junit fork="true" forkmode="once" printsummary="withOutAndErr"
errorproperty="test.error" showoutput="on">
			 <classpath>
				 <path refid="classpath" />

			 </classpath>
			 <formatter type="xml" />
			 <batchtest todir="${report.xml}" haltonfailure="no">
				 <fileset dir="${build.path}/trscase" includes="**/*Suite*.class">

				 </fileset>
			 </batchtest>
		 </junit>

	 </target>

Many thanks.
-Shelley



--- In uispec4j@yahoogroups.com, Pascal PRATMARTY <pascal.pratmarty@...> wrote:
>
> Hi Shelley,
>
> This is weird ; your tests should run fine with Ant.
> Have you checked the test output (generated report files)? What does
> it tell?
> If this does not help, can you please send the full Ant target
> definition, and more particularly the precise call made to the junit
> target?
>
> Cheers,
>
> - Pascal
>
>
>
> On Nov 13, 2009, at 7:03 AM, Shelley wrote:
>
> > hi&#65306;
> >  i'm trying to run UISpec4J testcase in Ant, but seem there are
> > aways errors:
> >    [junit] Running mytest.abc.TestSuite
> >    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> >    [junit] Test mytest.abc.TestSuite FAILED
> >
> > i wrapper all cases in a Test suite, which can be run manually in
> > eclipse, but using Ant seems always failure...
> >
> > anyone who have experienced this please give some comments.
> > thanks
> >
> > -Shelley
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>

#615 From: Laurent <laurent+uispec4j@...>
Date: Fri Nov 13, 2009 7:01 pm
Subject: Re: Do JUnit4 features supported in UISpec4J?
laurent+uispec4j@...
Send Email Send Email
 
Hi,

I use UISpec4J with JUnit 4. Since I was not able to use UISpecTestCase
(JUnit 3 class), what I did was to create my own abstract SwingTestCase
class doing mostly the same things as UISpecTestCase (ie. initializing
UISpec4J and resetting the display) but using Junit 4 annotations (@Before
and @After mainly). And then my test classes extend my SwingTestCase.
I don't have the class here so I can't show you the code, sorry.

HTH,

Laurent.

On Fri, 13 Nov 2009 19:27:26 +0100, Pascal PRATMARTY
<pascal.pratmarty@...> wrote:
> Hi Shelley,
>
> For now, UISpec4J does not use or define annotations, but I'm not sure
> this answers your question properly...
>
> The one thing to keep in mind is that UISpec4J is not a testing
> framework but a library: as such, is is intended to be used in the
> context of TestNG or JUnit (3.x or 4) tests.
>
> If you have elected JUnit 4 as your testing framework, you certainly
> can (and should) rely on annotations within your test classes
> (UISpec4J doesn't interfere in any manner with the JUnit test runner).
>
> Does this help?
>
> Cheers,
>
> - Pascal
>
>
>
> On Nov 13, 2009, at 8:38 AM, Shelley wrote:
>
>> HI all:
>>  i was trying to use JUnit4 features like annotations, but seen
>> uispec4J does not supports that and just ignores these annotations,
>> is that right?
>>
>> -Shelley

#614 From: Pascal PRATMARTY <pascal.pratmarty@...>
Date: Fri Nov 13, 2009 6:33 pm
Subject: Re: How to run UISpec4J testcase in Ant?
pratmartyp
Offline Offline
Send Email Send Email
 
Hi Shelley,

This is weird ; your tests should run fine with Ant.
Have you checked the test output (generated report files)? What does
it tell?
If this does not help, can you please send the full Ant target
definition, and more particularly the precise call made to the junit
target?

Cheers,

- Pascal



On Nov 13, 2009, at 7:03 AM, Shelley wrote:

> hi&#65306;
>  i'm trying to run UISpec4J testcase in Ant, but seem there are
> aways errors:
>    [junit] Running mytest.abc.TestSuite
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test mytest.abc.TestSuite FAILED
>
> i wrapper all cases in a Test suite, which can be run manually in
> eclipse, but using Ant seems always failure...
>
> anyone who have experienced this please give some comments.
> thanks
>
> -Shelley
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#613 From: Pascal PRATMARTY <pascal.pratmarty@...>
Date: Fri Nov 13, 2009 6:27 pm
Subject: Re: Do JUnit4 features supported in UISpec4J?
pratmartyp
Offline Offline
Send Email Send Email
 
Hi Shelley,

For now, UISpec4J does not use or define annotations, but I'm not sure
this answers your question properly...

The one thing to keep in mind is that UISpec4J is not a testing
framework but a library: as such, is is intended to be used in the
context of TestNG or JUnit (3.x or 4) tests.

If you have elected JUnit 4 as your testing framework, you certainly
can (and should) rely on annotations within your test classes
(UISpec4J doesn't interfere in any manner with the JUnit test runner).

Does this help?

Cheers,

- Pascal



On Nov 13, 2009, at 8:38 AM, Shelley wrote:

> HI all:
>  i was trying to use JUnit4 features like annotations, but seen
> uispec4J does not supports that and just ignores these annotations,
> is that right?
>
> -Shelley
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#612 From: "Shelley" <shelleyguo80@...>
Date: Fri Nov 13, 2009 6:03 am
Subject: How to run UISpec4J testcase in Ant?
shelleyguo80
Offline Offline
Send Email Send Email
 
hi&#65306;
   i'm trying to run UISpec4J testcase in Ant, but seem there are aways errors:
     [junit] Running mytest.abc.TestSuite
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] Test mytest.abc.TestSuite FAILED

i wrapper all cases in a Test suite, which can be run manually in eclipse, but
using Ant seems always failure...

anyone who have experienced this please give some comments.
thanks

-Shelley

#611 From: "Shelley" <shelleyguo80@...>
Date: Fri Nov 13, 2009 7:38 am
Subject: Do JUnit4 features supported in UISpec4J?
shelleyguo80
Offline Offline
Send Email Send Email
 
HI all:
   i was trying to use JUnit4 features like annotations, but seen uispec4J does
not supports that and just ignores these annotations, is that right?

-Shelley

#610 From: Pascal PRATMARTY <pascal.pratmarty@...>
Date: Sat Oct 31, 2009 7:43 pm
Subject: UISpec4J 2.1 is out!
pratmartyp
Offline Offline
Send Email Send Email
 
Dear UISpec4J users,

We are happy to announce the release of UISpec4J 2.1:



The most remarkable evolutions over UISpec4J 2.0 are the following:
- Added the possibility to fetch any customized components from Panel.findUIComponent instances (ExtensionGenerator now solely limited to add convenient, typed methods),
- Improved very much Key management through Key and KeyUtils classes. (Thanks to Michael Muthukrishna),
- Several other small improvements and new services added to the existing components.

You can read more about all the changes here:


Thanks again to Michael Muthukrishna, Laurent Desgranges and Boris Gonnot for contributing a number of these changes!

You can download the new JAR here:


The availability on Maven repositories should come soon.

Happy testing!

Régis & Pascal.



Messages 610 - 622 of 622   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help