17 require_once (
'../../../tests/fossologyTestCase.php');
18 require_once (
'../../../tests/TestEnvironment.php');
29 $this->assertTrue(file_exists(
'/home/fosstester/.bashrc'),
30 "OneShotgplv21Test FAILURE! .bashrc not found\n");
38 print
"starting OneShotgplv21Test\n";
39 $loggedIn = $this->mybrowser->get($URL);
40 $this->assertTrue($this->myassertText($loggedIn,
'/Upload/'),
41 "OneShotgplv21Test FAILED! Did not find Upload Menu\n");
42 $this->assertTrue($this->myassertText($loggedIn,
'/One-Shot Analysis/'),
43 "OneShotgplv21Test FAILED! Did not find One-Shot Analysis Menu\n");
45 $page = $this->mybrowser->get(
"$URL?mod=agent_nomos_once");
46 $this->assertTrue($this->myassertText($page,
'/One-Shot License Analysis/'),
47 "OneShotgplv21Test FAILED! Did not find One-Shot License Analysis Title\n");
48 $this->assertTrue($this->myassertText($page,
'/The analysis is done in real-time/'),
49 "OneShotgplv21Test FAILED! Did not find real-time Text\n");
51 $this->assertTrue($this->mybrowser->setField(
'licfile',
'/home/fosstester/licenses/gplv2.1'));
53 $this->assertTrue($this->mybrowser->clickSubmit(
'Analyze!'),
54 "FAILED! Count not click Analyze button\n");
56 $page = $this->mybrowser->getContent();
57 $this->assertTrue($this->myassertText($page,
'/LGPL_v2\.1/'),
58 "OneShotgplv21Test FAILED! Did not find exactly 'LGPL_v2.1'\n");
60 $this->assertTrue($this->myassertText($page,
'/One-Shot License Analysis/'),
61 "OneShotgplv21Test FAILED! Did not find One-Shot License Analysis Title\n");
63 $this->assertFalse($this->myassertText($page,
'/-partial/'),
64 "OneShotgplv21Test FAILED! Found -partial in a non partial license file\n");
Run one-shot license analysis on LGPL_v2.1 license.
setUp()
Setup the test cases and initialize the objects.
testOneShotgplv21()
Run NOMOS on GPL_v2.1 license.
Login($User=NULL, $Password=NULL)