Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20584

Undefined index: testprojectid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • testlink-plugin
    • None
    • jenkins 1.539
      testlink 1.9.8
      plugin 3.7

      After executing jenkins job the test results are OK on jenkins side:

      Test case ID Test case external ID Version Name Test project ID Execution status
      19 sbx-4 1 tl001 1 Passed

      However, it is not transferred to TestLink.
      The tail of the testlink log file contains:

      [>>][5284cdc1e1411435011601][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:18:57]
      [13/Nov/14 13:18:58][WARNING][<nosession>][GUI]
      E_NOTICE
      Undefined index: testprojectid - in D:\ext\wamp\www\testlink\lib\api\xmlrpc\v1\xmlrpc.class.php - Line 381
      [<<][5284cdc1e1411435011601][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:18:57][13/Nov/14 13:18:58][took 0.192646 secs]
      [>>][5284cdc22a3b3609338074][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:18:58]
      [13/Nov/14 13:18:58][WARNING][<nosession>][GUI]
      E_NOTICE
      Undefined index: testprojectid - in D:\ext\wamp\www\testlink\lib\api\xmlrpc\v1\xmlrpc.class.php - Line 381
      [13/Nov/14 13:18:58][WARNING][<nosession>][GUI]
      E_NOTICE
      Undefined index: keywords - in D:\ext\wamp\www\testlink\lib\functions\testplan.class.php - Line 6699
      [13/Nov/14 13:18:58][WARNING][<nosession>][GUI]
      E_NOTICE
      Undefined index: keywords - in D:\ext\wamp\www\testlink\lib\functions\testplan.class.php - Line 6728
      [<<][5284cdc22a3b3609338074][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:18:58][13/Nov/14 13:18:58][took 0.206036 secs]
      [>>][5284cdc26e9ca989224517][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:18:58]
      [13/Nov/14 13:18:58][WARNING][<nosession>][GUI]
      E_NOTICE
      Undefined index: testcaseexternalid - in D:\ext\wamp\www\testlink\lib\api\xmlrpc\v1\xmlrpc.class.php - Line 2996
      [<<][5284cdc26e9ca989224517][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:18:58][13/Nov/14 13:18:58][took 0.19771 secs]
      [>>][5284cdc4482b1050781380][DEFAULT][/testlink/lib/api/xmlrpc/v1/xmlrpc.php][13/Nov/14 13:19:00]
      [13/Nov/14 13:19:00][WARNING][<nosession>][GUI]
      E_NOTICE
      Undefined index: testprojectid - in D:\ext\wamp\www\testlink\lib\api\xmlrpc\v1\xmlrpc.class.php - Line 381

      I checked whether testprojectid is processed correctly.
      The following commands are included into the jenkins job:

      echo TESTLINK_TESTCASE_ID= %TESTLINK_TESTCASE_ID%
      echo TESTLINK_TESTCASE_NAME= %TESTLINK_TESTCASE_NAME%
      echo TESTLINK_TESTCASE_TESTSUITEID= %TESTLINK_TESTCASE_TESTSUITEID%
      echo TESTLINK_TESTCASE_TESTPROJECTID= %TESTLINK_TESTCASE_TESTPROJECTID%
      echo TESTLINK_TESTCASE_AUTHOR= %TESTLINK_TESTCASE_AUTHOR%
      echo TESTLINK_TESTCASE_SUMMARY= %TESTLINK_TESTCASE_SUMMARY%
      echo TESTLINK_BUILD_NAME= %TESTLINK_BUILD_NAME%
      echo TESTLINK_TESTPLAN_NAME= %TESTLINK_TESTPLAN_NAME%
      echo TESTLINK_TESTPROJECT_NAME= %TESTLINK_TESTPROJECT_NAME%
      echo TESTLINK_TESTCASE_PYTHON_CLASS= %TESTLINK_TESTCASE_PYTHON_CLASS%

      The result is:

      TESTLINK_TESTCASE_ID= 19
      TESTLINK_TESTCASE_NAME= tl001
      TESTLINK_TESTCASE_TESTSUITEID= null
      TESTLINK_TESTCASE_TESTPROJECTID= 1
      TESTLINK_TESTCASE_AUTHOR= null
      TESTLINK_TESTCASE_SUMMARY=
      TESTLINK_BUILD_NAME= Build Name
      TESTLINK_TESTPLAN_NAME= Test Plan 1
      TESTLINK_TESTPROJECT_NAME= Sandbox
      TESTLINK_TESTCASE_PYTHON_CLASS= lululu

      Thus, testprojectid was received by jenkins, but it is not returned back to testlink.
      What is the problem?

        1. tl001.py
          0.2 kB
        2. TEST-tl001.xml
          1 kB
        3. build.xml
          14 kB
        4. log
          7 kB
        5. screenshot-1.jpg
          screenshot-1.jpg
          159 kB
        6. screenshot-2.jpg
          screenshot-2.jpg
          227 kB
        7. screenshot-3.jpg
          screenshot-3.jpg
          248 kB

            kinow Bruno P. Kinoshita
            ab_ing A B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: