After updating to 7.9.1 from 7.8.0 my project is broken (Windows 10)

After updating to 7.9.1 from 7.8.0 my project is broken (Windows 10). In the Help, I clicked on ‘Check for Updates …’, opted for update to 7.9.1 and now my project is not runnable with 61 errors, which I’m not sure how to fix:

Hello @gdearest07

Please be noted that you will not be able to use Check for updates… to upgrade from v7.8x to v7.9+ due to the core engine upgrade. Download the latest version from our website. To reuse Preferences from previous versions, refer to this guide.

Then try again and report if you have encountered the issue.

Jass

Hello @Jass .

Thanks. When I was using 7.8.0, I saw the warning that on MAC (not on Windows), it’s not possible to use
Check for updates… to upgrade from v7.8x to v7.9+. I don’t think that’s what caused the problem. By trial and error, I was able to get rid of the errors. For example, I looked into sample projects and noticed that they use:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

and in my files it was:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords

import WSBuiltInKeywords as WS

So, I commented out what I had in my project and used:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

instead.

The other difference is :

//import static JS.* // not working in 7.9.1
import static web.JS.* // works in 7.9.1

When I’m trying to run it, so far, so good.

Hi

Please see this thread and use the workaround suggested by our developer.

Happy testing

Jass

1 Like

Hi @Jass

Thank you for you help. It looks like I did exactly what @duyluong suggested:

"duyluongKatalon Developer

Jan 21

Hi @Sdhongadi

To download v7.8.2 packages, you can download from Github: https://github.com/katalon-studio/katalon-studio/releases/tag/v7.8.2 .

Back to the orginal issue, v7.8.2 and earlier this script are accepted by Groovy Compiler:

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords

import WSBuiltInKeywords as WS
import WebUiBuiltInKeywords as WebUI

but in v7.9.0 and onward, you should manually change it to because we use the new Groovy Eclipse compiler engine:

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
```"
1 Like

Hi @gdearest07,

In v7.9.0 onward, we apply new Groovy compiler that does not accept these imports:

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords

import WSBuiltInKeywords as WS
import WebUiBuiltInKeywords as WebUI

I agree that you should manually change to:

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

and this will work in both v7.9+ and v7.8.2.

1 Like