Waiting for execution completion

Waiting for execution completion

Postby John » Fri Feb 05, 2010 11:22 am

Hi,

I have created some JUnit tests (example see below) and I want to start them from Zephyr. A added the following information to the test case:

Automated: yes
Name: SearchPet
ID: TC_SearchPet
Path: java junit.textui.TestRunner swql.tec.junit.jps.SearchPet

The command (path) works on the command line. I have added all necessary classes and jars to the CLASSPATH. If I execute the test case with Zephyr, ZBOT will never complete. It reports the following information to the field "ZBot Real-time status":

34: SearchPet STATUS: Waiting for execution completion

Do you have an idea what happens?

John



Code: Select all
package swql.tec.junit.jps;

import java.util.Random;
import junit.framework.JUnit4TestAdapter;
import junit.framework.TestCase;
import org.junit.Test;

public class SearchPet extends TestCase {   
   @Test
   public void testSimpleSearch() {
      assertTrue((new Random()).nextBoolean());
   }
      
   public static junit.framework.Test suite () {
      return new JUnit4TestAdapter(SearchPet.class);
   }
}
John
 
Posts: 6
Joined: Wed Feb 03, 2010 9:31 am

Re: Waiting for execution completion

Postby issam.bandak » Fri Feb 05, 2010 2:03 pm

Hi John,

When running things from Zephyr specially when there are environment variables (such as classpath) to be accessed you would need to define those at the system level so all users have access to them when running scripts. Or you can try adding the classpath to the Script path as well with the -cp argument to java.

Also make sure that you put the full path to where java.exe is installed as part of the Script path. ie: c:\progra~1\Java\jre6\bin\java.exe junit.textui.TestRunner swql.tec.junit.jps.SearchPet

The Zbot also has a logfile that might shed some light on any error messages of what's going on.

Hope this helps..

Regards,
issam.bandak
Site Admin
 
Posts: 76
Joined: Wed Aug 29, 2007 3:24 pm

Re: Waiting for execution completion

Postby John » Sat Feb 06, 2010 6:00 am

Hi,

Thank you for your answer. I don't think that the classpath ist the problem. Even if that's the problem, as I understand, ZBot just triggers a process and returns the error code of the process. In the case of an incorrect classpath variable, ZBot would trigger the Java process, the Java process ends imediatelly (because of non found classes) and the process ends. This happens within 1 second. But my ZBot waits already for almost 1 day with this "ZBot Real-time status": ".... Waiting for execution completion".

John
John
 
Posts: 6
Joined: Wed Feb 03, 2010 9:31 am

Re: Waiting for execution completion

Postby issam.bandak » Sat Feb 06, 2010 11:41 am

John,

Have you checked the ZBot log files to see what messages are in there when you execute the script.

You can also send the logfile to our support folks (support@getzephyr.com) to analyze and troubleshoot the issue with you.

Regards,
issam.bandak
Site Admin
 
Posts: 76
Joined: Wed Aug 29, 2007 3:24 pm

Re: Waiting for execution completion

Postby John » Tue Feb 09, 2010 3:06 pm

Hi,

This is the log of my ZBot. I run two test cases successfully. But I can't run another one because Zephyr reports in the field "ZBot Real-time status" the message "...Waiting for execution completion".


INFO | jvm 1 | srvmain | 2010/02/09 22:56:57 | updateAgentStatus to ... Batch execution starting...
INFO | jvm 1 | srvmain | 2010/02/09 22:56:57 | 09.02.2010 22:56:57 com.thed.launcher.ScriptProcessor run
INFO | jvm 1 | srvmain | 2010/02/09 22:56:57 | INFO: START: execute script: TestcaseExecution: id:null tcID:34 name:SearchByCategory scriptId:TC_SearchByCategory scriptPath:java junit.textui.TestRunner swql.tec.junit.jps.SearchByCategory releaseTestScheduleId:64 scrambleId: thTbIF2mHn4= status:
INFO | jvm 1 | srvmain | 2010/02/09 22:56:57 | 09.02.2010 22:56:57 com.thed.launcher.DefaultZBotScriptLauncher testcaseExecutionRun
INFO | jvm 1 | srvmain | 2010/02/09 22:56:57 | INFO: about to run script with path: java junit.textui.TestRunner swql.tec.junit.jps.SearchByCategory
INFO | jvm 1 | srvmain | 2010/02/09 22:57:02 | 09.02.2010 22:57:02 com.thed.agent.ZephyrAgent execute
INFO | jvm 1 | srvmain | 2010/02/09 22:57:02 | INFO: multiThreading off, processor already in progress. pingOnly
INFO | jvm 1 | srvmain | 2010/02/09 22:57:02 | 09.02.2010 22:57:02 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:02 | INFO: Checking payload ...7F3D3AE0-6A0C-2C76-7A8A-62085375D4C0
INFO | jvm 1 | srvmain | 2010/02/09 22:57:02 | 09.02.2010 22:57:02 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:02 | INFO: checkPayLoad || Response ok
INFO | jvm 1 | srvmain | 2010/02/09 22:57:07 | 09.02.2010 22:57:07 com.thed.agent.ZephyrAgent execute
INFO | jvm 1 | srvmain | 2010/02/09 22:57:07 | INFO: multiThreading off, processor already in progress. pingOnly
INFO | jvm 1 | srvmain | 2010/02/09 22:57:07 | 09.02.2010 22:57:07 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:07 | INFO: Checking payload ...7F3D3AE0-6A0C-2C76-7A8A-62085375D4C0
INFO | jvm 1 | srvmain | 2010/02/09 22:57:07 | 09.02.2010 22:57:07 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:07 | INFO: checkPayLoad || Response ok
INFO | jvm 1 | srvmain | 2010/02/09 22:57:13 | 09.02.2010 22:57:12 com.thed.agent.ZephyrAgent execute
INFO | jvm 1 | srvmain | 2010/02/09 22:57:13 | INFO: multiThreading off, processor already in progress. pingOnly
INFO | jvm 1 | srvmain | 2010/02/09 22:57:13 | 09.02.2010 22:57:12 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:13 | INFO: Checking payload ...7F3D3AE0-6A0C-2C76-7A8A-62085375D4C0
INFO | jvm 1 | srvmain | 2010/02/09 22:57:13 | 09.02.2010 22:57:12 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:13 | INFO: checkPayLoad || Response ok
INFO | jvm 1 | srvmain | 2010/02/09 22:57:18 | 09.02.2010 22:57:17 com.thed.agent.ZephyrAgent execute
INFO | jvm 1 | srvmain | 2010/02/09 22:57:18 | INFO: multiThreading off, processor already in progress. pingOnly
INFO | jvm 1 | srvmain | 2010/02/09 22:57:18 | 09.02.2010 22:57:17 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:18 | INFO: Checking payload ...7F3D3AE0-6A0C-2C76-7A8A-62085375D4C0
INFO | jvm 1 | srvmain | 2010/02/09 22:57:18 | 09.02.2010 22:57:18 com.thed.agent.ZephyrAgent checkPayLoad
INFO | jvm 1 | srvmain | 2010/02/09 22:57:18 | INFO: checkPayLoad || Response ok
John
 
Posts: 6
Joined: Wed Feb 03, 2010 9:31 am


Return to General Questions

cron