Friday, August 31, 2018

Robot Framework merge output files and generate a new log and report file

 we can use rebot command to merge multiple output xml file and generate a new log and report files.


  1. for convenience, put all of output.xml file in to one folder, e.g C:\output_1.xml, C:\output_2.xml ...
  2. use command parameters:
    • --outputdir  :: this is for your final result located. 
    • --merge   :: this is for merging all output files. 
    • --output :: this is for the merged final output file 
    • -  :: this is for generating new log file
    • - :: this is for generating new report file
  3. final command should be like this
C:\>rebot --outputdir c:\result --merge --output final_output.xml, -l final_log.html -r final_report.html output_1.xml output_2.xml, output_3.xml


the final results file, final_output.xml, final_log.html and final_report.html will be generated in the folder c:\result.

Done!!!

Monday, March 12, 2018

How to kill a process when you only know the process is running with some port number



Suppose you know the process is running with port 4723, but in the Task manager window, you are not sure which process is it.  So you can do the followings:

  1. Open Command Prompt with Administrator
  2.  Enter the command like this:  netstat -ano | findstr :#yourport#
  3. Then you will get the process’s Pid
  4. Now you have two ways to kill it:   
  • back to the Task Manager and find it with the PID and kill it. 
  • But, sometimes, even you get the PID number, but you cannot find it  from the Task Manager window. So at this time, you need to using the following command through the Command Prompt.  In the Command Prompt window Enter the command like this : taskkill /f /pid #pid#