/** * Insert testing data into the database * * @return none */ function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1024, 1768); $window->setSize($size); $this->DB->insert("tarchive", array('DicomArchiveID' => '9999999999', 'PatientID' => '9999999999', 'PatientName' => 'TestTestTest', 'PatientDoB' => '1900-01-01', 'PatientGender' => 'M', 'neurodbCenterName' => 'NULL', 'CenterName' => 'Mc Gill University', 'LastUpdate' => '2014-05-30 13:49:36', 'DateAcquired' => '2010-11-25', 'DateFirstArchived' => '2014-05-30 13:47:11', 'DateLastArchived' => '2014-05-30 13:49:36', 'AcquisitionCount' => '166', 'NonDicomFileCount' => '0', 'DicomFileCount' => '881', 'md5sumDicomOnly' => '5.150346.tar', 'md5sumArchive' => '5.150346.tar', 'CreatingUser' => 'lorisadmin', 'sumTypeVersion' => '1', 'tarTypeVersion' => '1', 'SourceLocation' => '/tmp/bEu0Q_egfA/5.150346', 'ArchiveLocation' => '2010/DCM5.150346.tar', 'ScannerManufacturer' => 'SIEMENS', 'ScannerModel' => 'TrioTim', 'ScannerSerialNumber' => '35056', 'ScannerSoftwareVersion' => 'syngo MR B15', 'SessionID' => '44', 'uploadAttempt' => '0', 'CreateInfo' => 'NULL')); }
/** * Insert testing data * * @return void */ public function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1024, 1768); $window->setSize($size); $this->DB->insert("psc", array('CenterID' => '9999999', 'Name' => 'TEST_Site', 'Study_site' => 'Y', 'StateID' => '0', 'Alias' => 'DDD', 'MRI_alias' => 'TESTTEST')); }
/** * Does basic setting up of Loris variables for this test,after testing * a test data, remove the testing data from database. * * @return none */ public function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1024, 1768); $window->setSize($size); $this->DB->insert("document_repository_categories", array('id' => '9999999', 'category_name' => 'TESTTESTTESTTEST', 'parent_id' => '0', 'comments' => 'Test Comment')); $this->DB->insert("document_repository", array('record_id' => '9999999', 'Date_uploaded' => '2016-05-16 15:34:35', 'Data_dir' => 'admin/README.md', 'File_name' => 'README.md', 'File_type' => 'NULL', 'File_size' => '3305', 'uploaded_by' => 'admin', 'For_site' => '3', 'comments' => 'tester', 'multipart' => 'NULL', 'EARLI' => '0', 'hide_video' => '0', 'File_category' => '9999999')); }
/** * Insert testing data * * @return void */ public function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1024, 768); $window->setSize($size); $this->DB->insert("psc", array('CenterID' => '55', 'Name' => 'TESTinPSC', 'Alias' => 'test', 'MRI_alias' => 'test')); $this->DB->insert("candidate", array('CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'PSCID' => '8888', 'ProjectID' => '7777')); $this->DB->insert("session", array('ID' => '111111', 'CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'MRIQCStatus' => 'Pass', 'SubprojectID' => '6666', 'Visit' => 'In Progress')); $this->DB->insert("candidate", array('CandID' => '999999', 'CenterID' => '55', 'UserID' => '1', 'PSCID' => '8889', 'ProjectID' => '7777')); $this->DB->insert("session", array('ID' => '111112', 'CandID' => '999999', 'CenterID' => '55', 'UserID' => '1', 'MRIQCStatus' => 'Pass', 'SubprojectID' => '6666', 'Visit' => 'In Progress')); $this->DB->insert("participant_accounts", array('SessionID' => '111111', 'Email' => '*****@*****.**', 'Test_name' => 'Test', 'Status' => 'In Progress', 'OneTimePassword' => 'Test')); }
/** * Insert testing data * * @return void */ public function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1024, 768); $window->setSize($size); $this->DB->insert("psc", array('CenterID' => '55', 'Name' => 'TESTinPSC', 'Alias' => 'test', 'MRI_alias' => 'test')); $this->DB->insert("candidate", array('CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'PSCID' => '8888', 'ProjectID' => '7777')); $this->DB->insert("session", array('CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'MRIQCStatus' => 'Pass', 'SubprojectID' => '6666')); $this->DB->insert("mri_protocol_violated_scans", array('ID' => '1001', 'CandID' => '999888', 'PatientName' => '[Test]PatientName', 'time_run' => '2009-06-29 04:00:44', 'minc_location' => 'assembly/test/test/mri/test/test.mnc', 'series_description' => 'Test Series Description', 'SeriesUID' => '5555')); $this->DB->insert("mri_protocol_violated_scans", array('ID' => '1002', 'CandID' => '999888', 'PatientName' => '[Test]PatientName', 'time_run' => '2008-06-29 04:00:44', 'minc_location' => 'assembly/test2/test2/mri/test2/test2.mnc', 'series_description' => 'Test Series Description', 'SeriesUID' => '5556')); $this->DB->insert("violations_resolved", array('ExtID' => '1001', 'TypeTable' => 'mri_protocol_violated_scans', 'Resolved' => 'other')); $this->DB->insert("violations_resolved", array('ExtID' => '1002', 'TypeTable' => 'MRICandidateErrors', 'Resolved' => 'unresolved')); $this->DB->insert("MRICandidateErrors", array('ID' => '1002', 'PatientName' => '[Test]PatientName', 'MincFile' => 'assembly/test2/test2/mri/test2/test2.mnc', 'SeriesUID' => '5556')); }
/** * Insert testing data * * @return void */ public function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1280, 720); $window->setSize($size); $this->DB->insert("psc", array('CenterID' => '55', 'Name' => 'TESTinPSC', 'Alias' => 'test', 'MRI_alias' => 'test')); $this->DB->insert("candidate", array('CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'PSCID' => '8888', 'ProjectID' => '7777', 'Gender' => 'Male')); $this->DB->insert("candidate", array('CandID' => '999889', 'CenterID' => '55', 'UserID' => '1', 'PSCID' => '8889', 'ProjectID' => '7777', 'Gender' => 'Female')); $this->DB->insert("session", array('ID' => '111111', 'CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'MRIQCStatus' => 'Pass', 'SubprojectID' => '6666')); $this->DB->insert("session", array('ID' => '111112', 'CandID' => '999889', 'CenterID' => '55', 'UserID' => '1', 'MRIQCStatus' => 'Pass', 'SubprojectID' => '6666')); $this->DB->insert("reliability", array('ID' => '111111112', 'CommentID' => 'testCommentID1', 'Instrument' => 'testInstrument')); $this->DB->insert("reliability", array('ID' => '111111113', 'CommentID' => 'testCommentID2', 'Instrument' => 'testInstrument')); $this->DB->insert("test_names", array('ID' => '111111113', 'Test_name' => 'test_name')); $this->DB->insert("flag", array('ID' => '111111111', 'SessionID' => '111111', 'CommentID' => 'testCommentID1', 'Test_name' => 'test_name')); $this->DB->insert("flag", array('ID' => '111111112', 'SessionID' => '111112', 'CommentID' => 'testCommentID2', 'Test_name' => 'test_name')); }
/** * Setup the screen size of Travis-cs * * @return void */ function setUp() { parent::setUp(); $window = new WebDriverWindow($this->webDriver); $size = new WebDriverDimension(1280, 1024); $window->setSize($size); //Insert a pending user $this->DB->insert("users", array('UserID' => 'testUser1', 'Email' => '*****@*****.**', 'Password' => 'AA1234567!', 'CenterID' => '1', 'Password_expiry' => '2020-01-06')); //Insert two violation scan $this->DB->insert("psc", array('CenterID' => '55', 'Name' => 'TESTinPSC', 'Alias' => 'test', 'MRI_alias' => 'test')); $this->DB->insert("candidate", array('CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'PSCID' => '8888', 'ProjectID' => '7777', 'Entity_type' => 'Human')); $this->DB->insert("session", array('ID' => '222222', 'CandID' => '999888', 'CenterID' => '55', 'UserID' => '1', 'MRIQCStatus' => 'Pass', 'SubprojectID' => '6666')); $this->DB->insert("mri_protocol_violated_scans", array('ID' => '1001', 'CandID' => '999888', 'PatientName' => '[Test]PatientName', 'time_run' => '2009-06-29 04:00:44', 'minc_location' => 'assembly/test/test/mri/test/test.mnc', 'series_description' => 'Test Series Description', 'SeriesUID' => '5555')); $this->DB->insert("mri_protocol_violated_scans", array('ID' => '1002', 'CandID' => '999888', 'PatientName' => '[Test]PatientName', 'time_run' => '2008-06-29 04:00:44', 'minc_location' => 'assembly/test2/test2/mri/test2/test2.mnc', 'series_description' => 'Test Series Description', 'SeriesUID' => '5556')); $this->DB->insert("violations_resolved", array('ExtID' => '1001', 'TypeTable' => 'mri_protocol_violated_scans', 'Resolved' => 'other')); $this->DB->insert("violations_resolved", array('ExtID' => '1002', 'TypeTable' => 'MRICandidateErrors', 'Resolved' => 'unresolved')); $this->DB->insert("MRICandidateErrors", array('ID' => '1002', 'PatientName' => '[Test]PatientName', 'MincFile' => 'assembly/test2/test2/mri/test2/test2.mnc', 'SeriesUID' => '5556')); //Insert an incomplete form data $this->DB->insert("test_names", array('ID' => '111', 'Test_name' => 'TestName11111111111')); $this->DB->insert("flag", array('ID' => '111111', 'SessionID' => '222222', 'Test_name' => 'TestName11111111111', 'CommentID' => 'commentID111', 'Data_entry' => 'In Progress')); //Insert a demo data into conflicts_unresolved $this->DB->insert("conflicts_unresolved", array('TableName' => 'TestTestTest', 'ExtraKeyColumn' => 'Test', 'ExtraKey1' => 'Null', 'ExtraKey2' => 'Null', 'FieldName' => 'TestTestTest', 'CommentId1' => '963443000111271151398976899', 'Value1' => 'no', 'CommentId2' => 'DDE_963443000111271151398976899', 'Value2' => 'no')); }