question

kmd6076 avatar image
kmd6076 asked QiuxiangYang edited

iTest 4.3 - OnToolError executing REST GET

I just upgraded to iTest 4.3 (on Linux) and my REST test case that was executing successfully under 4.1.4 is now failing with 'OnToolError' when issuing the GET. Attached [link text][1]is the console output - for some reason TestReports are not being published. [1]: /storage/temp/3743-ontoolerror-console.txt
iTestresttest caseweb services
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

QiuxiangYang avatar image
QiuxiangYang answered QiuxiangYang edited
This maybe a iTest 4.3 bug, you can ask iTest support guys to report a bug. Or you can try the the workaround i.e. adding the missing headers in the REST session profile.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image
kmd6076 answered
The GET request in iTest 4.1 shows the Java HotSpot version where as the GET request in iTest 4.3 does not - it only shows the keepalive![alt text][1] text [1]: /storage/temp/3759-itest43-restpacket-stream.jpg

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

QiuxiangYang avatar image
QiuxiangYang answered
So, that is not a jre issue. Could you use wireshark or similar tools to capture the packets the REST session of bothe iTest 4.1 and 4.3 send and receive and then compare them to get the difference? This can help to further investigate the root cause.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

QiuxiangYang avatar image
QiuxiangYang answered kmd6076 commented
![alt text][1] [1]: /storage/temp/3754-itest-jre-version.jpg

itest-jre-version.jpg (178.1 KiB)
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image kmd6076 commented ·
iTest 4.3 does appear to be using the 4.1 java 1.6 JRE: java.vendor.url.bug= http://java.sun.com/cgi-bin/bugreport.cgi java.version=1.6.0_13 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) Client VM java.vm.specification.name=Java Virtual Machine Specification java.vm.specification.vendor=Sun Microsystems Inc. java.vm.specification.version=1.0 java.vm.vendor=Sun Microsystems Inc. java.vm.version=11.3-b02
0 Likes 0 ·
QiuxiangYang avatar image
QiuxiangYang answered QiuxiangYang edited
I am not sure if your configuration has become effective because your jvm is /home/kdoherty/iTest_4.1/jre/bin/ without javaw included . To Confirm this, you can open iTest Menu: Help->About iTest, in the dialog, click installation details, and then select configuration tab. Scroll down in the textbox ,you can see which jre version is in use. Please see the attach screenshot. If it is still jre7 in the dialog, please change the vm configuration to include javaw.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

QiuxiangYang avatar image
QiuxiangYang answered kmd6076 commented
Could you try launching iTest with jre 6.0 as currently iTest 4.3 is running on jre7. As we know, iTest is running on jre7 and iTest 4.1 is on jre6. You can add these two lines to iTest.ini before -vmargs(replace the java.exe path with your jre6 path): -vm D:/work/Java/jdk1.6.0_13/bin/javaw.exe
2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image kmd6076 commented ·
I still have the same OnToolError when running with the iTest_4.1 java environment. kdoherty@KD-iTest-VM ~/iTest43$ cat iTest.ini -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36x_v20100810 -vm /home/kdoherty/iTest_4.1/jre/bin/ -vmargs -Xmx384M -Dfile.encoding=UTF-8 -XX:PermSize=64M -XX:MaxPermSize=512M -Djava.awt.headless=true kdoherty@KD-iTest-VM ~/iTest43$
0 Likes 0 ·
kmd6076 avatar image kmd6076 commented ·
kdoherty@KD-iTest-VM ~/iTest43$ ls ../iTest_4.1/jre/bin/ ControlPanel java_vm jcontrol orbd policytool rmiregistry tnameserv java javaws keytool pack200 rmid servertool unpack200
0 Likes 0 ·
QiuxiangYang avatar image
QiuxiangYang answered kmd6076 commented
I just notice that there is an error log in the console: Message: HTTP Error: The target server failed to respond. It seems that the server is facing some issues. Could you check the server?
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image kmd6076 commented ·
The server is running ok, this same exact testcase runs successfully when executed from iTest 4.1.4
0 Likes 0 ·
vijaykumar avatar image
vijaykumar answered kmd6076 commented
In general OnToolError occurs when a test case step is executed before corresponding session is opened. Please give a try by adding sleep(10sec) command after Open step and execute the test case.
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image kmd6076 commented ·
I get the same result after executing the command with a 10 sec sleep between opening the session and issuing the GET
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.