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#

Monday, November 13, 2017

Running the same Job with different parameter in parallel execution

In the Jenkins, sometimes we want to trigger the same job for different environment or different browsers at the same time, rather than in sequence. How to do it ?

It is pretty easy! In the Jenkins job configuration page, there is a checkbox named "Execute concurrent builds if necessary".   Once you enable this checkbox, you can trigger your job with different parameters parallel. So simple! enjoy!