WebUI.verifyLinksAccessible does not work behind Proxy

I am using Katalon Studio Version 5.3.0 Build 1.
I am behind organization Proxy. I have setup Proxy for Katalon Studio properly.

I made the following TestCase scpript:

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys
WebUI.openBrowser('')
WebUI.navigateToUrl('https://www.google.co.jp/')
WebUI.verifyLinksAccessible(['https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=webhp&cd=&cad=rja&uact=8&ved=0ahUKEwiw1NDenbvZAhXBzbwKHbqaCI8QktQCCAw&url=https%3A%2F%2Fwww.google.co.jp%2Fservices%2F%3Fsubid%3Dww-ww-et-g-awa-a-g_hpbfoot1_1!o2%26utm_source%3Dgoogle.com%26utm_medium%3Dreferral%26utm_campaign%3Dgoogle_hpbfooter%26fg%3D1&usg=AOvVaw313mutxJVym36y7taNTcGC'])
WebUI.closeBrowser()

When I ran it, FireFox Browser came up and

WebUI.navigateToUrl('https://www.google.co.jp/')

worked. This proves the Proxy configuration for Katalon Studio is fine.

Howerver

WebUI.verifyLinksAccessible('https://www.google.co.jp/url? ..... 

This FAILED. The messages said

Unable to verify links are accessible (Root cause: Unable to send request (root cause: java.net.UnknownHostException: www.google.co.jp))

It seems that Katalon Studio ignores the given Proxy setting when it performs WebUI.verifyLinksAccessible.

My idea is to use Katalon Studio for check out broken links from my site going out to numerous extenal URLs. I anticipate the external URLs may change unexpectedly. So I want to automate the verification of links accessibility.

1 Like