anchor.diff:  	find /i /c "api http" "%flow_file%" > nul
   	if not errorlevel 1 set api= --web-security=false
   )
  +
  +rem delete sikuli visual automation integration files if they exist
  +if exist "tagui.sikuli\tagui_sikuli.in" del "tagui.sikuli\tagui_sikuli.in" 
  +if exist "tagui.sikuli\tagui_sikuli.out" del "tagui.sikuli\tagui_sikuli.out"
   
   rem check datatable csv file for batch automation
   set tagui_data_set_size=1 
  
positive.code: 	)
  )
  
  if %tagui_test_mode%==false (
  	casperjs "%flow_file%.js" %params%%api% | tee -a "%flow_file%.log"
  ) else (
  	casperjs test "%flow_file%.js" %params%%api% --xunit="%flow_file%.xml" | tee -a "%flow_file%.log"
  )
  
  )
  :break_for_loop
  
  
negative.code: 	set tagui_html_report=true
  )
  
  set tagui_upload_result=false
  rem check upload parameter to upload flow result to online storage
  if "%arg2%"=="upload" (
  	set arg2=
  	set tagui_upload_result=true
  )
  if "%arg3%"=="upload" (
  	set arg3=
  	set tagui_upload_result=true
  )
  if "%arg4%"=="upload" (
  	set arg4=
  	set tagui_upload_result=true
  )
  if "%arg5%"=="upload" (
  	set arg5=
  	set tagui_upload_result=true
  )
  if "%arg6%"=="upload" (
  	set arg6=
  	set tagui_upload_result=true
  )
  if "%arg7%"=="upload" (
  	set arg7=
  	set tagui_upload_result=true
  )
  if "%arg8%"=="upload" (
  	set arg8=
  	set tagui_upload_result=true
  )
  if "%arg9%"=="upload" (
  	set arg9=
  	set tagui_upload_result=true
  )
  
  rem concatenate parameters in order to fix issue when calling casperjs test
  rem $1 left out - filenames with spaces have issue when casperjs $params
  set params=%arg2% %arg3% %arg4% %arg5% %arg6% %arg7% %arg8% %arg9%
  