Contributions
- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions895Views0likes0Comments
AssertionDescriptionSettings in soapui-settings.xml
I see the following line from soapui-settings.xml.What does this mean? where does this show affect if you change this? <con:setting id="AssertionDescriptionSettings@show-assertion-description">false</con:setting>11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes3Comments- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0Comments
Re: [Res] JUnitReport How to Show Xpath Assertion
Marcus, Thanks for your reply. I do not think this is a Third Party Tool Issue.(I might be wrong) I also tried this by adding an Xpath Assertion in SoapUI. I created a project and have a HttpRequest as TestStep. Please see the attached screenshot. Thanks for looking into this and appreciate all the help.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0CommentsRe: [Res] JUnitReport How to Show Xpath Assertion
I am using SOAP UI Version 4.6.2. I don't think it is cutting. it is just not printing the xpath assertion instead if I have an assertion for an element or attribute it just prints that only instead of printing the whole assertion. I tried this in UI as well and the result is same.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0CommentsRe: [Res] JUnitReport How to Show Xpath Assertion
I am adding Assertions dynamically by reading the assertions from File as below in the TestRunListener.beforeStep. Could you please verify if there is anything wrong on the below code? Do I have to set any parameter to print the complete assertion in the junit report? I am running the project from maven. /* * Create Assertion */ def buildAssertion(row, testStep, testCase){ log.info("\n Xpath Assertion, Row Number :"+ row.getRowNum()) def xpath = row.getCell(0) def xpathValue = row.getCell(1) def xpathValidationType = row.getCell(2) //Print the Row Values log.info("XPATH :"+row.getCell(0)) log.info("XPATH_VALUE :"+row.getCell(1)) log.info("XPATH_VALIDATION_TYPE :"+row.getCell(2)) def assertionName = testCase.name + "_" + testStep.getLabel() +"_Assertion_" + row.getRowNum() def assertion = testStep.addAssertion("XPath Match") log.info("%%%%%%%%%%%%%%%%%%%%%%%%%%%%% "+assertion) assertion.name= assertionName assertion.setIgnoreNamespaceDifferences(true) if(xpathValidationType.getStringCellValue() == "1"){ assertion.path = "exists("+xpath.getStringCellValue()+")" assertion.expectedContent = "true" log.info("Added Xpath Existance Assertion :"+xpath + " to TestStep " + testStep.getLabel()) } else if (xpathValidationType.getStringCellValue() == "2"){ assertion.path = xpath.getStringCellValue() assertion.expectedContent = xpathValue.getStringCellValue() log.info("Added XPath Match Assertion :"+xpath + " to TestStep " + testStep.getLabel()) } else if (xpathValidationType.getStringCellValue() == "0"){ log.info("XPATH_VALIDATION_TYPE =" +xpathValidationType +".Hence Not Adding Assertion.") } }11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0Comments- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0Comments
[Res] JUnitReport How to Show Xpath Assertion
I have XPath Assertion for the Responses for all my TestCases. The issue is I am facing is , the JUnitReport is not showing the complete assertion. Is there any setting that I can use to show the entire xpath assertion also( like //*:OTA_HotelAvailRS/*:RoomStays/*:RoomStay/@AvailabilityStatus) XPath Match Assertions: //*:OTA_HotelAvailRS/*:RoomStays/*:RoomStay/@AvailabilityStatus exists(//*:OTA_HotelAvailRS/*:Services/*:Service) RateRange Failed [Amadeus_RateRange_Assertion_1] XPathContains comparison failed, expecting [AvailableForSale1], actual was [AvailableForSale] HotelAvailSearch Failed [Amadeus_HotelAvailSearch_Assertion_1] XPathContains comparison failed, expecting [true], actual was [false]11 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.2KViews0likes11CommentsRe: Override Global Property TestSuiteRunListener.beforeTestCase
[quote="mchelikani"]I would like to Override the Global Property before TestCase Runs. Should I be Using TestSuiteRunListener.beforeTestCase or TestRunListener.beforeRun. when should we use these? Appreciate if I can syntax to override the property. How do I get TestCase Name?11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0Comments