I have an agenda made with div and I want to know when any of these data from my contacts appears with an empty value on my page. I used different methods to compare but none of them worked.
div with information from a contact:
WebUI.click(findTestObject(‘Object Repository/Perfil/Page_x/div_JamesGordon’))
div without contact information:
WebUI.click(findTestObject(‘Object Repository/Perfil/Page_x/div_’))
I memembered my previous, older than a year, improvement suggestion.
OS : Windows 7
Katalon Studio Version : 5.3.0.1
Katalon Studio logs: I think log is not necessary for this case
Environment (for Web testing): Firefox 52.6
Environment (for Mobile testing): N/A
Steps to reproduce problem
I made a Test case as follows:
WebUI.navigateToUrl(targetURL)
allLinks = WebUI.getAllLinksOnCurrentPage(true, [])
allLinks.each({ def link ->
if (shouldCheckForAccesibility(link)) {
boolean result = CustomKeywords.'com.happymigration.UrlUtils.verifyUrlAcc…
Quote from the previous post:
## Actual Behavior -
When run, WS.verifyEqual(obj1, obj2) emitted messages as follows:
INFO 02-27-2018 04:48:39 午後 Verifying a link to https://tokushima-iju.jp/docs/2041.html
FAILED 02-27-2018 04:48:39 午後 Unable to verifyequal between actuial object ‘true’ and expected object ‘false’ (Root cause: Actual object ‘true’ and expected object ‘false’ are not equal)
Are you kidding me? The “true and false are not equal” message is totally useless, waste of space.
**## Proposed Behavior -
**
I want to code like this:
if (shouldCheckForAccesibility(link)) {
boolean result = CustomKeywords.'com.happymigration.UrlUtils.verifyUrlAccessible'(link) String msg = 'Verifying a link to ' + link + ': NG'
WS.verifyEqual(msg, true, result, FailureHandling.CONTINUE_ON_FAILURE)
}
and I would expect to have only a single line of FAILED message like this:
FAILED 02-27-2018 04:48:39 午後 Verifying a link to https://tokushima-iju.jp/docs/2041.html: NG