Skip to content

Commit

Permalink
-Refactoring PC plugin due to new dependency to "com.microfocus.adm.p…
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldanan committed Feb 13, 2018
1 parent 5c3db55 commit 07139a0
Show file tree
Hide file tree
Showing 54 changed files with 44 additions and 2,924 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -618,6 +618,12 @@
<artifactId>jersey-media-sse</artifactId>
<version>2.9</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.microfocus.adm.performancecenter/plugins-common -->
<dependency>
<groupId>com.microfocus.adm.performancecenter</groupId>
<artifactId>plugins-common</artifactId>
<version>1.0.1</version>
</dependency>

</dependencies>

Expand Down

This file was deleted.

Expand Up @@ -41,6 +41,8 @@

import org.kohsuke.stapler.DataBoundConstructor;

import com.microfocus.adm.performancecenter.plugins.common.pcEntities.*;

public class PcModel {

public static final String COLLATE = "Collate Results";
Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -53,7 +53,8 @@
import org.apache.commons.io.IOUtils;
import org.apache.http.client.ClientProtocolException;

import com.hpe.application.automation.tools.common.PcException;
import com.microfocus.adm.performancecenter.plugins.common.pcEntities.*;
import com.microfocus.adm.performancecenter.plugins.common.rest.PcRestProxy;
import com.hpe.application.automation.tools.model.PcModel;
import com.hpe.application.automation.tools.run.PcBuilder;

Expand All @@ -71,7 +72,7 @@ public PcClient(PcModel pcModel, PrintStream logger) {
if(model.getProxyOutURL(true) != null && !model.getProxyOutURL(true).isEmpty()){
logger.println("Using proxy: " + model.getProxyOutURL(true));
}
restProxy = new PcRestProxy(model.isHTTPSProtocol(),model.getPcServerName(true), model.getAlmDomain(true), model.getAlmProject(true),logger, model.getProxyOutURL(true),model.getProxyOutUser(true),model.getProxyOutPassword(true));
restProxy = new PcRestProxy(model.isHTTPSProtocol(),model.getPcServerName(true), model.getAlmDomain(true), model.getAlmProject(true), model.getProxyOutURL(true),model.getProxyOutUser(true),model.getProxyOutPassword(true));
this.logger = logger;
}catch (PcException e){
logger.println(e.getMessage());
Expand Down Expand Up @@ -155,7 +156,7 @@ private int getCorrectTestInstanceID(int testID) throws IOException, PcException
PcTestSets pcTestSets = restProxy.GetAllTestSets();
if (pcTestSets !=null && pcTestSets.getPcTestSetsList() !=null){
PcTestSet pcTestSet = pcTestSets.getPcTestSetsList().get(pcTestSets.getPcTestSetsList().size()-1);
int testSetID = pcTestSet.TestSetID;
int testSetID = pcTestSet.getTestSetID();
logger.println(String.format("Creating Test Instance with testID: %s and TestSetID: %s", testID,testSetID));
testInstanceID = restProxy.createTestInstance(testID,testSetID);
logger.println(String.format("Test Instance with ID : %s has been created successfully.", testInstanceID));
Expand Down

This file was deleted.

0 comments on commit 07139a0

Please sign in to comment.