Преглед изворни кода

Automatic test to create 1000 PCs

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@827 a333f486-631f-4898-b8df-5754b55c2be0
romainq пре 14 година
родитељ
комит
88b408a5c2
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      pages/testlist.inc.php

+ 3 - 3
pages/testlist.inc.php

@@ -1507,12 +1507,13 @@ class TestImportREST extends TestWebServices
 ///////////////////////////////////////////////////////////////////////////
 // Test massive data load
 ///////////////////////////////////////////////////////////////////////////
+define('IMPORT_COUNT', 1000);
 
 class TestImportRESTMassive extends TestImportREST
 {
 	static public function GetName()
 	{
-		return 'CSV import (REST) - HUGE data set (20000 PCs)';
+		return 'CSV import (REST) - HUGE data set ('.IMPORT_COUNT.' PCs)';
 	}
 
 	static public function GetDescription()
@@ -1530,8 +1531,7 @@ class TestImportRESTMassive extends TestImportREST
 			),
 			'csvdata' => "name;org_id;brand\n",
 		);
-		$iMaxPC = 20000;
-		for($i = 0 ; $i <= $iMaxPC ; $i++)
+		for($i = 0 ; $i <= IMPORT_COUNT ; $i++)
 		{
 			$aLoadSpec['csvdata'] .= "pc.import.$i;2;Combodo\n";
 		}