# Unable to save part: can not change the default value of Variable to Test Case

**URL:** <https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800>\
**Category:** Bug Report\
**Tags:** katalon-studio, bugs-report\
**Created:** [February 4, 2019, 5:17am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800 "2019-02-04T05:17:14Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 4, 2019, 5:17am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/1 "2019-02-04T05:17:14Z")

</div>

I made a project to reproduce the problem and published it on GitHub

> **[GitHub - kazurayam/Unable\_to\_save\_part: In Katalon Studio, I could not save changes made...](https://github.com/kazurayam/Unable_to_save_part)**
>
> In Katalon Studio, I could not save changes made to the Default value of variables to Test Cases

* * *

## How to reproduce the problem

1. open the project with your Katalon Studio
2. open the test case named `Test Cases/main/restorePreviousTSuiteResult`
3. click the `Variables` tab.
4. you will find a variable named `STRATEGY` is predefined. It has type of String. It has the default value of `1hourAgo` .

[![1_initial_state.png](https://europe1.discourse-cdn.com/katalon/original/2X/d/ddac263d0a9bf21a975791117f7c2638beaf2108.png)](https://github.com/kazurayam/Unable_to_save_part/blob/master/docs/images/1_initial_state.png)

### Problem 1 : changed the default value, but the new value is not displayed

I wanted to change the default value of the `STRATEGY` variable from `1hourAgo` to a new value `last` .

In the Variables tab, at the row of `STRATEGY` , in the input field of Default value , I typed in the new value `last` . See the screenshot:

[![2_typed_new_default_value.png](https://europe1.discourse-cdn.com/katalon/original/2X/3/34a0662b3869de627101b4b36320533d0094c1b6.png)](https://github.com/kazurayam/Unable_to_save_part/blob/master/docs/images/2_typed_new_default_value.png)

Then I moved the cursor out of the input field. I expected that the new value `last` to be displayed in the field, of course. Howerver, to my biggest surprise, **the input field displayed the old value `1hourAgo`**.

[![3_new_default_value_is_not_show_up](https://europe1.discourse-cdn.com/katalon/original/2X/f/fe92ff7d272b725ac1a0c58d93ca4b857c8838c0.png)](https://github.com/kazurayam/Unable_to_save_part/blob/master/docs/images/3_new_default_value_is_not_show_up.png)

I thought I need to retype the new value, so I moved the cursor in to the input field of Default value, `last` came up! The input field knew the new value `last` but does not show it up. Why? I do not find any rational explanation for this behavior.

### Problem 2 : `Unable to save part` when tried to save the change

I thought the new value `last` is accepted (though it is not shown up). So I wanted to save the settings into disk. I clicked the Save All button. Then a Error dialog came. **It said “Unable to save part”.**

[![4_clicked_save_button_unable_to_save_part.png](https://europe1.discourse-cdn.com/katalon/original/2X/7/76cea0dcf430bd70d1df0875434c7bf32c05adc8.png)](https://github.com/kazurayam/Unable_to_save_part/blob/master/docs/images/4_clicked_save_button_unable_to_save_part.png)

I was unable to save the change at all.

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [February 4, 2019, 7:19am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/2 "2019-02-04T07:19:20Z")

</div>

Hi @kazurayam

I downloaded your project and proceeded to reproduce it but failed. I read your steps again and again and precisely executed them but no errors ever showed up. I could modify the value and save the variable normally.

Well, at least that’s how it is on Katalon 5.10.1. I will try it on the beta versions to see if it’s reproducable.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 4, 2019, 7:21am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/3 "2019-02-04T07:21:49Z")

</div>

Just curious. I expected it would be easily reproducible.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 4, 2019, 7:22am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/4 "2019-02-04T07:22:42Z")

</div>

Thanh To

I am on Windows 7.  
What are you on? Mac?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 4, 2019, 7:57am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/5 "2019-02-04T07:57:31Z")

</div>

Does the Language \ Locale setting matters for Eclipse?

I am on ja\_JP

Does IME (Input Method Editor) matters for Eclipse?

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [February 4, 2019, 8:10am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/6 "2019-02-04T08:10:13Z")

</div>

@kazurayam

I am using Windows 10.  
The language setting could be a clue, I would investigate this possibility.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 5, 2019, 2:29am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/7 "2019-02-05T02:29:33Z")

</div>

On 5th Feb, 2019 I encountered this incident as I reported [this](http://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/6) to Katalon Forum.

On 6th Feb, 2019 I tried to reproduce this incident. **But the incident NOT happend**. The value of Default value was happily updated, the change was successfully stored without “Unable to store part” dialog.

Why not? I have no idea.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 5, 2019, 2:29am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/8 "2019-02-05T02:29:59Z")

</div>

## My thought

### IME is the clue

I believe that this incident has something to do with IME: Input Method Editor.

But what is IME? The following is quotation from [Wikipedia](https://en.wikipedia.org/wiki/Input_method).

> An input method (or input method editor, commonly abbreviated IME) is an operating system component or program that allows any data, such as keyboard strokes or mouse movements, to be received as input. In this way users can enter characters and symbols not found on their input devices. Using an input method is obligatory for any language that has more graphemes than there are keys on the keyboard.

> For instance, on the computer, this allows the user of Latin keyboards to input Chinese, Japanese, Korean and Indic characters; on many hand-held devices, such as mobile phones, it enables using the numeric keypad to enter Latin alphabet characters (or any other alphabet characters) or a screen display to be touched to do so. On some operating systems, an input method is also used to define the behaviour of the dead keys.

See the following picture. In there you can see IME in action. [![IM_in_action.png](https://europe1.discourse-cdn.com/katalon/original/2X/d/d677531f10f9333dcded575eba5d16ee0f047a73.png)](https://github.com/kazurayam/Unable_to_save_part/blob/master/docs/images/5_IME_in_action.png)

I work on a PC with Language=ja\_JP, so IME is fully functional. But other people who live in English domain are not likely to be familiar with IME because they would never use it. IME is not enabled on their devices.

### What is involved for Java application to work with IME

I am not very much familiar with GUI programing in Java. I wanted to learn how to write a Java program which displays Window using Eclipse SWT API, accept input/output in a IME-enabled text field.

By a quick search I found the following page provides a handy sample code: [Java2s.com : Add focus in/out event to Text : Text Event « SWT « Java Tutorial](http://www.java2s.com/Tutorial/Java/0280__SWT/AddfocusinouteventtoText.htm)

### What is happening on the Variables tab for Test Case in Katalon Studio?

The [above sample code](http://www.java2s.com/Tutorial/Java/0280__SWT/AddfocusinouteventtoText.htm) has the following fragment.

```auto
t2.addListener(SWT.FocusOut, new Listener() {
  public void handleEvent(Event e) {
   System.out.println("focus out");
  }
});

```

SWT Text object needs a Listener object registered for the SWT.FocusOut event. The SWT.FocusOut event is fired when I move the cursor out of the IME-enabled input field to somewhere outside of it.

I guess, Katalon Studio has a small shortage. **It does not implement the Listener for the SWT.FocusOut for the input fieds, or the implemented Listener is incomplete somehow.**.

Just I guessed so.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 3, 2019, 8:42pm UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/9 "2019-04-03T20:42:28Z")

</div>

I checked version 6.1.0 and found this issue still remains.

---

<div class="post-metadata">

**Author:** ![tonycheng](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tonycheng](https://forum.katalon.com/u/tonycheng)\
**Post date:** [April 4, 2019, 5:31pm UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/10 "2019-04-04T17:31:08Z")

</div>

I encountered exactly the same problem in version 5.10.1 and 6.0.5. I downloaded a new version 6.1.0.1 yesterday and the problem seems to have gone away. The issue is intermittent and happens very often for versions 5.10.1 and 6.0.5. Is this issue resolved by Katalon team?

I have to use Katalon more to confirm this issue is resolved.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 4, 2019, 8:44pm UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/11 "2019-04-04T20:44:40Z")

</div>

> [@tonycheng](#):
>
> I downloaded a new version 6.1.0.1

How did you get it? URL?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 4, 2019, 9:06pm UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/12 "2019-04-04T21:06:56Z")

</div>

I downloaded the version 6.1.1 as announced by the following post.

> [@Katalon Studio 6.1.1 Beta](http://forum.katalon.com/t/katalon-studio-6-1-1-beta/21898):
>
> The current stable version is 6.1.0. Download [https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon+Studio.app.zip](https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon+Studio.app.zip)[https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon+Studio.dmg](https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon+Studio.dmg)[https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon\_Studio\_Linux\_64-6.1.1.tar.gz](https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon_Studio_Linux_64-6.1.1.tar.gz)[https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon\_Studio\_Windows\_32-6.1.1.zip](https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon_Studio_Windows_32-6.1.1.zip)[https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon\_Studio\_Windows\_64-6.1.1.zip](https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/Katalon_Studio_Windows_64-6.1.1.zip)[https://s3.amaz…](https://s3.amazonaws.com/katalon/release-beta/6.1.1.rc10/apidocs.zip)

I tried it and found the “Unable to save part” issue was fixed in it. I am no more annoyed. So glad.

---

<div class="post-metadata">

**Author:** ![tonycheng](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tonycheng](https://forum.katalon.com/u/tonycheng)\
**Post date:** [April 8, 2019, 11:13pm UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/13 "2019-04-08T23:13:40Z")

</div>

kazurayam, glad to see you have the problem resolved in the new version!

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 22, 2019, 8:38am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/14 "2019-04-22T08:38:01Z")

</div>

Not yet fixed?

> [@Can no longer change the values of local variables](http://forum.katalon.com/t/can-no-longer-change-the-values-of-local-variables/14490/15):
>
> Thank you @kazurayam for the update, but for me, the issue does not seem to be solved yet. I have just installed Katalon Studio Version: 6.1.2 Build: 2 and the behavior is exactly the same, the log records the same error I have provided above. at org.eclipse.equinox.launcher.Main.run(Main.java:1519) Caused by: java.lang.NullPointerException at com.kms.katalon.composer.testcase.parts.TestCaseVariablePart.setDirty(TestCaseVariablePart.java:454) It may have something to do with the fact th…

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [April 18, 2020, 6:45pm UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/15 "2020-04-18T18:45:39Z")

</div>

Automatically bumped on April 18, 2020, 6:45pm UTC



---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 19, 2020, 12:44am UTC](https://forum.katalon.com/t/unable-to-save-part-can-not-change-the-default-value-of-variable-to-test-case/18800/16 "2020-04-19T00:44:47Z")

</div>

Closed on April 19, 2020, 12:44am UTC


