This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17149 - Import of manifest file gives an array error
Summary: Import of manifest file gives an array error
Status: RESOLVED FIXED
Alias: None
Product: Testing
Classification: Unclassified
Component: Test Framework (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P3 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-22 14:22 UTC by Jeanne Spellman
Modified: 2012-05-24 01:38 UTC (History)
2 users (show)

See Also:


Attachments

Description Jeanne Spellman 2012-05-22 14:22:49 UTC
I am attempting to import a manifest file using the webUI at: 
http://w3c-test.org/framework/add/testcases/ATAG20-LC-20120410

The 8-field manifest file is at:
http://www.w3.org/WAI/AU/2012/ATAG20tests/ATAGmanifest20120522.txt

The documentation wasn't clear as to the file format it expected. I just took my spreadsheet and exported it as tab limited, " string, 8859-15 text. The filename defaulted to .csv, I manually changed it to .txt

When I entered the URI and hit submit, this is the first result:

*************************************************
WARNING: array_key_exists(): The first argument should be either a string or an integer File: /u/www.w3c-test.org/framework/util/TestCaseImport.php Line: 157 Context: Array ( [sectionId] => ) Args: #0 CmdLineWorker->errorHandler(2, array_key_exists(): The first argument should be either a string or an integer, /u/www.w3c-test.org/framework/util/TestCaseImport.php, 157, Array ([sectionId] => )) #1 array_key_exists(, Array ([1485] => 0,[1486] => 1485,[1487] => 1486,[1488] => 1487,[1489] => 1486,[1490] => 1489,[1491] => 1489,[1492] => 1485,[1493] => 1492,[1494] => 1493,[1495] => 1493,[1496] => 1492,[1497] => 1496,[1498] => 1496,[1499] => 1485,[1500] => 1499,[1501] => 1500,[1502] => 1500,[1503] => 1500,[1504] => 1500,[1505] => 1500,[1506] => 1500,[1507] => 1499,[1508] => 1507,[1509] => 1507,[1510] => 1507,[1511] => 1507,[1512] => 1499,[1513] => 1512,[1514] => 1499,[1515] => 1514,[1516] => 1514,[1517] => 1499,[1518] => 1517,[1519] => 1499,[1520] => 1519,[1521] => 1519,[1522] => 1519,[1523] => 1519,[1524] => 1499,[1525] => 1524,[1526] => 1524,[1527] => 1485,[1528] => 1527,[1529] => 1528,[1530] => 1528,[1531] => 1528,[1532] => 1527,[1533] => 1532,[1534] => 1532,[1535] => 0,[1536] => 1535,[1537] => 1536,[1538] => 1537,[1539] => 1537,[1540] => 1536,[1541] => 1540,[1542] => 1540,[1543] => 1540,[1544] => 1540,[1545] => 1535,[1546] => 1545,[1547] => 1546,[1548] => 1545,[1549] => 1548,[1550] => 1545,[1551] => 1550,[1552] => 1550,[1553] => 1550,[1554] => 1550,[1555] => 1545,[1556] => 1555,[1557] => 1555,[1558] => 1555,[1559] => 1555,[1560] => 1545,[1561] => 1560,[1562] => 1560,[1563] => 1535,[1564] => 1563,[1565] => 1564,[1566] => 1564,[1567] => 1564,[1568] => 1564,[1569] => 1564,[1570] => 1563,[1571] => 1570,[1572] => 1535,[1573] => 1572,[1574] => 1573,[1575] => 1573,[1576] => 1573,[1577] => 1573,[1578] => 1573,[1579] => 1572,[1580] => 1579,[1581] => 1579,[1582] => 1579,[1583] => 1579)) called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:157] #2 TestCaseImport->_getSectionParentId() called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:533] #3 TestCaseImport->import(http://www.w3.org/WAI/AU/2012/ATAG20tests/ATAGmanifest20120522.txt, ATAG20-LC-20120410, full) called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:1560] #4 AddChangePage->writeAddTestCases() called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:330] #5 AddChangePage->writeBodyContent() called at [/u/www.w3c-test.org/framework/core/Page.php:1558] #6 Page->writeHTMLBody() called at [/u/www.w3c-test.org/framework/core/Page.php:1438] #7 Page->writeHTML() called at [/u/www.w3c-test.org/framework/core/Page.php:1356] #8 Page->write() called at [/u/www.w3c-test.org/framework/core/Page.php:69] #9 Page::RunPage(AddChangePage) called at [/u/www.w3c-test.org/framework/addchange.php:23]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=

I tried it again in case I had messed up the settings:

2nd attempt error message:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: array_key_exists(): The first argument should be either a string or an integer File: /u/www.w3c-test.org/framework/util/TestCaseImport.php Line: 157 Context: Array ( [sectionId] => ) Args: #0 CmdLineWorker->errorHandler(2, array_key_exists(): The first argument should be either a string or an integer, /u/www.w3c-test.org/framework/util/TestCaseImport.php, 157, Array ([sectionId] => )) #1 array_key_exists(, Array ([1485] => 0,[1486] => 1485,[1487] => 1486,[1488] => 1487,[1489] => 1486,[1490] => 1489,[1491] => 1489,[1492] => 1485,[1493] => 1492,[1494] => 1493,[1495] => 1493,[1496] => 1492,[1497] => 1496,[1498] => 1496,[1499] => 1485,[1500] => 1499,[1501] => 1500,[1502] => 1500,[1503] => 1500,[1504] => 1500,[1505] => 1500,[1506] => 1500,[1507] => 1499,[1508] => 1507,[1509] => 1507,[1510] => 1507,[1511] => 1507,[1512] => 1499,[1513] => 1512,[1514] => 1499,[1515] => 1514,[1516] => 1514,[1517] => 1499,[1518] => 1517,[1519] => 1499,[1520] => 1519,[1521] => 1519,[1522] => 1519,[1523] => 1519,[1524] => 1499,[1525] => 1524,[1526] => 1524,[1527] => 1485,[1528] => 1527,[1529] => 1528,[1530] => 1528,[1531] => 1528,[1532] => 1527,[1533] => 1532,[1534] => 1532,[1535] => 0,[1536] => 1535,[1537] => 1536,[1538] => 1537,[1539] => 1537,[1540] => 1536,[1541] => 1540,[1542] => 1540,[1543] => 1540,[1544] => 1540,[1545] => 1535,[1546] => 1545,[1547] => 1546,[1548] => 1545,[1549] => 1548,[1550] => 1545,[1551] => 1550,[1552] => 1550,[1553] => 1550,[1554] => 1550,[1555] => 1545,[1556] => 1555,[1557] => 1555,[1558] => 1555,[1559] => 1555,[1560] => 1545,[1561] => 1560,[1562] => 1560,[1563] => 1535,[1564] => 1563,[1565] => 1564,[1566] => 1564,[1567] => 1564,[1568] => 1564,[1569] => 1564,[1570] => 1563,[1571] => 1570,[1572] => 1535,[1573] => 1572,[1574] => 1573,[1575] => 1573,[1576] => 1573,[1577] => 1573,[1578] => 1573,[1579] => 1572,[1580] => 1579,[1581] => 1579,[1582] => 1579,[1583] => 1579,[1584] => 0,[1585] => 0)) called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:157] #2 TestCaseImport->_getSectionParentId() called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:533] #3 TestCaseImport->import(http://www.w3.org/WAI/AU/2012/ATAG20tests/ATAGmanifest20120522.txt, ATAG20-LC-20120410, full) called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:1560] #4 AddChangePage->writeAddTestCases() called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:330] #5 AddChangePage->writeBodyContent() called at [/u/www.w3c-test.org/framework/core/Page.php:1558] #6 Page->writeHTMLBody() called at [/u/www.w3c-test.org/framework/core/Page.php:1438] #7 Page->writeHTML() called at [/u/www.w3c-test.org/framework/core/Page.php:1356] #8 Page->write() called at [/u/www.w3c-test.org/framework/core/Page.php:69] #9 Page::RunPage(AddChangePage) called at [/u/www.w3c-test.org/framework/addchange.php:23]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
Comment 1 Michael[tm] Smith 2012-05-24 01:38:24 UTC
I'm not sure what was causing the problem, but I think it could have been caused by the quotation marks around the field names. Because when I removed those from the manifest, I was able to do the import successfully:

  http://w3c-test.org/framework/suite/ATAG20-LC-20120410/

The manifest I used is here: http://people.w3.org/mike/tests/ATAGmanifest20120522.txt

If you find further problems, feel free to re-open this or just ping me.