Code is not working properly in Katalon new version 7.1.1

User is not able to click on the element if applied under try catch block in Katalon 7.1.1 the newest version and some times web page get blank and url area get data as url.

I am facing so many issues in after updating my code to 7 version now i am thinking why I used katalon as automation tool.

Issue 1:
Regarding the code not working in new version of Katalon. I have applied a code as mentioned below which is working in my old version perfectly but in new version its not clicking the code and in console logs it throws an smart_xpath continue the code. I dont know the problem why it doing so but I have observe that we have start facing lots of issue after moving to the 7 version of katalon.

    public clickStartBtn(String jobName){
	boolean startBtnPresent = true
	while(startBtnPresent){
		try{
			if(isStartBtnExist()==true){
				WebUI.click(findTestObject('UI/OverviewPage/btn_Start'))
				KeywordUtil.logInfo("Clicking element")
				WebUI.delay(5)
				KeywordUtil.markPassed("Element has been clicked")
				startBtnPresent = false
			}
			else{
				WebUI.delay(3)
				WebUI.click(findTestObject('UI/HomePage/lnk_Home'))
				WebUI.delay(3)
				clickRefreshLnk()
				WebUI.delay(10)
				WebUI.refresh()
				WebUI.delay(5)
				searchJob(jobName)
			}
		}
		catch(Exception e){
			KeywordUtil.markFailed("Fail to click on element")
		}
	}
}

public boolean isStartBtnExist(){
	try{
		WebUI.verifyElementPresent(findTestObject('UI/OverviewPage/btn_Start'),5)
		return true
	}
	catch(Exception e){
		return false
	}
}

Issue 2:
While running the suite I have seen that page get blank and in URL :data is displayed it generally happens when new browser get open i dont know the reason but it happen 3 out of 5 times a day and also not throws error in the logs.

Issue 3:
While loading the reload plugin its throws an error as mentioned below due to which I am not able to generate html report.

Error reloading plugins
com.kms.katalon.plugin.models.ReloadPluginsException: Unexpected error occurs during executing reload plugins under account: credential: neeraj.srivastava@exlservice.com, endpoint: https://store.katalon.com/api/products/ks?appVersion=7.1.1
at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:189)
at com.kms.katalon.composer.handlers.ReloadPluginsHandler$1.run(ReloadPluginsHandler.java:61)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.kms.katalon.plugin.models.KStoreClientExceptionWithInfo: Unexpected error occurs during executing get latest plugins
at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:80)
at com.kms.katalon.plugin.service.PluginService.fetchLatestPlugins(PluginService.java:201)
at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:74)
… 2 more
Caused by: java.net.SocketException: Connection reset
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at com.kms.katalon.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:259)
at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:59)

Please do the needful ASAP

Instead of giving such a general statement about the issues your are experiencing, could you please try to add some detail and examples so that others can help you resolve them.

Please read

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.