app/Http/Controllers/Handlers/LabHandler.php
/**
	 * Delete Labs query by testcase id
	 *
	 * @return int
	 */
Delete Labs query by testcase id
@return int
Delete Labs query by testcase id @return int
public function createLabByCase($case, $tf_id, $scl_id, $excel_data)
	{  
		$tp_id = session()->get('open_project');  
		$lab['tl_id'] 				= $scl_id."_".$this->genrateRandomInt();  		 
		$lab['tp_id'] 				= $tp_id;	  		
		$lab['tc_id'] 				= $case['tc_id'];
		$lab['scl_id'] 				= $scl_id;		
		$lab['tf_id'] 				= $tf_id;
		$lab['tsc_id']				= $case['tsc_id'];	  		
		$lab['bug_id'] 				= '';
		$lab['tc_status'] 			= '';
		$lab['execution_type'] 		= '';
		$lab['executed_by'] 		= session()->get('email');
		$lab['executed_by_name']	= session()->get('name'); 
		$lab['executed_result'] 	= '';
		$lab['checkpoint_result'] 	= '';
		$lab['seq_no']				= $case['seq_no'];
		$lab['executed_filename'] 	= ''; 
		$lab['release_version']		= $excel_data['release_version'];
		$lab['os_version']			= $excel_data['os_version'];
		$lab['network_type']		= $excel_data['network_type'];
		$lab['device_name']			= $excel_data['device_name'];
		$c_lab 						=\App\Lab::create($lab);
		$excel_data['Test Case ID'] =  $lab['tl_id'];
   		$excel_data['Test Case Name'] = $case['tc_name'];
	    $excel_data['Test Case Description'] = $case['description'];
   		$excel_data['Case Result'] = '';
		return $excel_data;
	}
public function createLabByCase ( $ case , $ tf_id , $ scl_id , $ excel_data ) { $ tp_id = session ( ) -> get ( 'open_project' ) ; $ lab [ 'tl_id' ] = $ scl_id . " _ " . $ this -> genrateRandomInt ( ) ; $ lab [ 'tp_id' ] = $ tp_id ; $ lab [ 'tc_id' ] = $ case [ 'tc_id' ] ; $ lab [ 'scl_id' ] = $ scl_id ; $ lab [ 'tf_id' ] = $ tf_id ; $ lab [ 'tsc_id' ] = $ case [ 'tsc_id' ] ; $ lab [ 'bug_id' ] = '' ; $ lab [ 'tc_status' ] = '' ; $ lab [ 'execution_type' ] = '' ; $ lab [ 'executed_by' ] = session ( ) -> get ( 'email' ) ; $ lab [ 'executed_by_name' ] = session ( ) -> get ( 'name' ) ; $ lab [ 'executed_result' ] = '' ; $ lab [ 'checkpoint_result' ] = '' ; $ lab [ 'seq_no' ] = $ case [ 'seq_no' ] ; $ lab [ 'executed_filename' ] = '' ; $ lab [ 'release_version' ] = $ excel_data [ 'release_version' ] ; $ lab [ 'os_version' ] = $ excel_data [ 'os_version' ] ; $ lab [ 'network_type' ] = $ excel_data [ 'network_type' ] ; $ lab [ 'device_name' ] = $ excel_data [ 'device_name' ] ; $ c_lab = \ App \ Lab :: create ( $ lab ) ; $ excel_data [ 'Test Case ID' ] = $ lab [ 'tl_id' ] ; $ excel_data [ 'Test Case Name' ] = $ case [ 'tc_name' ] ; $ excel_data [ 'Test Case Description' ] = $ case [ 'description' ] ; $ excel_data [ 'Case Result' ] = '' ; return $ excel_data ; }
Delete Labs query by testcase id
 @return int
Delete Labs query by testcase id @return int
//Create a test lab for each test case execution //.".xls";