Katalon Studio Assist

I am getting the ‘Could not accept Changes’ modal window on clicking Studio Assist.
Can anybody help me to understand what could be the issue here?

Please refer to the screenshot.

1 Like

@xuan.tran can you please take a look?

Hi @Obhi, which KS version are you using? And can you take a screenshot of the StudioAssist Preference? This happens when you click on the StudioAssist icon to open the chat window, right?

I am in 10.4.2
At this moment, I am getting this error for both cases -

 1. If I click Studio Assist Icon from the menu.
  1. If I click Studio Assist from Window→Katalon Studio Preferences →Studio Assist.

Is there any way to revert any settings in Studio Assist?
This is what I see now-
(Refer the screenshot)

Pls select Katalon AI Service or any personal key you have. None is similar to disabling StudioAssist, so you cannot use it.

1 Like

I did not select None and attempted to enter the values. What I’m trying to convey is that regardless of what I choose, the display remains unchanged and I’m unable to reset anything. For every selection, the screen stays the same as if it’s frozen. Your screen appears to be different from mine.
I have entered values after selecting Open-AI compatible provider , clicked apply and close but nothing happened.

1 Like

@Obhi can you share with us the video and error log for us to troubleshoot? If you can, pls create a support ticket too so that our team can support you faster

Problem Analysis

The “Could not Accept Changes” modal with the message “The currently displayed page contains invalid values” typically occurs when StudioAssist is trying to accept generated code but encounters validation errors in the form or input fields.

Based on the Katalon documentation, this error is not explicitly documented as a known issue, but it can be caused by several factors related to how StudioAssist processes and validates the generated code.


Possible Root Causes

Cause Details
Invalid Test Object References The generated code contains references to test objects that don’t exist or have invalid paths in your Object Repository
Undefined Variables StudioAssist generated code using variables that aren’t defined in your test case
Missing Object Repository Setup Test objects haven’t been properly captured in the Object Repository before accepting changes
Project Context Issues Large number of test objects (200+) causing StudioAssist to timeout or generate invalid references
Form Validation Errors The test case editor is validating the generated code and finding syntax or reference errors
Proxy/Network Issues Connection problems preventing proper validation of the generated code

Solutions

Solution 1: Ensure Test Objects Are Captured (Recommended)

Source: Tips for using StudioAssist - FAQ

Before using StudioAssist to generate code:

  1. Capture all required test objects in your Object Repository using the Web/Mobile Spy utilities
  2. Verify object paths are correct and accessible
  3. Then use StudioAssist with explicit object references in your prompt

Example prompt:

Write me a test case with the following steps:
1. Open browser to URL
2. Click the login button
3. Fill in username field
4. Fill in password field
5. Click submit button

Use these test objects:
- Login button: 'Page_Login/btn_Login'
- Username field: 'Page_Login/txt_Username'
- Password field: 'Page_Login/txt_Password'
- Submit button: 'Page_Login/btn_Submit'

Solution 2: Define Variables Before Generating Code

Source: Tips for using StudioAssist

Make sure all variables are defined in your test case before accepting StudioAssist changes:

  1. Go to Variables tab in your test case
  2. Define all variables that StudioAssist will use (e.g., username, password, url)
  3. Then generate code with StudioAssist

Example:

// Define variables first
String username = 'testuser'
String password = 'testpass'
String url = 'https://example.com'

// Then use StudioAssist to generate code using these variables

Solution 3: Disable Auto-Include Project Context

If you have a large project with many test objects (200+), this can cause validation issues:

  1. Go to Katalon Studio > Preferences > StudioAssist
  2. Uncheck “Auto-include project context information”
  3. Try using StudioAssist again

Why: Large projects with many test objects can cause timeouts and invalid references.


Solution 4: Clear StudioAssist Conversation

If you’ve been using StudioAssist in the same conversation for multiple generations:

  1. Click the Clear conversation button in the StudioAssist chat window
  2. Start a fresh conversation
  3. Try generating code again

Why: Accumulated context from previous questions can cause validation errors.


Solution 5: Verify Your License and AI Features

According to the documentation, StudioAssist requires:

  • Enterprise license (required since version 9.4.0)
  • AI features enabled at the Account level
  • NOT using License Server login

Check your setup:

  1. Go to Help > About Katalon Studio and verify your license type
  2. Contact your Account Owner if AI features are disabled
  3. Ensure you’re logged in with your personal Katalon account (not License Server)

Solution 6: Manual Code Entry (Workaround)

If StudioAssist continues to fail, manually write the test code instead:

  1. Close the StudioAssist chat window
  2. Manually write your test case code in the script editor
  3. Ensure all test objects and variables are properly defined
  4. Run the test to verify it works

Recommended Troubleshooting Steps

  1. First: Capture all test objects in your Object Repository
  2. Second: Define all variables in your test case
  3. Third: Disable “Auto-include project context information” if you have 200+ objects
  4. Fourth: Clear the StudioAssist conversation
  5. Fifth: Try generating code again with a simpler, more specific prompt
  6. Last: If still failing, manually write the code or contact Katalon support

Additional Resources