Home » Archived » Jubula » Example Jubula Client Extension for the Swing component "JSlider"(Example Jubula Client Extension for the Swing component "JSlider" described in the book but don´t get nothing!)
| | | | | | |
Re: Example Jubula Client Extension for the Swing component "JSlider" [message #849927 is a reply to message #848855] |
Thu, 19 April 2012 15:31 |
Zeb Ford-Reitz Messages: 33 Registered: November 2010 |
Member |
|
|
Quote:what you mean with " starting Jubula with the parameters "-debug -consolelog" " , how make that?
You can do this when starting Jubula from the command line or from the Eclipse IDE. The command line is probably the easiest way:
1. In a command shell, navigate to the directory "<JubulaDirectory>/jubula".
2. Type the command (on Windows, for example) "jubula.exe -debug -consolelog".
It looks like you didn't need the -consolelog, as you were able to locate and include the log, but the -debug might be helpful.
I have never seen the error resulting from your 1st attempt (java.lang.IllegalArgumentException: Line does not contain at least 5 tokens), but it looks like you made an error editing your bundles.info file (as described in GUIdancer bug 337). Until you resolve this issue, Jubula cannot successfully load your extension.
I see no way that your 2nd try could work. Copying a directory with class files into the "plugins" directory of an Eclipse-based application will not add those classes as a plug-in, as far as I know. For one thing, the manifest wouldn't be present. I recommend fixing your bundles.info file and seeing if that solves the problem. If not, please post a log of the results here.
|
|
|
Re: Example Jubula Client Extension for the Swing component "JSlider" [message #849936 is a reply to message #849927] |
Thu, 19 April 2012 15:40 |
Zeb Ford-Reitz Messages: 33 Registered: November 2010 |
Member |
|
|
One more piece of information that I just noticed in the log...
The string that's causing problems in your bundles.info is "org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204181612,plugins/org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204181612.jar,4,false", which should probably be "org.eclipse.jubula.examples.extension.swing.toolkit,1.2.0.201204181612,plugins/org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204181612.jar,4,false" (note the first comma separating bundle symbolic name from bundle version).
Also note that the JAR location/name has to be accurate! If your bundle JAR is named "toolkit.jar", then that will need to be entered into your bundles.info file instead of "org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204181612.jar".
- Zeb
|
|
|
Re: Example Jubula Client Extension for the Swing component "JSlider" [message #850033 is a reply to message #849936] |
Thu, 19 April 2012 17:45 |
Ricardo Ferreira Messages: 6 Registered: April 2012 |
Junior Member |
|
|
Zeb, thanks for your feedback, i make again the 1 and 2 try
-------------------- 1 try ---------------
1º Problem - with a new genareted .jar of the toolkit
1 - This project don't compile, to compile I have to put in classpath the bundle org.eclipse.swt
plugin.xml -> Runtime -> classpath => ok
2
2.1 I left the original toolkitID Current name => toolkitID="com.bredexsw.guidancer.exampleSwingToolkitExtension"
2.2 Generate the new org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204191900.jar without export org.eclipse.swt width the toolkit
2.3 Add the org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204191900.jar in JubulaDirectory/Jubula/plugins/
3
cap 2.4 Where to put your Tester Classes
go to JubulaDirectory\examples\development\extension\bin
copy the org.eclipse.jubula.examples.extension.swing.rc.jar
to JubulaDirectory/server/lib/extImplClasses
4- Follow the workaround in the bug 337
go to JubulaDirectory\jubula\configuration\org.eclipse.equinox.simpleconfigurator
add in bundles.info the line
org.eclipse.jubula.examples.extension.swing.toolkit,1.2.0.201204191900,plugins/org.eclipse.jubula.examples.extension.swing.toolkit_1.2.0.201204191900.jar,4,false
5 IDE jubula open
Open "Help --> About --> Installation Details --> Plug-ins => the plugin is there => Great
like you said =>
"You should be able to verify that the new Component (JSlider) is available by specifying a Test Step and selecting JSlider from the list of available Component types.
If JSlider is not in the list, then the extension did not successfully add the Component."
yes I see JSlider component - Great
6 - STEP
Create a new Jubula Project => TestJSlider
choose toolkit => swing
AUT Name => AUT Test JSlider
AUT ID => AUT ID JSlider
Executable JAR File Name => JubulaDirectory\examples\development\extension\AUT\JSlider.jar
7
Create Test Case => TestJSlider
Create Test Suite => JSliderSuite
Add the Test Case(TestJSlider) to Test Suite(JSliderSuite)
crete a new Test Step(TestStep1) add that to Test Case(TestJSlider)
TestStep1
TYPE: JSlider
NAME: comp_name
ACTION: Check Existence
Start AUT Agent
Connect to AUT Agent - Connected
Sart AUT Test JSlider(AUT ID JSlider) - The JSlider Example AUT is running
So at this step I still have a error "Incomplete Object Mapping for AUT "JSlider AUT""
Start Object Mapping Mode - ok
But now I dont get no object to Map, Jubula don´t give me no object!
Unassigned component name
comp_name
Unassigned technical name
NOTHING !!!
there is nothing in the debug and no logs !!
what is missing ?
the problem is this JubulaDirectory\examples\development\extension\AUT\JSlider.jar ?
thanks.
-------------------- 2 try ----------------
1º Problem - with the org.eclipse.jubula.examples.extension.swing.toolkit-1.2.0-SNAPSHOT.jar that comes with jubula instalattion
1 - STEP
cap 2.2.1 Exporting the toolkit plugin to Jubula
step 9 and 10
go to JubulaDirectory\examples\development\extension\bin
copy the org.eclipse.jubula.examples.extension.swing.toolkit-1.2.0-SNAPSHOT.jar
to JubulaDirectory/Jubula/plugins/ folder
NOTE: if you open the org.eclipse.jubula.examples.extension.swing.toolkit-1.2.0-SNAPSHOT.jar the manifest file is there.
2 - STEP
cap 2.4 Where to put your Tester Classes
go to JubulaDirectory\examples\development\extension\bin
copy the org.eclipse.jubula.examples.extension.swing.rc.jar
to JubulaDirectory/server/lib/extImplClasses
3- Follow the workaround in the bug 337
go to JubulaDirectory\jubula\configuration\org.eclipse.equinox.simpleconfigurator
add in bundles.info the line
org.eclipse.jubula.examples.extension.swing.toolkit,1.2.0-SNAPSHOT,plugins/org.eclipse.jubula.examples.extension.swing.toolkit-1.2.0-SNAPSHOT.jar,4,false
that way the IDE Jubula give a error and don't open , I just change to
org.eclipse.jubula.examples.extension.swing.toolkit,1.2.0,plugins/org.eclipse.jubula.examples.extension.swing.toolkit-1.2.0-SNAPSHOT.jar,4,false
and now IDE Jubula open - Great !
The problem is that the plugin is not there !
Open "Help --> About --> Installation Details --> Plug-ins => the plugin is not here ! I should see in Plug-in Id org.eclipse.jubula.examples.extension.swing.toolkit
I started the IDE Jubula like you said "-debug -consolelog" , but no logs and nothing in the debug.
like you said =>
"You should be able to verify that the new Component (JSlider) is available by specifying a Test Step and selecting JSlider from the list of available Component types.
If JSlider is not in the list, then the extension did not successfully add the Component."
No I don´t see the JSlider component
so just to finish this try, can I use the .jar files that are in JubulaDirectory\examples\development\extension\bin ?
If I can, something is missing ?
|
|
| |
Goto Forum:
Current Time: Thu Sep 26 11:47:37 GMT 2024
Powered by FUDForum. Page generated in 0.05308 seconds
|