app/Http/Controllers/Handlers/LabHandler.php
/**
	 * Delete Steps query by testcase id
	 *
	 * @return int
	 */
Delete Steps query by testcase id
@return int
Delete Steps query by testcase id @return int
public function createExecutionByStep($step, $tl_id, $execution_data)
	{ 
		$execution 				=  \App\Execution::where(['tc_id' => $step->tc_id, 'ts_id' => $step->ts_id])->get()->toArray();
		if(count ($execution) != 0)
		{
			$exe_data 						= $execution[0];
			$exe_data['e_id']				= $tl_id."_".$this->genrateRandomInt(8);
			$exe_data['tl_id']				= $tl_id;
			$exe_data['execution_result'] 	= '';
			$exe_data['checkpoint_result'] 	= '';
			$exe_data['executed_by'] 		= session()->get('email');
			$exe_data['executed_by_name'] 	= session()->get('name');
			unset($exe_data['created_at']);
			unset($exe_data['updated_at']);
			$created_exe 					= \App\Execution::create($exe_data);
			$execution_data['Test Step ID']					= $exe_data['e_id'];
			$execution_data['Test Step Description']		= $step->description;
			$execution_data['Step Result'] 					= '';
		}
		return $execution_data;
	}
public function createExecutionByStep ( $ step , $ tl_id , $ execution_data ) { $ execution = \ App \ Execution :: where ( [ 'tc_id' => $ step -> tc_id , 'ts_id' => $ step -> ts_id ] ) -> get ( ) -> toArray ( ) ; if ( count ( $ execution ) != 0 ) { $ exe_data = $ execution [ 0 ] ; $ exe_data [ 'e_id' ] = $ tl_id . " _ " . $ this -> genrateRandomInt ( 8 ) ; $ exe_data [ 'tl_id' ] = $ tl_id ; $ exe_data [ 'execution_result' ] = '' ; $ exe_data [ 'checkpoint_result' ] = '' ; $ exe_data [ 'executed_by' ] = session ( ) -> get ( 'email' ) ; $ exe_data [ 'executed_by_name' ] = session ( ) -> get ( 'name' ) ; unset ( $ exe_data [ 'created_at' ] ) ; unset ( $ exe_data [ 'updated_at' ] ) ; $ created_exe = \ App \ Execution :: create ( $ exe_data ) ; $ execution_data [ 'Test Step ID' ] = $ exe_data [ 'e_id' ] ; $ execution_data [ 'Test Step Description' ] = $ step -> description ; $ execution_data [ 'Step Result' ] = '' ; } return $ execution_data ; }
Delete Steps query by testcase id
 @return int
Delete Steps query by testcase id @return int