**OS : **Windows 7
Katalon Studio Version : 5.3.0.1
## Katalon Studio logs:
I don’t think log is necessary for this case.
## Environment (for Web testing)
I am using Firefox 52
## Environment (for Mobile testing)
N/A
## Steps to reproduce -
I made a set of TestCases as follows:
url = "$GlobalVariable.G_URLScheme://$GlobalVariable.G_Hostname/prefecture/" + prefectureId
WebUI.callTestCase(findTestCase('Modules/VerifyAccessibilityOfExternalLinksInAPage'), ['targetURL': url], FailureHandling.STOP_ON_FAILURE)
and
/**
* Test Cases/Common Test Cases/VerifyExternalLinksAccessibility
*
* @param targetURL
*/
WebUI.navigateToUrl(targetURL)
allLinks = WebUI.getAllLinksOnCurrentPage(true, [])
allLinks.each({ def link ->
if (shouldCheckForAccesibility(link)) {
boolean result = CustomKeywords.'com.happymigration.UrlUtils.verifyUrlAccessible'(link)
WS.comment('Verifying a link to ' + link) // URLがアクセス可能かどうかを調べる
WS.verifyEqual(true, result, FailureHandling.CONTINUE_ON_FAILURE)
}
Thread.sleep(500 /* wait for 0.5 second, to be gentle for the targeted site */)
})
def shouldCheckForAccesibility(String url) {
if (!url.startsWith('http://') && !url.startsWith('https://')) return false
if (url.contains(GlobalVariable.G_Hostname)) return false
if (url.contains('style.nikkei.com')) return false
if (url.contains('font-awesome')) return false
if (url.contains('fonts.googleapis.com')) return false
if (url.contains('www.facebook.com')) return false
if (url.contains('twitter.com')) return false
return true
}
My CustomKeyword com.happymigration.UrlUtils.verifyUrlAccessible checks When I run the TestCase I got following Log messages came up:
INFO 03-01-2018 09:28:05 午前 Verifying a link to https://tokushima-iju.jp/docs/1998.html
FAILED 03-01-2018 09:28:05 午前 Unable to verify equal between actual object ‘true’ and expected object ‘false’ (Root cause: Actual object ‘true’ and expected object ‘false’ are not equal)
## Actual Behavior -
As soon as I saw the FAILED message I wanted to open the problem URL in FireFox browser to check why. I tried CLICKing the URL string displayed in the Log Viewer message, but I could not. I had to open FireFox and type the URL in the address bar and do SEND — it was a long way to go.
**## Proposed Behavior -
**
I want Katalon Studio render, in LogViewer message, a URL string which starts with “http://” and “https://” as a CLICK-able link.
## Screenshots / Videos
Please find attached image.
want_to_click_URL_displayed_in_Katalon_LogViewer_Message.png