phpDocumentor Testlink
[ class tree: Testlink ] [ index: Testlink ] [ all elements ]

Procedural File: requirements.inc.php

Source Location: /requirements.inc.php

Page Details
Includes
require_once ("print.inc.php") [line 24]

TestLink Open Source Project - http://testlink.sourceforge.net/ This script is distributed under the GNU General Public License 2 or later.

Information Tags:
Author:  

Martin Havlat <havlat@users.sourceforge.net>

Functions for support requirement based testing

Revisions:

20090304 - franciscom - BUGID 2171 20081103 - sisajr - DocBook XML import 20070710 - franciscom - BUGID 939 20070705 - franciscom - improved management of arrReqStatus 20070617 - franciscom - removed include of deprecated file 20070310 - franciscom - changed return type createRequirement()

Version:  $Revision: 1.1.2.1 $
[ Top ]


Constants
DOCBOOK_LIST_ITEM  [line 360]

DOCBOOK_LIST_ITEM = "listitem"

[ Top ]

DOCBOOK_ORDERED_LIST  [line 359]

DOCBOOK_ORDERED_LIST = "orderedlist"

[ Top ]

DOCBOOK_PARAGRAPH  [line 358]

DOCBOOK_PARAGRAPH = "para"

[ Top ]

DOCBOOK_REQUIREMENT  [line 356]

DOCBOOK_REQUIREMENT = "sect3"

Constants used for parsing DocBook XML files


[ Top ]

DOCBOOK_TABLE  [line 361]

DOCBOOK_TABLE = "informaltable"

[ Top ]

DOCBOOK_TABLE_BODY  [line 364]

DOCBOOK_TABLE_BODY = "tbody"

[ Top ]

DOCBOOK_TABLE_ENTRY  [line 366]

DOCBOOK_TABLE_ENTRY = "entry"

[ Top ]

DOCBOOK_TABLE_GROUP  [line 362]

DOCBOOK_TABLE_GROUP = "tgroup"

[ Top ]

DOCBOOK_TABLE_HEAD  [line 363]

DOCBOOK_TABLE_HEAD = "thead"

[ Top ]

DOCBOOK_TABLE_ROW  [line 365]

DOCBOOK_TABLE_ROW = "row"

[ Top ]

DOCBOOK_TITLE  [line 357]

DOCBOOK_TITLE = "title"

[ Top ]


Functions
check_syntax  [line 792]

void check_syntax( $fileName, $importType  )
Parameters:
   $fileName: 
   $importType: 


[ Top ]
check_syntax_csv  [line 844]

void check_syntax_csv( $fileName  )
Parameters:
   $fileName: 


[ Top ]
check_syntax_csv_doors  [line 855]

void check_syntax_csv_doors( $fileName  )
Parameters:
   $fileName: 


[ Top ]
check_syntax_xml  [line 828]

void check_syntax_xml( $fileName  )
Parameters:
   $fileName: 


[ Top ]
compareImportedReqs  [line 191]

void compareImportedReqs( $arrImportSource, $map_cur_reqdoc_id  )
Parameters:
   $arrImportSource: 
   $map_cur_reqdoc_id: 


[ Top ]
doImport  [line 570]

void doImport( &$db, $userID, $idSRS, $fileName, $importType, $emptyScope, $conflictSolution, $bImport  )
Parameters:
   &$db: 
   $userID: 
   $idSRS: 
   $fileName: 
   $importType: 
   $emptyScope: 
   $conflictSolution: 
   $bImport: 


[ Top ]
executeImportedReqs  [line 129]

array_of_strings executeImportedReqs( &$db, $arrImportSource, $map_cur_reqdoc_id, $conflictSolution, $emptyScope, $idSRS, $userID  )

Process CVS file contents with requirements into TL

and creates an array with reports

Parameters:
   &$db: 
   $arrImportSource: 
   $map_cur_reqdoc_id: 
   $conflictSolution: 
   $emptyScope: 
   $idSRS: 
   $userID: 

API Tags:
Return:  list of particular REQ data with resolution comment


[ Top ]
exportReqDataToCSV  [line 601]

void exportReqDataToCSV( $reqData  )
Parameters:
   $reqData: 


[ Top ]
exportReqDataToXML  [line 106]

void exportReqDataToXML( $reqData  )

exportReqDataToXML

Parameters:
   $reqData: 


[ Top ]
getDocBookTableAsHtmlString  [line 377]

void getDocBookTableAsHtmlString( $docTable  )

Parses one 'informaltable' XML entry and produces HTML table as string.

XML relationship: informaltable -> tgroup -> thead -> row -> entry -> tbody -> row -> entry

20081103 - sisajr

Parameters:
   $docTable: 


[ Top ]
getLastExecutions  [line 757]

void getLastExecutions( &$db, $tcaseSet, $tplanId  )
Parameters:
   &$db: 
   $tcaseSet: 
   $tplanId: 


[ Top ]
getReqByReqdocId  [line 782]

void getReqByReqdocId( &$db, $reqdoc_id  )
Parameters:
   &$db: 
   $reqdoc_id: 


[ Top ]
getReqCoverage  [line 612]

void getReqCoverage( &$dbHandler, $reqs, &$execMap  )

getReqCoverage

Parameters:
   &$dbHandler: 
   $reqs: 
   &$execMap: 


[ Top ]
getReqDocIDs  [line 216]

void getReqDocIDs( &$db, $srs_id  )
Parameters:
   &$db: 
   $srs_id: 


[ Top ]
get_srs_by_id  [line 866]

void get_srs_by_id( &$db, $srs_id  )
Parameters:
   &$db: 
   $srs_id: 


[ Top ]
importReqDataFromCSV  [line 275]

void importReqDataFromCSV( $fileName  )

importReqDataFromCSV

Parameters:
   $fileName: 


[ Top ]
importReqDataFromCSVDoors  [line 308]

void importReqDataFromCSVDoors( $fileName  )

importReqDataFromCSVDoors

Parameters:
   $fileName: 


[ Top ]
importReqDataFromDocBook  [line 451]

void importReqDataFromDocBook( $fileName  )

Imports data from DocBook XML

20081103 - sisajr

Parameters:
   $fileName: 


[ Top ]
importReqDataFromXML  [line 326]

void importReqDataFromXML( $fileName  )
Parameters:
   $fileName: 


[ Top ]
loadImportedReq  [line 240]

array_of_array loadImportedReq( $CSVfile, $importType  )

load imported data from file and parse it to array

Parameters:
   $CSVfile: 
   $importType: 

API Tags:
Return:  each inner array include fields title and scope (and more)


[ Top ]
renderRequirements  [line 77]

void renderRequirements( &$db, integer $srs_id  )

render Requirement for SRS

Parameters:
integer   $srs_id: 
   &$db: 

Information Tags:
Author:  Martin Havlat 20051125 - scs - added escaping of req names 20051202 - scs - fixed 241

[ Top ]
renderSRS  [line 44]

void renderSRS( &$db, &$tproject_mgr, integer $srs_id, string $tproject_name, string $tproject_id, string $user_id, string $base_href  )

render Requirement Specification

Parameters:
integer   $srs_id: 
string   $tproject_name: 
string   $tproject_id: 
string   $user_id: 
string   $base_href: 
   &$db: 
   &$tproject_mgr: 

Information Tags:
Author:  Martin Havlat

[ Top ]


Documentation generated on Fri, 03 Apr 2009 14:13:48 +0200 by phpDocumentor 1.4.1