0

I'm using ota client java api to retrieve the test case details.

Can someone please explain how to get history record of each testcases from hpqc using OTA client for Java API. (using IHistoryRecord Interface).

Suhaib Janjua
  • 3,538
  • 16
  • 59
  • 73
  • OTA is basically written in .net, if you use vb/c# .net that would help you to write your code efficiently. – Gaurav Apr 28 '15 at 07:20
  • Can we get some more background over the problem. I have full experience working over OTAClient and communicating from java/.net. If you provide more details, it will help me in understanding issue. – Gaurav Apr 28 '15 at 07:22
  • Below are the snippets, Im getting the testcase info: List testCaselist; ITestFactory testFactory = (ITestFactory) conn.testFactory().queryInterface(ITestFactory.class); ITDFilter2 filter = testFactory.filter().queryInterface(ITDFilter2.class); if (filterSubject != null && !filterSubject.equals("")) filter.filter("TS_SUBJECT", filterSubject); IList testIList = filter.newList(); testCaselist = new ArrayList(); for (Com4jObject com4jObject : testIList) { ITest test = com4jObject.queryInterface(ITest.class); testCaseId = test.id().toString(); status = test.execStatus(); .....} – user2964638 May 05 '15 at 14:23
  • In the UI, There is a 'History' tab, there is a Baselines and Audit Log(FieldName, Old value, New Value....) information available for each test case, the same information I need to get through OTAClient Java API. Thanks, – user2964638 May 05 '15 at 14:24

0 Answers0