Contributions
- 658Views0likes0Comments
showing error following error in soapui open source for generating report.
Below is My Code for build.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- WARNING: Exclipse auto generated file. Any modifications will be overwritten. To include a user specific buildfile here, simply create one in the same directory with the processing instruction <?eclipse.ant.import?> as the first entry and export the buildfile again. --> <project basedir="." default="testreport" name="REST-Proxibid-Project-1-soapui-project"> <target name="soapUI"> <exec dir="." executable="C:\Program Files\SmartBear\SoapUI-5.4.0\bin>testrunner.bat"> <arg line="-r -j -o -f 'E:\Soapui_Projects\ProxibidProject' -sTestSuite-Proxibid 'E:\Soapui_Projects\ProxibidProject\REST-Proxibid-Project-1-soapui-project.xml'"></arg> </exec> </target> <target name="testreport" depends="soapUI"> <junitreport todir="E:\Soapui_Projects\ProxibidProject"> <fileset dir="E:\Soapui_Projects\ProxibidProject"> <include name="TEST-*.xml"/> </fileset> <report todir="E:\Soapui_Projects\ProxibidProject\HTMLReport"> </report> </junitreport> </target> </project> below is the error showing: Buildfile: build.xml does not exist! Build failed but afile is alreadylocatedat "E:\Soapui_Projects\ProxibidProject" location.580Views0likes0CommentsRe: I am getting error when setpropertyvalue in request & taking value from testcase level
Below is my Json { "entity": { "createDate": 1525870547786, "modifyDate": 1525870547786, "id": 547725, "companyTransactionId": "N/A", "transactionType": "IP", "transactionStatus": "SALE_PENDING", "item": { "id": 38678000, "company": { "id": 10801, "name": "AutomationCompany", "enableTradeIn": true, "logoUrl": null, "bannerUrl": null, "paymentInstructions": "Payment Instruction entered for company. Payment needs to be done with agreed period.", "paymentGatewayAccount": null, "externalId": "AutomationCompanyExtId", "thirdPartySellerId": null, "hideFromIsys": false, "hideFromDirectory": false, "hideFromPartner": false, "url": "", "logoFileName": null, "bannerFileName": null, "companyTokenSet": false, "escapedName": "AutomationCompany", "searchFilterTag": "AutomationCompany|8979878789" }, "companyItemId": "AUTO9055", "companyItemUrl": "https://test1www.proxibid.com", "title": "AUTO9055 Title", "description": "this is for testing only. description key", "minimumPrice": 60000, "listPrice": 80000, "terms": "these are some terms. terms key", "currency": { "id": 1, "code": "USD", "name": "United States Dollars", "description": "", "htmlCode": "$", "conversionFactor": 1, "displayOrder": 1, "active": true }, "active": true, "companyMobileItemUrl": null, "quantity": 1, "available": true, "upsellInfo": "testing the upsell info", "itemTax": null, "buyersPremium": null, "images": [{ "id": 30565039, "url": "https://test1www.proxibid.com/itemImages/100/122/31420327/1.jpg", "path": "/15167/10801/38671953/", "name": "1.jpg", "altText": "Alt image", "type": "PRIMARY", "status": "OK", "source": "EXTERNAL", "mediaType": "PHOTO", "displayOrder": 1, "caption": null, "defaultUrl": "https://test1www.proxibid.com/itemImages/100/122/31420327/1.jpg", "plainUrl": "https://test1www.proxibid.com/itemImages/100/122/31420327/1.jpg" }], "enableVeritread": false, "itemCategorizationType": "LISTING_ITEM_API", "hasLegacyLot": false, "escapedTitle": "AUTO9055-Title", "defaultImageUrl": "https://test1www.proxibid.com/itemImages/100/122/31420327/1.jpg", "sortedPriceRanges": [{ "id": 144029, "itemPriceRangeType": "DAYS", "value": 1, "price": 250.5, "active": true }, { "id": 144030, "itemPriceRangeType": "DAYS", "value": 7, "price": 200.5, "active": true }, { "id": 144031, "itemPriceRangeType": "DAYS", "value": 14, "price": 175, "active": true }, { "id": 144032, "itemPriceRangeType": "DAYS", "value": 33, "price": 150, "active": true }], "lotStatus": "", "originPartner": "Proxibid" }, "buyer": { "id": 440516, "username": "automationbuyer", "firstName": "aBuyerFirst", "lastName": "aBuyerLast", "email": "schaudhary+abuyer@mailcatch.proxibid.com", "phoneHome": "(988) 156-5692", "phoneWork": null, "phoneMobile": null, "faxNumber": null, "emailNotification": true, "smsNotification": null, "locale": "en_US", "restrictions": [], "leadTimeSeconds": null, "carrierType": null, "buyerId": 54234, "verificationNeeded": false, "riskAssessment": null, "phoneVerified": null, "userId": 440516, "thirdPartyTokenSet": false, "phone": "(988) 156-5692" }, "amount": 80000, "fundsHeld": null, "paymentSummaryAmount": null, "currency": { "id": 1, "code": "USD", "name": "United States Dollars", "description": "", "htmlCode": "$", "conversionFactor": 1, "displayOrder": 1, "active": true }, "active": true, "thirdPartyTransactionId": null, "thirdPartyLineItemId": null, "tradeInText": null, "originPartner": "Proxibid", "priceRangeType": null, "priceRangeValue": null, "priceRangePrice": null, "rentalStartDate": null, "rentalEndDate": null, "notes": null, "rentalEndDateString": null, "restrictions": [], "topRestrictionTypes": null, "rentalStartDateString": null, "transactionReportTransactionStatus": null, "buyerId": 440516 } } //=============xox====================== My code is: import com.eviware.soapui.support.XmlHolder import groovy.json.JsonSlurper //from response get value transaction id def getResponse = testRunner.testCase.testSteps["ClickBuyNow"].getPropertyValue("Response") //def jsons1 = new JsonSlurper(confirmReq) // created obj for jsonslurper class to pulled json res // with this obj we can place data in req //def jsons1 = new JsonSlurper().parseText(getResponse) def getJsonRes = new JsonSlurper().parseText(getResponse) def getTransID = getJsonRes.entities[0].id log.info getTransID def getcompanyItemId = getJsonRes.entities.item.companyItemId log.info getcompanyItemId def gettitle = getJsonRes.entities.item.title //def gettitle = getJsonRes.getNodeValue(".entities[0].item.title") === showing error //log.info testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("TransactionID", getTransID) testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("TransactionID", getTransID.toString()) //context.getTestCase().setPropertyValue("TransactionID", getTransID) testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("CompanyItemID", getcompanyItemId.toString()) testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("title", gettitle.toString()) //==============xox===============xox=================xox===================xox===================xox======== def ItemID = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("ItemID") def TransactionID = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("TransactionID") def CompanyItemID = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("CompanyItemID") def title = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("title") log.info title // def JsonRequest = testRunner.testCase.testSteps["ConfirmBuyNow_ForScript"].getPropertyValue("Request") log.info JsonRequest def jsonAdd = new JsonSlurper().parseText(JsonRequest) testRunner.testCase.testSteps["ConfirmBuyNow_ForScript"].setPropertyValue("jsonAdd.entity.id","TransactionID") //jsonAdd.setNodeValue(".entity.item.id",ItemID) //jsonAdd.setNodeValue(".entity.item.companyItemId",CompanyItemID) //jsonAdd.setNodeValue(".entity.item.title",title) def newAddJson = jsonAdd.getJson(); testRunner.testCase.testSteps["ConfirmBuyNow_ForScript"].getPropertyValue("Request",newAddJson) //========xox=================== still getting an error. plzrefer attached screenshots for line no 40 &422.4KViews0likes0CommentsI am getting error when setpropertyvalue in request & taking value from testcase level
Below is My Code: I am getting an error at line no 33 (refer screenshot also) Please help me out import com.eviware.soapui.support.XmlHolder import groovy.json.JsonSlurper //from response get value transaction id def getResponse = testRunner.testCase.testSteps["ClickBuyNow"].getPropertyValue("Response") //def jsons1 = new JsonSlurper(confirmReq) // created obj for jsonslurper class to pulled json res // with this obj we can place data in req //def jsons1 = new JsonSlurper().parseText(getResponse) def getJsonRes = new JsonSlurper().parseText(getResponse) def getTransID = getJsonRes.entities[0].id log.info getTransID def getcompanyItemId = getJsonRes.entities.item.companyItemId log.info getcompanyItemId def gettitle = getJsonRes.entities.item.title //def gettitle = getJsonRes.getNodeValue(".entities[0].item.title") === showing error //log.info testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("TransactionID", getTransID) testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("TransactionID", getTransID.toString()) //context.getTestCase().setPropertyValue("TransactionID", getTransID) testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("CompanyItemID", getcompanyItemId.toString()) testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].setPropertyValue("title", gettitle.toString()) //==============xox===============xox=================xox===================xox===================xox======== def ItemID = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("ItemID") def TransactionID = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("TransactionID") def CompanyItemID = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("CompanyItemID") def title = testRunner.testCase.testSuite.testCases["TC01-BuyNowRequestFlow"].getPropertyValue("title") log.info title // def JsonRequest = testRunner.testCase.testSteps["ConfirmBuyNow_ForScript"].getPropertyValue("Request") log.info JsonRequest def jsonAdd = new JsonSlurper().parseText(JsonRequest) testRunner.testCase.testSteps["ConfirmBuyNow_ForScript"].setPropertyValue(jsonAdd.entities[0].id,TransactionID) jsonAdd.setPropertyValue(".entities[0].id",TransactionID) // jsonAdd.setNodeValue(".entity.item.id",ItemID) // jsonAdd.setNodeValue(".entity.item.companyItemId",CompanyItemID) // jsonAdd.setNodeValue(".entity.item.title",title) def newAddJson = jsonAdd.getJson(); testRunner.testCase.testSteps["ConfirmBuyNow"].getPropertyValue("Request",newAddJson)2.4KViews0likes3Commentson "setPropertyValue" is showing following error. attached screenshot also
Below Error Showing: groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.setPropertyValue() is applicable for argument types: (java.lang.String, java.lang.Integer) values: [TransactionID, 557812] Possible solutions: setPropertyValue(java.lang.String, java.lang.String), getPropertyValue(java.lang.String) error at line: 20 Please refer screenshot for more details.Solved3.6KViews0likes1CommentRe: I am facing problem while connecting MSSQL connection in Soapui free version.
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.setPropertyValue() is applicable for argument types: (java.lang.String, java.lang.Integer) values: [TransactionID, 557812] Possible solutions: setPropertyValue(java.lang.String, java.lang.String), getPropertyValue(java.lang.String) error at line: 20 Please refer screenshot for more details.3.2KViews0likes0CommentsI am facing problem while connecting MSSQL connection in Soapui free version.
I am facing problem while connecting MSSQL connection in Soapui free version. I need to fetch data from database table and use as request data for another request. On click on test connection showing error "com.eviware.soapui.support.SoapUIException: Failed to init connection for driver [com.mysql.jdbc.Driver] "I am not understanding what needs to add as a Driver & Connection string. Attached my MSSQL login page as a screenshot. Kindly help me at the earliest.Solved3.3KViews0likes2Comments