public class ConfigService extends Object
Modifier and Type | Method and Description |
---|---|
static Boolean |
compareqTestVersion(String qTestURL,
String qTestVersion)
Check whether it should save or not old config
|
static Object |
createTestSuite(String qTestUrl,
String accessToken,
Long projectId,
Long parentId,
String parentType,
String testSuiteName,
Long environmentParentId,
Long environmentId) |
static String |
formatTestSuiteLink(String url,
Long projectId,
Long testSuiteId)
Build testSuite link to qTest
|
static String |
getBuildVersion()
Get plugin version
|
static Object |
getConfiguration(Setting setting,
String qTestUrl,
String accessToken)
Get saved configuration from qTest
|
static Object |
getEnvironments(String qTestUrl,
String accessToken,
Long projectId)
Get environment values of testSuite
|
static String |
getErrorMessage(String body)
Parse error message from
ResponseEntity |
static Configuration |
getPluginConfiguration(AbstractProject project) |
static Object |
getProject(String qTestUrl,
String accessToken,
Long projectId) |
static Object |
getProjects(String qTestUrl,
String apiKey) |
static String |
getQtestInfo(String url) |
static Object |
getReleases(String qTestUrl,
String accessToken,
Long projectId) |
static String |
getServerId(String jenkinsUrl)
Get jenkins instance id, when cannot get server id, we try to get mac address and port.
|
static Object |
getTestCycleChildren(String qTestUrl,
String accessToken,
Long projectId,
Long parentId,
String parentType) |
static Object |
getTestSuiteChildren(String qTestUrl,
String accessToken,
Long projectId,
Long parentId,
String parentType) |
static Setting |
saveConfiguration(String qTestUrl,
String qTestApiKey,
Setting setting) |
static Boolean |
validateApiKey(String url,
String apiKey)
Validate apiKey is valid in qTest
|
static Configuration |
validateConfiguration(Configuration configuration,
net.sf.json.JSONObject formData)
Validate configuration from save or apply setting
|
static Boolean |
validateQtestUrl(String url)
Validate qTest Url
|
public static Boolean validateQtestUrl(String url)
url
- urlpublic static Boolean validateApiKey(String url, String apiKey)
url
- urlapiKey
- apiKeypublic static String formatTestSuiteLink(String url, Long projectId, Long testSuiteId)
url
- urlprojectId
- projectIdtestSuiteId
- testSuiteIdpublic static Configuration getPluginConfiguration(AbstractProject project)
public static Object getProjects(String qTestUrl, String apiKey)
qTestUrl
- qTestUrlapiKey
- apiKeypublic static Object getReleases(String qTestUrl, String accessToken, Long projectId)
qTestUrl
- qTestUrlaccessToken
- accessTokenprojectId
- projectIdpublic static Object getEnvironments(String qTestUrl, String accessToken, Long projectId)
qTestUrl
- qTestUrlaccessToken
- accessTokenprojectId
- projectIdpublic static Object getConfiguration(Setting setting, String qTestUrl, String accessToken)
setting
- settingqTestUrl
- qTestUrlaccessToken
- accessTokenpublic static Configuration validateConfiguration(Configuration configuration, net.sf.json.JSONObject formData)
configuration
- configurationformData
- formDataConfiguration
public static Setting saveConfiguration(String qTestUrl, String qTestApiKey, Setting setting) throws Exception
public static Boolean compareqTestVersion(String qTestURL, String qTestVersion)
qTestURL
- qTest URLqTestVersion
- version to comparepublic static String getBuildVersion()
public static String getErrorMessage(String body)
ResponseEntity
body
- bodypublic static String getServerId(String jenkinsUrl)
jenkinsUrl
- jenkinsUrlpublic static Object getTestCycleChildren(String qTestUrl, String accessToken, Long projectId, Long parentId, String parentType)
public static Object getTestSuiteChildren(String qTestUrl, String accessToken, Long projectId, Long parentId, String parentType)
Copyright © 2016–2024 QASymphony. All rights reserved.