ContributionsMost RecentMost LikesSolutionsRe: How can I find a web element using class name Hi, You wont be able to use a search pattern in this case as className property does not exist in any of the search patterns. The work around for this is as below IEnumerable<IWebElement> panelObjects = page.FindAll<IWebElement>(new WebCellElementPattern { objectType = "Panel" }, 1000,3000) IWebObject myPanelObject = panelObjects.Where(l => l.GetProperty<string>("className").Contains("yourclassname")) You can filter the object with class name you want using LINQ on the collection panelObjects . Re: ReadyAPI response appending zeroes after decimal and also printing fields values as hexadecimal Hi , My apologies,I was offline for some time now as I have moved to a different organisation now and have no access to my previous work email which I have used to log a support ticket to this issue. Also I have encountered this issue when I have upgraded the version of ReadyAPI to the latest one and don't remember getting this issue on the older version of it. Also I have not tried ,if this issue actually reflects and affects in assertions.As I cannot access the previously used environment anymore ,I wont be able to answer much of the questions related to this topicand my apologies for that. Re: ReadyAPI response appending zeroes after decimal and also printing fields values as hexadecimal Hi Guys, My apologies,I was offline for some time now as I have moved to a different organisation now and have no access to my previous work email which I have used to log a support ticket to this issue. Also I have encountered this issue when I have upgraded the version of ReadyAPI to the latest one and don't remember getting this issue on the older version of it. Also I have not tried ,if this issue actually reflects and affects in assertions.As I cannot access the previously used environment anymore ,I wont be able to answer much of the questions related to this topicand my apologies for that. Re: ReadyAPI response appending zeroes after decimal and also printing fields values as hexadecimal Hi, I am attaching the screenshots of API called in Postman and ReadyAPI. they both are exactly the same API's with same input parameters,exactly same environments and no extra logic has been applied in either of them. Has anyone had this kind of experience before or am I missing any setup in ReadyAPI which is causing this. Can someone please share some knowledge. cheers, Bharadwaj. Re: ReadyAPI response appending zeroes after decimal and also printing fields values as hexadecimalHi, I haven't used any properties its a simple RestAPI get call. If you notice the outcome of both postman and ReadyAPI(2 attached files) you will notice the difference in output. I am not sure why this should happen. In your comment you mentioned you got the same output. Sorry I couldnot understand how you executed the rest API endpoint.Re: ReadyAPI response appending zeroes after decimal and also printing fields values as hexadecimalHi Lucian Its a Rest API Call which does a http Get and I am looking the response in the JSON response tab as well as in groovy script and its the same at both places. Cheers BharadwajReadyAPI response appending zeroes after decimal and also printing fields values as hexadecimal Hi I am running a Rest API in both ReadyAPI (pro version of SoapUI) and also in postman. The response pattern in json in postman valid while in ReadyAPI for some fields zeroes are appended after decimal value even for a integer type field like for example "PackSize": 60 (this is in postman which is right) "PackSize" : 60.0000000000000000 (this is in ReadyAPI response which is incorrect) Also for some fieldsvalues are returned as hex decimal pattern for example "PrivateTax" : 0E-16 (this is in ReadyAPI which is incorrect) "PrivateTax": 0(this is in postman which is right) I have attached json files of the responses in both postman and ReadyAPI for your reference. Am I missing any setting in ReadyAPI which is causing this issue The version of ReadyAPI I am using isReadyAPI 2.3.0 Build Date: 2018-03-06T16:28:42Z(433) cheers, Bharadwaj Re: Parsing a simple SOAPUI JSON Response in Groovy Thanks PaulMS Parsing a simple SOAPUI JSON Response in Groovy Hi Guys, I am new to Soap UI and Groovy. I am looking to develop a generic function in Groovy which takes a SOAPUI rest response which is a JSON ,access all the objects in it and print it on to the console,something like the code below, I have searched google but could not get much help ,I found the solution as described below, but it really did not help my cause Solution found on slack overflow Requirement 1 : A generic groovy function to print any rest API JSON response as key value pairs on to the console. Please Note : I have no idea of field names inside the JSON response before hand,so the example I gave below won't work in my case. Requirement 2 : Read the Rest API JSON response into a groovy collection(Map if possible or some kind of generic collection) and again iterate through that collection and access it as key value pairs. static void PrintJSONResponse(String jsonResponse) { //parse the response def map = new groovy.json.JsonSlurper().parse(new File('Test.json')) //iterate through the response and print the key value pairs in the response map.each { key, value -> println "$key : $value" //this code generates error for the json file I have attached } //the above code generates errors as below,so how to achieve this? } Wed Feb 14 10:47:08 AEDT 2018:ERROR:An error occurred [No signature of method: Script41$_run_closure1.doCall() is applicable for argument types: (groovy.json.internal.LazyMap) values: [[bar:true, foo:42]] Possible solutions: doCall(java.lang.Object, java.lang.Object), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)], see error log for details I have executed this code and got the result but the issue is I want a generic function,as I have no idea what the contents(field names inside the response) of the response json are. So my requirement is no matter what ever json response I pass it the function should parse all the objects and print them as key ,value pairs (please fins the sample json file attached) def map = new groovy.json.JsonSlurper().parse(new File('D:/Work/AQA/APIAutomation/DataFiles/Expected Data JSON Files/Test.json')) map.each { log.info "Name : "+it.name log.info "ID : " + it.uid } Wed Feb 14 11:26:49 AEDT 2018:INFO:Name : Bob Wed Feb 14 11:26:49 AEDT 2018:INFO:ID : 10512213 Wed Feb 14 11:26:49 AEDT 2018:INFO:Name : John Wed Feb 14 11:26:49 AEDT 2018:INFO:ID : 7208201 Wed Feb 14 11:26:49 AEDT 2018:INFO:Name : Jim Wed Feb 14 11:26:49 AEDT 2018:INFO:ID : 10570 Wed Feb 14 11:26:49 AEDT 2018:INFO:Name : Sally Wed Feb 14 11:26:49 AEDT 2018:INFO:ID : 1799657 SolvedRe: How can I execute a DOS command from within TestComplete? Hi this looks like a bug with test complete,I had a similar problem ,all i had to do is to open excel from command prompt and the command for that was "C:\Program Files\Microsoft Office\Office14\excel.exe" but I had to fiddle with the double quotes and had to play around and finally this worked """C:\Program Files\Microsoft Office\Office14\excel.exe""""