-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHPQCConnectionUtil.java
executable file
·44 lines (37 loc) · 1.24 KB
/
HPQCConnectionUtil.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package HPQC;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Properties;
import com4j.Com4jObject;
import hpqc.otaclient.ClassFactory;
import hpqc.otaclient.IAttachment;
import hpqc.otaclient.IAttachmentFactory;
import hpqc.otaclient.IBaseFactory;
import hpqc.otaclient.IDesignStep;
import hpqc.otaclient.IExtendedStorage;
import hpqc.otaclient.IList;
import hpqc.otaclient.IParam;
import hpqc.otaclient.IRun;
import hpqc.otaclient.IRunFactory;
import hpqc.otaclient.IStep;
import hpqc.otaclient.ISubjectNode;
import hpqc.otaclient.ITDConnection;
import hpqc.otaclient.ITDFilter;
import hpqc.otaclient.ITSTest;
import hpqc.otaclient.ITest;
import hpqc.otaclient.ITestSet;
import hpqc.otaclient.ITestSetFolder;
import hpqc.otaclient.ITestSetTreeManager;
public class HPQCConnectionUtil {
public static String genRunName() {
SimpleDateFormat format = new SimpleDateFormat("M-d_k-m-s");
return "Rftrun_" + format.format(new Date());
}
public static String genHostName() {
String hostName = System.getenv("COMPUTERNAME");
if (hostName == null) hostName = "";
return hostName;
}
}