Spy Web Utility: UTF-8 and unicode

@ThanhTo @Russ_Thomas @Jass

Hello,
Does Spy Utility support UTF-8?
When try to name object in Japanese ,it shows in Spy utility window but does not reflect to object repository.
Eg.
In Spy Utility Window : a_ 登録
In Object Repository : a_

Is there any specific settings required?Kindly help me with the solution.
Thank you.

Since Katalon Studio v7.1, you can name a Test Object with most of UNICODE characters including Japanese characters. See

In between a_ and 登録 I find a whitespace character. I feel curious about this whitespace char. In most cases Spy / Web Recorder tool generates a Test Object like a_登録 without white space. Why Spy tool generated such name?

Could you show us the HTML source of the target Web page? I want to see how the <a> tag with content 登録 looks like.

I guess, there could be some special characters there, for example <a>&nbsp;登録</a>, and it may have confused the tools.

@kazurayam

Thank you for your reply and for sharing your post.
What I understand is, Katalon supports naming test artifacts, including Test Case, Test Object, Test Data File, Test Suite, Test Suite Collection, and Checkpoint with UTF-8 characters.

But I think it working fine within the Katalon project only.

Problem: -
While capturing an object in Spy web window, if the captured object has any Japanese character it shows blank space in the Object Name field, even we update Object Name manually it does not reflect the Japanese name into the object repository.

Example:
Automatically Captured:

Actual page name is :メインメニュー
Actual Test Object text value :ID/PW(個人/個人B)

Spy web Object Name is :Page_
Spy web Test Object Object Name :a_IDPWB)

Manual Update:

Object repository situation:
image

In between a_ and 登録 I find a whitespace character. I feel curious about this whitespace char.

Regarding this, this name is not automatically captured, I have written it manually.
Sorry to confuse you.

Katalon Team would want to see the problem reproduced on their PC.
Is the URL of your target page a public one? Can I see it in the Internet?

@kazurayam

Is the URL of your target page a public one? Can I see it in the Internet?

Unfortunately, it is not public.

I tried on https://www.amazon.co.jp/ ,
It can be reproducible using the above site.
Thank you.

I could reproduce it at https://www.mof.go.jp/ 財務省 Ministry of Finance, Japan with KS ver7.7.2


Using the Spy tool, I clicked an element

<a href="https://www.mof.go.jp/2020_coronavirus/index.html" target="_self">新型コロナウイルス感染症関連情報(令和2年12月9日更新)</a>

Then the Spy created a test object named

a_2129

Apparently, the content text of the <a> tag 新型コロナウイルス感染症関連情報(令和2年12月9日更新) was translated into 2129. This is how Spy tool works at the moment. It is arguable I think.

I tried manually renaming the test object a_2129 to a longer name:

Yes, I could rename it to a_新型コロナウイルス感染症関連情報(令和2年12月9日更新). This is good enough.

1 Like

@ThanhTo
@devalex88

I think you can avoid this unnecessary translation.

@kazurayam

[quote=“kazurayam, post:7, topic:50200”]
Apparently, the context text of the <a> tag 新型コロナウイルス感染症関連情報(令和2年12月9日更新) was translated into 2129 .
[/quote]
I think you can avoid this unnecessary translation, don’t you?

I think, It does not translate it, these are the numbers which Spy web could read from this text → 令和2129日更新

@lotakeketan

You should be aware that you can not use a / character in the name of TestObject, because / is too special: a File path separator. Therefore, I suppose Katalon Studio may be changed at its best to generate a_IDPW(個人個人B), instead of a_ID/PW(個人/個人B).

Please be prepared, you would want to manually rename the auto-generated name anyway.

1 Like

@kazurayam

You should aware that you can not use a / character in the name of TestObject, because / is too special: a File path separator.

Thank you for reminding me.

That’s why I tried the following the way, even though it does not reflect in the object repository as expected .

Manual Update:

Object repository situation:
image

Thank you.