Variable declaration in a javascript class
Hi, Can we declare global variables within a javascipt class, outside a function? When I try to declare a variable, it gives error: Syntax Error: Unexpected identifier Sample code: class Test { var abc; //received above error var abc = "Test"; //received above error let def; //received above error function1() { //some code here var abcd = "New"; //works fine here } Please suggest how I can create variables outside the functions in this scenario. Thanks!Solved29KViews0likes2CommentsInvalid UTF-8 start byte 0xa0
I am not able to fix the below issue in ReadyAPI - Invalid UTF-8 start byte 0xa0.Getting this error message in response. However same request payload is working in Postman. { "replyHeader" : { "rqUID" : null, "transactionRequestTs" : null, "responseTs" : "2022-01-14T08:24:16.645811-05:00" }, "modifiedRequest" : null, "quoteNumber" : null, "policyNumber" : null, "premium" : null, "errorMessages" : [ { "code" : "E010", "desc" : "Invalid UTF-8 start byte 0xa0" } ], "infoMessages" : null, "legalDisclaimer" : null }Solved22KViews0likes2CommentsSOAP UI - Basic Authentication - where do I find it in Server Code?
I have a SOAP Server written in PHP - and am Testing using SOAP UI. Everything works fine and returns results as expected. I am now trying to add in Basic Authentication - have set up in SOAP UI with Username and Password - BUT can't find how to check it in the Server code? I was expecting the credentials to be in the [SERVER] object passed to the server - but they are not. Can anyone help and advise how I check these items? Thanks PhilSolved12KViews0likes11CommentsHow to create html file in groovy script and how to use dynamic values from response to html code
How to create html file in groovy script and how to use dynamic values from response to html code Basic HTML code in groovy will be little helpful for me and dynamically need to change value in html code which I will get from API responses Please respond anything is fine Thanks in advance AlexKaras Marsha_R @richieSolved8.1KViews0likes7CommentsReadyAPI - Dynamic POST using .xml files or using .csv file that are saved in the directory
I am using ReadyAPI (SOAPUI) POST method. I would like to POST content from an external file. 1) In the media type drop down I select application/xml ORapplication/json 2) And in the area where we put the actual payload, I would like to use the external file path so that content of that extenral file can be read and gets Send via POST method. Is above achievable? I can see it can be done for SOAP requests as per -https://www.soapui.org/docs/data-driven-tests/using-files.html BUT i am not sure if its possible to it for REST Request for POST method. I have been googling for days but can't find a solution so any help would be much appreciated. Basically my need is that i will have a bunch of XML payloads created at the given directory which i will need to send via POST method. I know how to make it data driven using DataSource/Loop but not sure if i can send POST request that exists as an external file. I hope i have explained the question correctly. Any further questions please let me know. Thanks for your help in advance.Solved8.1KViews0likes9CommentsComparing table data in IF not working
Hello, I have this weird problem were everything seems correct but TC isn't doing the correct steps. I have a data driven loop, and I am going to check if the product number is a specific product, and it should do the steps I want. This has worked in the past, not sure why it stopped working. In the image below, in the blue box, the product number is filled in - this is correct. For the sake of testing, I added the yellow box - these also give and store the correct values. The problem is in the red box, for some unknown reason it just skips the if. Below is a small snippet of the test log, and you can see that the log action provided the correct product number. Also, you can see that the text in the textbox is also the correct value. And lastly a screenshot of the if itself. Can anybody help me notice the issue? Thanks in advance. LuukSolved7.9KViews0likes28Commentsjava.sql.SQLException : ORA-12269: client uses weak encryption/crypto-checksumming version
I am getting following error while building query (Data Connection) in ReadyAPI (3.5.1): java.sql.SQLException : ORA-12269: client uses weak encryption/crypto-checksumming version but no such error I get while executing same query on SQL Developer for the same connection. Any particular reason why this is happening and what can be done to resolve this issue?Solved7.7KViews0likes3CommentsHow to extract the access token from the 'Auth' tab and transfer it to the other requests in header?
I want to get the generated Access Token from the Auth tab and use it as a property for other tests. (Require to pass the access Tokens as the header for all the test steps). I want to avoid doing it manually for all the test steps. Is it possible for me to achieve that? Note: The access Tokens are not generated in the response. I'm using OAuth 2.0 and the tokens are getting generated in the Auth Tab. Attached is the screenshot for more reference.Solved6.9KViews0likes15Comments=,& characters are replacing with special Character
Request type -GET While reading &and =from excel and passing it as query parameter in SOAP UI for then value "&" ,"=" are replacing with %3Dand%26 character and due to that i am not geting correct response ,So could anyone help me out over here to resolve this issue ?Solved6.9KViews0likes6Comments