FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\Report\Test\SchedulerTest Class Reference

Test for unified report. More...

Inheritance diagram for Fossology\Report\Test\SchedulerTest:
Inheritance graph
Collaboration diagram for Fossology\Report\Test\SchedulerTest:
Collaboration graph

Public Member Functions

 setUp ()
 Setup test env.
 
 tearDown ()
 Tear down test env.
 
 testReport ()
 Test report agent. More...
 

Private Member Functions

 setUpRepo ()
 Setup test repo.
 
 rmRepo ()
 Tear down test repo.
 
 setUpTables ()
 Setup tables required by the agent.
 
 getHeartCount ($output)
 Get the heart count from agent.
 

Private Attributes

 $userId = 2
 
 $groupId = 2
 
 $testDb
 
 $dbManager
 
 $testInstaller
 
 $runnerCli
 

Detailed Description

Test for unified report.

Definition at line 41 of file schedulerTest.php.

Member Function Documentation

Fossology\Report\Test\SchedulerTest::testReport ( )

Test report agent.

Test:
  1. Generate report an upload
  2. Check if the DB is updated with new value
  3. Check if report file is created
  4. Check if report file size is close to test report
Todo:
Generate the test file and fix the test case

Definition at line 153 of file schedulerTest.php.

Member Data Documentation

DbManager Fossology\Report\Test\SchedulerTest::$dbManager
private

Db Manager object

Definition at line 59 of file schedulerTest.php.

int Fossology\Report\Test\SchedulerTest::$groupId = 2
private

Group id to be used

Definition at line 50 of file schedulerTest.php.

SchedulerTestRunnerCli Fossology\Report\Test\SchedulerTest::$runnerCli
private

The CLI interface for scheduler

Definition at line 67 of file schedulerTest.php.

TestPgDb Fossology\Report\Test\SchedulerTest::$testDb
private

Test db

Definition at line 55 of file schedulerTest.php.

TestInstaller Fossology\Report\Test\SchedulerTest::$testInstaller
private

Test installer object

Definition at line 63 of file schedulerTest.php.

int Fossology\Report\Test\SchedulerTest::$userId = 2
private

User id to be used

Definition at line 46 of file schedulerTest.php.


The documentation for this class was generated from the following file: