I am trying to create a run through REST api, but because there are so many testcycls, the internal JDBC fails...
PUT http://SERVER/qcbin/rest/domains/DOMAIN/projects/PROJECT/runs
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Entity Type="run">
<Fields>
<Field Name="test-config-id"><Value>8901</Value></Field>
<Field Name="cycle-id"><Value>123</Value></Field>
<Field Name="test-id"><Value>4567</Value></Field>
<Field Name="testcycl-id"><Value>55638</Value></Field>
<Field Name="build-revision"><Value>1</Value></Field>
<Field Name="name"><Value>MyRun</Value></Field>
<Field Name="owner"><Value>johnsmith</Value></Field>
<Field Name="status"><Value>Passed</Value></Field>
<Field Name="subtype-id"><Value>hp.qc.run.external-test</Value></Field>
<Field Name="duration"><Value>5</Value></Field>
<Field Name="execution-date"><Value>2016-09-23</Value></Field>
<Field Name="execution-time"><Value>08:01:07</Value></Field>
<Field Name="status"><Value>Passed</Value></Field>
</Fields>
</Entity>
and the error is
"Id": "qccore.general-error", "Title": "Unexpected failure in getValuePostProcess", "ExceptionProperties": null, "StackTrace": "java.sql.SQLException: [Mercury][Oracle JDBC Driver][Oracle]ORA-01795: maximum number of expressions in a list is 1000\n\nFailed SQL: /* ~~QC */ SELECT TSC_NAME , TC_TESTCYCL_ID, TC_TEST_INSTANCE, TS_NAME FROM TESTCYCL INNER JOIN TEST_CONFIGS ON TC_TEST_CONFIG_ID = TSC_ID INNER JOIN TEST ON TC_TEST_ID = TS_TEST_ID WHERE TC_TESTCYCL_ID IN (1,2,3...54802)
Will there be any ways to get around this?
Add tags