Contributions
getting 400 bad resuest as a raw response for REST API request
hi , this is my REST API raw request and getting 400 Bad Request response why ? plz help . POST https://wevet16742.ms.ds.uhc.com/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logon HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: application/json Content-Length: 118 Host: wevet16742.ms.ds.uhc.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) { "username":"scriptli3", "password":"D\}d/y2Hv57h~SF", "useRadiusAuthentication":"false", "connectionNumber":"1" } RAW RESPONSE: HTTP/1.1 400 Bad Request Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Content-Type: text/html Expires: -1 Set-Cookie: CA22222=; path=/PasswordVault/; secure; HttpOnly Set-Cookie: CA11111=; path=/PasswordVault/; secure; HttpOnly Set-Cookie: CA55555=; path=/PasswordVault/; secure Set-Cookie: CA33333=; path=/PasswordVault/; secure; HttpOnly Set-Cookie: mobileState=Desktop; path=/PasswordVault/; secure; HttpOnly X-FRAME-Options: SAMEORIGIN Strict-Transport-Security: max-age=3159600;includeSubdomains;preload X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-UA-Compatible: IE=EmulateIE8 Access-Control-Expose-Headers: Warning Strict-Transport-Security: max-age=31536000; includeSubDomains Date: Wed, 04 Dec 2019 09:12:28 GMT Content-Length: 1647 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Request Error</title> <style>BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; } A:link { color: #336699; font-weight: bold; text-decoration: underline; } A:visited { color: #6699cc; font-weight: bold; text-decoration: underline; } A:active { color: #336699; font-weight: bold; text-decoration: underline; } .heading1 { background-color: #003366; border-bottom: #336699 6px solid; color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal;margin: 0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top: 16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px; font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid; white-space: pre-wrap; white-space: -pre-wrap; word-wrap: break-word; } table { border-collapse: collapse; border-spacing: 0px; font-family: Verdana;} table th { border-right: 2px white solid; border-bottom: 2px white solid; font-weight: bold; background-color: #cecf9c;} table td { border-right: 2px white solid; border-bottom: 2px white solid; background-color: #e5e5cc;}</style> </head> <body> <div id="content"> <p class="heading1">Request Error</p> <p>The server encountered an error processing the request. See server logs for more details.</p> </div> </body> </html>929Views0likes1Comment,Using groovy script to run rest api test suite.How can i add delay between test test cases
Hi, i am using groovy script to run my REST API test suite and want to put delay for few test cases but not sure how and where.For Eg. test case name is verify password , reconcile password and verify password again. So want to put delay between reconcile password and verify password again Bz reconile password test case takes time to perform the reconcilation of password where we have to wait for 2-3 minutes atleast . Below is the groovy script that i m using : def testcases = testRunner.testCase.testSuite.getTestCaseList() // for all testCases in your test suite... testcases.each { testcase -> // for all testStep inside testCase... def teststeps = testcase.getTestStepList() mylist = ['https://wevet16742.ms.ds.uhc.com'] for(i in mylist) { teststeps.each { teststep -> teststep.setPropertyValue('endpoint',i) endpoint = teststep.getPropertyValue('endpoint') if(!teststep.getName().equalsIgnoreCase("RunAllTestCase")) { def r = teststep.run(testRunner, context) log.info(endpoint) log.info "RUNNING Service :: ${testcase.getName()} -> ${teststep.getName()}" log.info "RESULT :: ${r.getStatus()}" log.info "---------------------------------------------------------------" } } i++ } } thanks,2KViews0likes6CommentsSwagger
Hi, i havetested REST API using SOAP UI 5.4.0 and now want to use SWAGGER but not sure how to start , what should i installed SWAGGER HUB/SWAGGER OPEN SOURCE TOOL.I mean have to test or create the REST API USING SWAGGER. Kindly suggest what is needed .I am completely new to this .Is there any way to convert already created RSET API project to swagger or how to upload the project.810Views0likes0CommentsGetting bad request error
I am getting this below error , Kindly provide any solution. HTTP/1.1 400 Bad Request Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 Date: Wed, 14 Aug 2019 09:42:00 GMT Connection: close Content-Length: 311 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request</h2> <hr><p>HTTP Error 400. The request is badly formed.</p> </BODY></HTML>2.2KViews0likes2CommentsRe: Run Soap UI on Ubuntu/Linux
i m getting below error while running testrunner.sh "/my projects/my-project.xml": 2019-08-12 11:45:53,749 [main] WARN com.eviware.soapui.SoapUI - Could not find jfxrt.jar. Internal browser will be disabled. SoapUI 5.4.0 TestCase Runner Configuring log4j from [/opt/SoapUI-5.4.0/bin/soapui-log4j.xml] 11:45:54,037 INFO [DefaultSoapUICore] Creating new settings at [/root/soapui-settings.xml] 11:46:00,213 INFO [PluginManager] 0 plugins loaded in 7 ms 11:46:00,213 INFO [DefaultSoapUICore] All plugins loaded Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder at com.smartbear.analytics.impl.SoapUIOSMixpanelProviderFactory.allocateProvider(SoapUIOSMixpanelProviderFactory.java:39) at com.smartbear.analytics.AnalyticsManager.registerAnalyticsProviderFactory(AnalyticsManager.java:92) at com.eviware.soapui.analytics.AnalyticsHelper.initializeAnalytics(AnalyticsHelper.java:64) at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:335) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:202) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137) at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112) at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122) Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Decoder at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-internal/BuiltinClassLoader.java:366) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-internal/ClassLoaders.java:184) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) ... 8 more8.3KViews0likes1Comment