MarketSquare / SwingLibrary

Swing UI testing library for Robot Framework
Other
113 stars 68 forks source link

Unable to launch Swing application to be tested through Robot Framework in Java #154

Closed Zarmeena closed 2 years ago

Zarmeena commented 3 years ago

I am using Robot Framework with Java and need to automate testing of swing applications. Have added the following dependencies and plugin in pom.xml:

    <dependency>
    <groupId>org.robotframework</groupId>
    <artifactId>robotframework</artifactId>
    <version>4.0.3</version>
</dependency>

<dependency>
    <groupId>org.robotframework</groupId>
    <artifactId>swinglibrary</artifactId>
   <version>2.2.2</version>
</dependency>

<plugin> 
  <groupId>org.robotframework</groupId>
  <artifactId>robotframework-maven-plugin</artifactId>
  <version>1.4.6</version>
    <executions>
      <execution>
          <goals>
            <goal>run</goal>
          </goals>
      </execution>
    </executions>  
</plugin>

Swing application (SUT) is invoked if I have the application in same project. But does not invoke for external jars added to build path. Attached the Robot Script for reference Test_Case_3.txt

Please let me know how to invoke external swing application for testing

mihaiparvu commented 2 years ago

Did you try to add the external jars to CLASSPATH system variable?

rticau commented 2 years ago

No updates so closing.