import requirements from xml file

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
fthierry
TestLink user
Posts: 3
Joined: Fri Jan 08, 2010 8:13 am

import requirements from xml file

Post by fthierry »

Hi,
we try to import our requirement from a xml file but we have an error even if we try with a file created by our testlink with the requirement export (to try if our xml format was the mistake) :

==============================================================================

DB Access Error - debug_print_backtrace() OUTPUT START

==============================================================================

#0 database->exec_query( /* Class:requirement_mgr - Method: getByDocID */ SELECT REQ.id,REQ.srs_id,REQ.req_doc_id,NH_REQ.name AS title, REQ_SPEC.testproject_id FROM testlink_requirements REQ /* .......
.......
testlink_user_group,[user_group_assign] => testlink_user_group_assign,[user_testplan_roles] => testlink_user_testplan_roles,[user_testproject_roles] => testlink_user_testproject_roles,[users] => testlink_users),[object_table] => testlink_req_specs)) called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\requirements\reqImport.php:53]

==============================================================================

==============================================================================

DB Access Error - debug_print_backtrace() OUTPUT START

==============================================================================

#0 database->exec_query(/* Class:tree - Method: _get_path */ SELECT * from testlink_nodes_hierarchy WHERE id = ) called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\functions\tree.class.php:412]
#1 tree->_get_path(, Array (), , full) called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\functions\tree.class.php:380]
#2 tree->get_path() called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\functions\tree.class.php:1148]
#3 tree->getTreeRoot() called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\functions\requirement_mgr.class.php:317]
#4 requirement_mgr->create(, SIHM-002
, frtserytr,
La barre de fenêtre contient le nom de la carte mentale ouverte.
, 1, , , 0, 0) called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\functions\requirement_mgr.class.php:1194]
#5 requirement_mgr->createFromXML(SimpleXMLElement Object ([docid] => SimpleXMLElement Object (),[title] => SimpleXMLElement Object (),[description] => SimpleXMLElement Object ()), 48, , 1) called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\requirements\reqImport.php:116]
#6 doExecuteImport(database Object ([db] => ADODB_mysql Object ([databaseType] => mysql,[dataProvider] => mysql,[hasInsertID] => 1,[hasAffectedRows] => 1,[metaTablesSQL] => SHOW TABLES,
....
......
testlink_testprojects,[testsuites] => testlink_testsuites,[text_templates] => testlink_text_templates,[transactions] => testlink_transactions,[user_assignments] => testlink_user_assignments,[user_group] => testlink_user_group,[user_group_assign] => testlink_user_group_assign,[user_testplan_roles] => testlink_user_testplan_roles,[user_testproject_roles] => testlink_user_testproject_roles,[users] => testlink_users),[object_table] => testlink_req_specs)) called at [C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\requirements\reqImport.php:53]

==============================================================================


Fatal error: Call to a member function RecordCount() on a non-object in C:\Program Files\EasyPHP-5.3.3\www\testlink\lib\functions\database.class.php on line 480

Thanks for any help

Best Regards

Fab
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: import requirements from xml file

Post by fman »

Post Reply