Output: response.getStatusLine() :: HTTP/1.1 200 OK Status Code : 200. You can vote up the ones you like or vote down the ones you dont like, and go to the original project or source file by following the links above each example. I believe the lookup to the Eureka Service is a via another RestTemplate.doExecute(). The following examples show how to use .HttpContext. Since: 4. use getStatusCode () to get only execution code. A RestTemplate.doExecute() on Source Service A-POSTS-> Dest Service B the application key Dest-Service-B is stored in Eureka which should respond with a valid service URL. .ClientProtocolException All Implemented Interfaces: Serializable Direct Known Subclasses: HttpResponseException public class ClientProtocolException extends IOException Signals an error in the HTTP protocol. getStatusLine () method returns StatusLine object which holds the status of the request. ClientProtocolException: Unexpected response status: 403Īt (JiraUtil.java:293)Īt (JiraUtil.java:246)Īt step_(Hooks.java:190)Īt 0(Native Method)Īt (NativeMethodAccessorImpl.java:62)Īt (DelegatingMethodAccessorImpl.java:43)Īt .invoke(Method.java:498)Īt $1.call(Utils.java:40)Īt (Timeout.java:16)Īt (Utils.java:34)Īt .execute(JavaHookDefinition.java:60)Īt (Runtime.java:224)Īt (Runtime.java:212)Īt (Runtime.java:206)Īt .run(CucumberScenario.java:46)Īt .run(CucumberScenarioOutline.java:46)Īt .run(CucumberFeature.java:165)Īt .runCucumber(TestNGCucumberRunner.java:63)Īt .feature(AbstractTestNGCucumberTests.java:21)Īt .invokeMethod(MethodInvocationHelper.java:85)Īt .invokeMethod(Invoker.java:659)Īt .invokeTestMethod(Invoker.java:845)Īt .invokeTestMethods(Invoker.java:1153)Īt .invokeTestMethods(TestMethodWorker.java:125)Īt .run(TestMethodWorker.java:108)Īt (TestRunner.java:771)Īt (TestRunner.java:621)Īt (SuiteRunner.java:357)Īt (SuiteRunner.java:352)Īt (SuiteRunner.java:310)Īt (SuiteRunner.java:259)Īt (SuiteRunnerWorker.java:52)Īt (SuiteRunnerWorker.java:86)Īt (TestNG.java:1199)Īt (TestNG.java:1124)Īt (TestNG.java:1032)Īt .(TestNGExecutor.java:281)Īt .(TestNGXmlTestSuite.java:75)Īt .(TestNGProvider.java:121)Īt .(ForkedBooter.java:290)Īt .(ForkedBooter.java:242)Īt .(ForkedBooter. The returned response type of which allows us to get the status of execution of the request. I recently renewed my Jira licence after getting expired, and my existing code to update test case execution in cycles fails with following error. I have verified my test id and it has not changed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |