app/Http/Controllers/Handlers/StoreQueryHandler.php
/**
	 * add Execution steps query
	 *
	 * @return int
	 */
add Execution steps query
@return int
add Execution steps query @return int
public function addExecution($e_id, $request, $content)
	{  
		try{  
			$execution_content['scroll']		= $request->scroll;
	        $execution_content['resource_id']	= $request->resource_id;
	        $execution_content['text']			= $request->text;
	        $execution_content['content_desc']	= $request->content_desc;
	        $execution_content['class']			= $request->class;
	        $execution_content['index']			= $request->index;
	        $execution_content['sendkey']		= $request->sendkeys;
	        $execution_content['screenshot']	= $request->screenshot;
	        $execution_content['checkpoint']	= $request->checkpoint;
	        $execution_content['wait']			= $request->wait;
	        $execution_content['tc_id']			= $request->tc_id;
	        $execution_content['tp_id']			= $content['tp_id'];
	        $execution_content['ts_id']			= $content['ts_id'];
	        $execution_content['tl_id']			= 0;
	        $execution_content['seq_no']		= $content['seq_no'];
	        $execution_content['e_id']			= $e_id;
	        $create 							= \App\Execution::create($execution_content);
		}catch(Exception $e)
		{
			return 0;
		}
		return 1;
	}
public function addExecution ( $ e_id , $ request , $ content ) { try { $ execution_content [ 'scroll' ] = $ request -> scroll ; $ execution_content [ 'resource_id' ] = $ request -> resource_id ; $ execution_content [ 'text' ] = $ request -> text ; $ execution_content [ 'content_desc' ] = $ request -> content_desc ; $ execution_content [ 'class' ] = $ request -> class ; $ execution_content [ 'index' ] = $ request -> index ; $ execution_content [ 'sendkey' ] = $ request -> sendkeys ; $ execution_content [ 'screenshot' ] = $ request -> screenshot ; $ execution_content [ 'checkpoint' ] = $ request -> checkpoint ; $ execution_content [ 'wait' ] = $ request -> wait ; $ execution_content [ 'tc_id' ] = $ request -> tc_id ; $ execution_content [ 'tp_id' ] = $ content [ 'tp_id' ] ; $ execution_content [ 'ts_id' ] = $ content [ 'ts_id' ] ; $ execution_content [ 'tl_id' ] = 0 ; $ execution_content [ 'seq_no' ] = $ content [ 'seq_no' ] ; $ execution_content [ 'e_id' ] = $ e_id ; $ create = \ App \ Execution :: create ( $ execution_content ) ; } catch ( Exception $ e ) { return 0 ; } return 1 ; }
add Execution steps query
 @return int
add Execution steps query @return int