Skip to content

Instantly share code, notes, and snippets.

View sjethvani's full-sized avatar

Sameer Jethvani sjethvani

View GitHub Profile
@sjethvani
sjethvani / MergeTestNgXmlsAfterRetryingFailingTests
Created September 7, 2017 07:24
Java Program to generate consolidated testng-results.xml from two executions (Normal execution testng-results.xml & Rerun failing tests execution testng-results.xml)
package com.mergeTestNgXml;
import java.util.List;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
C:\Users\sjethvani>jps
7364 Jps
2460 -- process information unavailable
3060 GradleWrapperMain
C:\Users\sjethvani>jstack 3060
2016-08-23 11:13:37
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode):
"File lock request listener" prio=6 tid=0x0000000013c82000 nid=0x1ef8 runnable [