text stringlengths 300 4.71k |
|---|
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ฅ์ฌํฌ๋ก์์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ๊ณตํ๋ ๋ฐ์ดํฐ ํต์ ๋ฐฉ์์ HTTP ํ๋กํ ์ฝ์ ์ฌ์ฉํด ์์ฒญ๊ณผ ์๋ต์ ์ฒ๋ฆฌํฉ๋๋ค. ์ด ๊ณผ์ ์์ ๋ฐ์ดํฐ ์์ฒด๋ฅผ ๋ณํํ์ง๋ ์์ต๋๋ค. ํ์ง๋ง ์ฌ์ฉ ํ๊ฒฝ์ ๋ฐ๋ผ ๋ฐ์ดํฐ๋ฅผ ์ํธํํ๊ฑฐ๋ ํน์ ํ์์ ๋ฐ์ดํฐ๋ฅผ ์์ ํ๊ณ ๋ณํํ๋ ๊ณผ์ ์ด ํ์ํ ์ ์์ต๋๋ค.
ํ๋กํ ์ฝ ์ด๋ํฐ๋ฅผ ์ฌ์ฉํ๋ฉด ๊ฐ๋จํ ์ค์ ๋ง์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ์ํธํํ๊ฑฐ๋ ๋ฐ์ดํฐ ๊ตฌ์กฐ๋ฅผ ๋ณํํด ์ํ๋ ๋์์ ๊ตฌํํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋ฅ์ฌํฌ๋ก ๋ชจ๋ ๋๋ฒจ๋กํผ์์ ๋ชจ๋์ ๋ง๋ค๊ณ ๋ฅ์ฌํฌ๋ก ์คํ๋์ค์ ์์ฑ๋ ๋ชจ๋์ ๋ฑ๋กํ๊ณ ํ๋กํ ์ฝ, ์๋น์ค๋ฅผ ์ถ๊ฐํด์ผ ํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ๋ฅ์ฌํฌ๋ก ๋ชจ๋ ๋๋ฒจ๋กํผ์์ ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ๋ง๋ญ๋๋ค. ๋ฉ๋ด์์ [File > New > Project]๋ฅผ ์ ํํฉ๋๋ค.
๋จ๊ณ 2. Project Wizard๊ฐ ์ด๋ฆฌ๋ฉด Module ํญ๋ชฉ์์ 'Protocol Adaptor'๋ฅผ ์ ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. ํ๋ก์ ํธ ID๋ฅผ ์
๋ ฅํ๊ณ [Next] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
๋จ๊ณ 4. Object ID๋ฅผ ์
๋ ฅํ๊ณ FinalClass ํญ๋ชฉ์ true๋ก ๋ณ๊ฒฝํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 5. ํ๋ก์ ํธ๊ฐ ์์ฑ๋๊ณ basicPtAdp.js ํ์ผ์ด ํธ์ง์ฐฝ์ ํ์๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ธฐ/3.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ํธ์งํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋์ ์๋ก ๋ง๋ค๋ฉด ๊ธฐ๋ณธ์ ์ผ๋ก 4๊ฐ์ ํจ์๊ฐ ์์ฑ๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ํธ์งํ๊ธฐ/1.png</ImgTag>
initialize
<CodeTag>
nexacro.basicPtAdp.prototype.initialize = function() { trace('basicPtAdp initialize');};
</CodeTag>
์ธ๋ถ ํ๋ฌ๊ทธ์ธ ๋ชจ๋์ ์ฌ์ฉํ ๊ฒฝ์ฐ์๋ ์๋์ ๊ฐ์ด PluginElement๋ฅผ ์ฌ์ฉํด ์ด๊ธฐํํฉ๋๋ค.
<CodeTag>
nexacro.basicPtAdp.prototype.initialize = function() { this._plugin = new nexacro.PluginElement(); this._plugin.setElementClassId('Microsoft.XMLDOM'); //this._plugin.setElementClassId('{7E9FDB80-5316-11D4-B02C-00C04F0CD404}'); this._plugin.create(); };
</CodeTag>
finalize
<CodeTag>
nexacro.basicPtAdp.prototype.finalize = function() { trace('basicPtAdp finalize');};
</CodeTag>
initialize ํจ์์์ ์์ฑํ ์ธ๋ถ ๋ชจ๋์ ์ญ์ ์ฒ๋ฆฌํฉ๋๋ค.
<CodeTag>
nexacro.basicPtAdp.prototype.finalize = function(){ this._plugin.destroy(); delete this._plugin; }
</CodeTag>
encrypt
์ ์กํ ๋ฐ์ดํฐ๋ฅผ ๋ณํํ๊ณ return ํ๋ ๋ฌธ์์ด ๋ณ์์ ๋ด์์ ์ฒ๋ฆฌํฉ๋๋ค.
<CodeTag>
nexacro.basicPtAdp.prototype.encrypt = function(strUrl, strData) { trace('encrypt url=' + strUrl + ';data=' + strData); return strData;};
</CodeTag>
decrypt
์๋ต์ผ๋ก ๋ฐ์ ๋ฐ์ดํฐ๋ฅผ ๋ณํํ๊ณ ํธ์ถํ ์ฑ์ ์ ๋ฌํฉ๋๋ค.
<CodeTag>
nexacro.basicPtAdp.prototype.decrypt = function(strUrl, strData) { trace('decrypt url=' + strUrl + ';data=' + strData); return strData;}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ฐฐํฌํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ๋ฅ์ฌํฌ๋ก ๋ชจ๋ ๋๋ฒจ๋กํผ ๋ฉ๋ด[Deploy > Module Package]๋ฅผ ์ ํํ๊ณ Deploy Wizard๋ฅผ ์คํํฉ๋๋ค.
๋จ๊ณ 2. Module Information์์ Type ํญ๋ชฉ์ 'protocoladaptor'์ผ๋ก ๋ณ๊ฒฝํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ฐฐํฌํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. [Deploy] ๋ฒํผ์ ํด๋ฆญํด ๋ชจ๋์ ๋ฐฐํฌํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ ๋ชจ๋ ์ค์นํ๊ณ ํ๋กํ ์ฝ ์๋น์ค ๋ฑ๋กํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ๋ฅ์ฌํฌ๋ก ์คํ๋์ค ๋ฉ๋ด[File > Install Module]์ ์ ํํ๊ณ Install Module Wizard๋ฅผ ์คํํฉ๋๋ค.
๋จ๊ณ 2. ๋ฅ์ฌํฌ๋ก ๋ชจ๋ ๋๋ฒจ๋กํผ์์ ๋ง๋ ๋ชจ๋ ์ค์น ํ์ผ์ ์ ํํ๊ณ ์ค์นํฉ๋๋ค.
๋
ธํธ:
๋ชจ๋ ๋ฉํ์ธํฌ ์์ฑ ์ค registration ์์ฑ๊ฐ์ด ๊ธฐ๋ณธ๊ฐ('deny')์ผ๋ก ์ค์ ๋๊ธฐ ๋๋ฌธ์ ์ค์น๋ ๋ชจ๋ ๋ชฉ๋ก์ด ๋ณด์ด์ง๋ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|๋ชจ๋ ์ค์นํ๊ณ ํ๋กํ ์ฝ ์๋น์ค ๋ฑ๋กํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. Project Explorer์์ TypeDefinition ํญ๋ชฉ์ ์ ํํ๊ณ ์ปจํ
์คํธ ๋ฉ๋ด์์ [Add > Protocol]์ ์ ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|๋ชจ๋ ์ค์นํ๊ณ ํ๋กํ ์ฝ ์๋น์ค ๋ฑ๋กํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 4. New Protocol Wizard์์ Protocol ID์ Prefix ID๋ฅผ ์ค์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|๋ชจ๋ ์ค์นํ๊ณ ํ๋กํ ์ฝ ์๋น์ค ๋ฑ๋กํ๊ธฐ/3.jpg</ImgTag>
๋จ๊ณ 5. [Next] ๋ฒํผ์ ํด๋ฆญํ๊ณ Web Browser ํญ๋ชฉ์ ์ฒดํฌํ๊ณ ClassName์ ์
๋ ฅํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ|๋ชจ๋ ์ค์นํ๊ณ ํ๋กํ ์ฝ ์๋น์ค ๋ฑ๋กํ๊ธฐ/4.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ ๋ชจ๋ ๋ง๋ค๊ณ ์ฑ์์ ์ฌ์ฉํ๊ธฐ ํ๋กํ ์ฝ ์ด๋ํฐ๋ฅผ ํตํด ์๋น์ค ํธ์ถํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
transaction ๋ฉ์๋ ์คํ ์ ์๋์ ๊ฐ์ด strURL ํ๋ผ๋ฏธํฐ์ ํ๋กํ ์ฝ ์ด๋ํฐ URL ํ์์ ์ ์ฉํ๋ฉด ํต์ ์์ฒญ์ด ๋ฐ๋ก ์๋ฒ๋ก ์ ๋ฌ๋์ง ์๊ณ ํ๋กํ ์ฝ ์ด๋ํฐ๋ฅผ ๊ฑฐ์น๊ฒ ๋ฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.transaction('srv00', 'basicPtAdp://127.0.0.1:4098/test.xml', '','dsOut=Dataset00','value=a','fnCallback');};this.fnCallback = function(id, code, message){ trace('Error['+code+']:'+message);}
</CodeTag>
Button ํด๋ฆญ ์ ์๋์ ๊ฐ์ ์์๋ก ํ๋กํ ์ฝ ์ด๋ํฐ ๋์์ด ์ฒ๋ฆฌ๋๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
initialize
์์ ์์๋ ์ด๊ธฐํ๋ ์๊ณ trace ๋ฉ์๋๋ง ์คํํฉ๋๋ค.
encrypt
strArgument ํ๋ผ๋ฏธํฐ๋ก ์ ๋ฌํ ๊ฐ์ด ์ฒ๋ฆฌ๋๋ ๊ฒ์ ํ์ธํฉ๋๋ค.
decrypt
์์ฒญ์ ๋ํ ์๋ต ๋ฐ์ดํฐ๋ฅผ ํ์ธํฉ๋๋ค.
CallbackFunc
์ ์ ์ฒ๋ฆฌ ํ ์ฝ๋ฐฑ ํจ์๊ฐ ๋์ํ๋ ๊ฒ์ ํ์ธํฉ๋๋ค.
basicPtAdp initialize
encrypt url=basicPtAdp://127.0.0.1:8080/test.xml;data=<?xml version='1.0' encoding='UTF-8'?>
<Root xmlns='http://www.nexacroplatform.com/platform/dataset'>
<Parameters>
<Parameter id='value'>b</Parameter>
</Parameters>
</Root>
decrypt url=basicPtAdp://127.0.0.1:8080/test.xml;data=<?xml version='1.0' encoding='utf-8'?>
<Root xmlns='http://www.nexacroplatform.com/platform/dataset' ver='5000' >
<Parameters>
<Parameter id='ErrorCode' type='int'>0</Parameter>
<Parameter id='ErrorMsg' type='string'>SUCC</Parameter>
</Parameters>
<Dataset id='customers'>
<ColumnInfo>
<Column id='id' type='STRING' size='4'/>
...
Error[0]:SAUCC<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋กํ ์ฝ ์ด๋ํฐ์์๋ ์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์๋ฅผ ์ ๊ณตํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์ ์ฌ์ ์ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์์๋ฐ์ nexacro.ProtocolAdp์์ ์ ๊ณตํ๋ ํจ์๋ฅผ ์ฌ์ ์ํ ์ ์์ต๋๋ค. ์์ฑ์ฐฝ์์ ์ถ๊ฐํด ์ฌ์ฉํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์|์ฌ์ ์ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์/1.jpg</ImgTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์|์ฌ์ ์ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์/1.png</ImgTag>
getCommunicationHeaders ํจ์๋ ์๋์ ๊ฐ์ด ์ค์ ํ ์ ์์ต๋๋ค.
<CodeTag>
nexacro.basicPtAdp.prototype.getCommunicationHeaders = function (strUrl){ var ret = nexacro.ProtocolAdp.prototype.getCommunicationHeaders.call(this, strUrl); ret.push({id:'PHPSESSID', value:'298zf09hf012fh2'}); ret.push({id:'csrftoken', value:'u32t4o3tb3gg43'}); return ret;};
</CodeTag>
ํต์ ์ ์ฟ ํค ์ ๋ณด๊ฐ ์ถ๊ฐ๋ก ์ค์ ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์|์ฌ์ ์ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์/2.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์ ๋ฉ์๋๋ก ์ถ๊ฐํ๋ ํจ์<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Project Explorer์์ ์ค๋ธ์ ํธ๋ฅผ ์ ํํ๊ณ ์ปจํ
์คํธ ๋ฉ๋ด์์ Method๋ฅผ ์ถ๊ฐํด ์ค์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์|๋ฉ์๋๋ก ์ถ๊ฐํ๋ ํจ์/1.jpg</ImgTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์|๋ฉ์๋๋ก ์ถ๊ฐํ๋ ํจ์/1.png</ImgTag>
getHTTPHeader, version ํจ์๋ ์๋์ ๊ฐ์ด ์ค์ ํ ์ ์์ต๋๋ค.
<CodeTag>
nexacro.basicPtAdp.prototype.initialize = function() { this._httpheaders = []; this._httpheaders.push({ id: 'Accept', value: 'application/json, text/json, */*'});}; nexacro.basicPtAdp.prototype.version = function (){ return '1.1';}; nexacro.basicPtAdp.prototype.getHTTPHeader = function (){ return this._httpheaders;};
</CodeTag>
ํต์ ์ ํค๋ Accept ์ ๋ณด๊ฐ ๋ณ๊ฒฝ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋กํ ์ฝ ์ด๋ํฐ ๊ฐ๋ฐํ๊ธฐ|์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ์ธํฐํ์ด์ค ํจ์|๋ฉ์๋๋ก ์ถ๊ฐํ๋ ํจ์/2.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
X-PUSH๋ ์ค์๊ฐ์ผ๋ก ์ ๋ณด๋ ๋ฉ์์ง๋ฅผ ์ ๋ฌํ ์ ์๋ Server push ๊ธฐ์ ์ ์ฌ์ฉํ๋ ์ ํ์
๋๋ค. ๋ฅ์ฌํฌ๋ก๋ X-PUSH ์๋ฒ์์ ์ ์กํ๋ ๋ฉ์์ง๋ฅผ ์ฒ๋ฆฌํ ์ ์๋ XPush ์ค๋ธ์ ํธ๋ฅผ ์ ๊ณตํฉ๋๋ค. ๊ฐ๋จํ ์ค์ ๋ง์ผ๋ก ๋ฉ์์ง๋ฅผ ์์ฒญํ๊ณ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค. ์ด๋ฒ ์ฅ์์๋ ๋ฅ์ฌํฌ๋ก ์คํ๋์ค์์ XPush ์ค๋ธ์ ํธ๋ฅผ ๋ฑ๋กํ๊ณ ๋ฉ์์ง๋ฅผ ์ฒ๋ฆฌํ๋ ์ฑ์ ๊ตฌํํ๋ ๊ณผ์ ์ ์ดํด๋ด
๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ์์ ์ฌ์ฉํ XPush ์ค๋ธ์ ํธ ๋ฑ๋กํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
XPush ์ค๋ธ์ ํธ๋ ๊ธฐ๋ณธ ์ค๋ธ์ ํธ๋ก ๋ฑ๋ก๋์ด ์์ง ์์ต๋๋ค. Project Explorer ์ฐฝ์์ XPush ์ค๋ธ์ ํธ๋ฅผ ๋ฑ๋กํ ํ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๋จ๊ณ 1. ๋ฉ๋ด[File > New > Project]๋ฅผ ์ ํํ๊ณ ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ์์ฑํฉ๋๋ค.
๋จ๊ณ 2. Project Explorer ์ฐฝ์์ [TypeDefinition > Objects] ํญ๋ชฉ์ ์ ํํฉ๋๋ค. Module์ ์ถ๊ฐํ ์ ์๋ ์ฐฝ์ด ๋ํ๋ฉ๋๋ค.
๋จ๊ณ 3. Modules ํญ๋ชฉ์์ [+] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค. ํ์ผ ํ์๊ธฐ๊ฐ ๋ํ๋๋ฉด 'Push.json' ํ์ผ์ ์ ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํ๋ก์ ํธ์์ ์ฌ์ฉํ XPush ์ค๋ธ์ ํธ ๋ฑ๋กํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 4. Modules ๋ชฉ๋ก์ Push.json ํญ๋ชฉ์ด ์ถ๊ฐ๋ ๊ฒ์ ํ์ธํ๊ณ nexacro.XPush ํญ๋ชฉ ์์ ์๋ [+] ๋ฒํผ์ ํด๋ฆญํด XPush ์ค๋ธ์ ํธ๋ฅผ Objects ๋ชฉ๋ก์ ์ถ๊ฐํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํ๋ก์ ํธ์์ ์ฌ์ฉํ XPush ์ค๋ธ์ ํธ ๋ฑ๋กํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 5. Objects ๋ชฉ๋ก์ XPush ์ค๋ธ์ ํธ๊ฐ ์ถ๊ฐ๋ ๊ฒ์ ํ์ธํ๊ณ [OK] ๋ฒํผ์ ํด๋ฆญํด ์ฐฝ์ ๋ซ์ต๋๋ค. XPush ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํ๋ฉด์ ๋ณ๊ฒฝ๋ ์ค์ ์ ๋ฐ์ํ๊ธฐ ์ํด ํ๋ก์ ํธ๋ฅผ ์๋ก ๋ก๋ฉํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ค์๊ฐ ๋ฉ์์ง๋ฅผ Grid ์ปดํฌ๋ํธ์ ํ์ํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
XPush ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํด์ X-PUSH ์๋ฒ์์ ์ค์๊ฐ์ผ๋ก ์ ์ก๋๋ ๋ฉ์์ง๋ฅผ ์์ ํ๊ณ ์์ ๋ ๋ฉ์์ง๋ฅผ Grid ์ปดํฌ๋ํธ์ ํ์ํฉ๋๋ค.
๋
ธํธ:
์ค์๊ฐ ๋ฉ์์ง๋ฅผ ์์ ํ๊ธฐ ์ํด์๋ X-PUSH ์๋ฒ๊ฐ ๋์ํ๊ณ ์์ผ๋ฉฐ ๋ฉ์์ง ๊ณต๊ธ์(Message Provider) ์๋น์ค๊ฐ ์คํ๋ ์ํ์ฌ์ผ ํฉ๋๋ค. ๋ฉ์์ง ์ ์ก์ run_provider_demo_Push.bat ํ์ผ ์คํ ์ ์ ์กํ๋ฉฐ ์คํ์ ๋ฉ์ถ ๋๊น์ง ๊ณ์ ์ ์กํฉ๋๋ค.
๋จ๊ณ 1. ๋ฉ๋ด[File > New > Form]๋ฅผ ์ ํํ๊ณ ์๋ก์ด Form ํ๋ฉด์ ์์ฑํฉ๋๋ค.
๋จ๊ณ 2. Form ํ๋ฉด์ Grid ์ปดํฌ๋ํธ์ Dataset ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํฉ๋๋ค.
๋จ๊ณ 3. Dataset Editor์์ Dataset ์ค๋ธ์ ํธ์ ์ปฌ๋ผ ์์ฑ์ ์๋์ ๊ฐ์ด ์ค์ ํ๊ณ Grid ์ปดํฌ๋ํธ์ ๋ฐ์ธ๋ฉํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|์ค์๊ฐ ๋ฉ์์ง๋ฅผ Grid ์ปดํฌ๋ํธ์ ํ์ํ๊ธฐ/1.jpg</ImgTag>
๋
ธํธ:
Dataset ์ค๋ธ์ ํธ์ ์ปฌ๋ผ ์์ฑ์ layouturl ์์ฑ๊ฐ์ผ๋ก ์ง์ ํ๋ ๋ฉ์์ง ๋ ์ด์์ XML ํ์ผ์ ์ ์๋ id ๊ฐ์ด ๊ฐ์์ผ ํฉ๋๋ค.
<CodeTag>
...<message type='OPDT'> <field id='id' type='string' size='9'/> <field id='content' type='string' size='255'/></message>...
</CodeTag>
๋จ๊ณ 4. ์ปดํฌ๋ํธ ํด๋ฐ์์ XPush ์ค๋ธ์ ํธ๋ฅผ ํ์ธํ๊ณ ๋ง์ฐ์ค ๋๋๊ทธ์ค๋๋กญ ๋์์ผ๋ก Form ํ๋ฉด์ XPush ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํฉ๋๋ค. XPush ์ค๋ธ์ ํธ๋ Dataset ์ค๋ธ์ ํธ์ฒ๋ผ Invisible Object ์์ญ์ ์ถ๊ฐ๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|์ค์๊ฐ ๋ฉ์์ง๋ฅผ Grid ์ปดํฌ๋ํธ์ ํ์ํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 5. XPush ์ค๋ธ์ ํธ๋ฅผ ์ ํํ๊ณ ์์ฑ์ฐฝ์์ layouturl, iplist ์์ฑ๊ฐ์ ์ง์ ํฉ๋๋ค. layouturl ์์ฑ๊ฐ์ ์ ์๋ ๋ฉ์์ง ๋ ์ด์์ XML ํ์ผ์ URL๊ฐ์ ์ง์ ํ๊ฑฐ๋ ๋ก์ปฌ ์์น์ ํ์ผ์ ์ง์ ํ ์ ์์ต๋๋ค. iplist ์์ฑ๊ฐ์ X-PUSH ์๋ฒ IP์ PORT ๊ฐ์ ์ง์ ํฉ๋๋ค.
์ฃผ์:
iplist ์์ฑ๊ฐ์ TCP ํต์ (NRE)๊ณผ HTTP ํต์ (์น๋ธ๋ผ์ฐ์ ) ์ค ํ๋๋ฅผ ์ ํํ ์ ์์ต๋๋ค.
TCP ํต์ ๋ฐฉ์์ ์ง์ ํ๋ ๊ฒฝ์ฐ์๋ PORT ๋ฒํธ๋ฅผ 10081๋ก ์ง์ ํฉ๋๋ค.
HTTP ํต์ ๋ฐฉ์์ ์ง์ ํ๋ ๊ฒฝ์ฐ์๋ PORT ๋ฒํธ๋ฅผ 10080์ผ๋ก ์ง์ ํฉ๋๋ค.
NRE์ ์น๋ธ๋ผ์ฐ์ ๋ชจ๋ ์๋น์คํด์ผ ํ๋ ๊ฒฝ์ฐ์๋ iplist ์์ฑ๊ฐ์ ๋ ๊ฐ์ง PORT ์ค์ ์ ๋ชจ๋ ์ง์ ํด์ผ ํฉ๋๋ค.
iplist='http://localhost:10080, localhost:10081'
๋จ๊ณ 6. Form ์ค๋ธ์ ํธ์ onload ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. onload ์ด๋ฒคํธ ํจ์์์๋ X-PUSH ์๋ฒ์ ์ฐ๊ฒฐ์ ์๋ํฉ๋๋ค.
<CodeTag>
this.Form_Work_onload = function(obj:nexacro.Form,e:nexacro.LoadEventInfo){ this.XPush00.connect('user00', 'password');};
</CodeTag>
๋จ๊ณ 7. XPush ์ค๋ธ์ ํธ์ onsuccess ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. ์ฐ๊ฒฐ์ด ์ฑ๊ณตํ ๊ฒฝ์ฐ์ ๋ฉ์์ง ์์ ์ ์ํด subscribe ๋ฉ์๋๋ฅผ ์คํํฉ๋๋ค. ์ค์๊ฐ์ผ๋ก ๋ฉ์์ง๋ฅผ ์์ ํด์ Dataset ์ค๋ธ์ ํธ์ ๋ฉ์์ง ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐํฉ๋๋ค. ์ถ๊ฐ๋ ๋ฉ์์ง๋ Grid ์ปดํฌ๋ํธ๋ฅผ ํตํด ํ์๋ฉ๋๋ค.
<CodeTag>
this.XPush00_onsuccess = function(obj:nexacro.XPush,e:nexacro.XPushEventInfo){ if(e.action == nexacro.XPushAction.AUTH) // 0 { this.XPush00.subscribe('OPDT', 'ALL', this, this.Dataset00, 'append', 'fn_PushCallback'); }};this.fn_PushCallback = function(Row,ChangeColumn,AllColumn,Type,ActionType){ trace(Row,ChangeColumn,AllColumn,Type,ActionType);}
</CodeTag>
๋จ๊ณ 8. XPush ์ค๋ธ์ ํธ์ onerror ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. ์ฐ๊ฒฐ์ด ์คํจํ ๊ฒฝ์ฐ์๋ ์์ธ์ ํ์ธํ ์ ์์ต๋๋ค.
<CodeTag>
this.XPush00_onerror = function(obj:nexacro.XPush,e:nexacro.XPushErrorEventInfo){ trace(e.errormsg, e.statuscode);};
</CodeTag>
๋จ๊ณ 9. ์ฑ์ ์คํํ๋ฉด onload ์ด๋ฒคํธ ํจ์ ๋ด์์ X-PUSH ์๋ฒ์ ์ฐ๊ฒฐํ๊ณ ์ ์ก๋๋ ๋ฉ์์ง๋ฅผ ์์ ํ๊ธฐ ์์ํฉ๋๋ค. ์ค์๊ฐ์ผ๋ก ์์ ๋ ๋ฉ์์ง๊ฐ Grid ์ปดํฌ๋ํธ์ ํ์๋๋ ๊ฒ์ ํ์ธํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|์ค์๊ฐ ๋ฉ์์ง๋ฅผ Grid ์ปดํฌ๋ํธ์ ํ์ํ๊ธฐ/3.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋
ธํธ:
Form ํ๋ฉด์ ์์ฑํ๊ณ XPush ์ค๋ธ์ ํธ๋ฅผ ์ด๊ธฐํํ๋ ๊ณผ์ ์ ์ค์๊ฐ ๋ฉ์์ง๋ฅผ Grid ์ปดํฌ๋ํธ์ ํ์ํ๊ธฐ์ ๊ฐ์ต๋๋ค. onload ์ด๋ฒคํธ ํจ์์์ ๋ฌ๋ผ์ง๋ ๋ถ๋ถ๋ถํฐ ์ค๋ช
ํฉ๋๋ค.
๋
ธํธ:
์ ๋ขฐ์ฑ ๋ฉ์์ง๋ฅผ ์์ ํ๊ธฐ ์ํด์๋ X-PUSH ์๋ฒ๊ฐ ๋์ํ๊ณ ์์ผ๋ฉฐ ๋ฉ์์ง ๊ณต๊ธ์(Message Provider) ์๋น์ค๊ฐ ์คํ๋ ์ํ์ฌ์ผ ํฉ๋๋ค. ๋ฉ์์ง ์ ์ก์ run_provider_demo_Reli.bat ํ์ผ ์คํ ์ ํ๋์ ๋ฉ์์ง๋ฅผ ์ ์กํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ ์ ๋ขฐ์ฑ ๋ฉ์์ง ์์ ์ ์ํด ํ ํฝ ๋ฑ๋กํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ ๋ขฐ์ฑ ๋ฉ์์ง(Reliable messaging)๋ ์ฌ์ฉ์์๊ฒ ๋ฉ์์ง๋ฅผ ์ ๋ฌํ๋ ๊ฒ์ ๋ณด์ฅํ๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค. ์ค์๊ฐ ๋ฉ์์ง๋ ๋ฉ์์ง๋ฅผ ์ ์กํ๊ณ ์ฌ์ฉ์๊ฐ ๋ฉ์์ง๋ฅผ ์์ ํ๋์ง ์ฌ๋ถ๋ฅผ ํ์ธํ์ง ์์ต๋๋ค. ๋ง์น ๋ผ๋์ค ๋ฐฉ์ก์ฒ๋ผ ๊ณ์ ๋ฉ์์ง๋ฅผ ์ ๋ฌํ๊ณ ์ฌ์ฉ์๊ฐ ์ด๋ฅผ ์์ ํ๋ ๊ฒ์
๋๋ค. ํ์ง๋ง ์ ๋ขฐ์ฑ ๋ฉ์์ง๋ ํน์ ์ฌ์ฉ์์๊ฒ ๋ณด๋ด๋ ์์ฑ ๋ฉ์์ง์ ๋น์ทํฉ๋๋ค. ๋ฉ์์ง๋ฅผ ์ ์กํ๋ ์์ ์ ํ์ธํ์ง ๋ชปํ๋๋ผ๋ ๋์ค์ ํ์ธํ ์ ์๋๋ก ๋ณด์ฅํ๋ ๊ฒ์
๋๋ค.
์ ๋ขฐ์ฑ ๋ฉ์์ง๋ฅผ ์ฒ๋ฆฌํ๊ธฐ ์ํด์๋ ์ด๋ค ์ฌ์ฉ์๊ฐ ์ด๋ค ๋ฉ์์ง๋ฅผ ์์ ํ ๊ฒ์ธ์ง ๋ฏธ๋ฆฌ ์ฝ์๋์ด ์์ด์ผ ํฉ๋๋ค. ํ ํฝ ๋ฑ๋กํ๊ธฐ๋ฅผ ํตํด ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๊ด๋ จ ์ ๋ณด๋ฅผ ๋ฑ๋กํฉ๋๋ค.
๋จ๊ณ 1. Form ์ค๋ธ์ ํธ์ onload ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. onload ์ด๋ฒคํธ ํจ์์์๋ X-PUSH ์๋ฒ์ ์ฐ๊ฒฐ์ ์๋ํฉ๋๋ค.
<CodeTag>
this.Form_Work_onload = function(obj:nexacro.Form,e:nexacro.LoadEventInfo){ this.XPush00.connect('user00', 'password');}
</CodeTag>
๋จ๊ณ 2. XPush ์ค๋ธ์ ํธ์ onsuccess ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. ์ฐ๊ฒฐ์ด ์ฑ๊ณตํ ๊ฒฝ์ฐ์ ๋ฉ์์ง ์์ ์ ์ํด subscribe ๋ฉ์๋๋ฅผ ์คํํฉ๋๋ค. ์ค์๊ฐ์ผ๋ก ๋ฉ์์ง๋ฅผ ์์ ํด์ Dataset ์ค๋ธ์ ํธ์ ๋ฉ์์ง ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐํฉ๋๋ค. ์ถ๊ฐ๋ ๋ฉ์์ง๋ Grid ์ปดํฌ๋ํธ๋ฅผ ํตํด ํ์๋ฉ๋๋ค.
<CodeTag>
this.XPush00_onsuccess = function(obj:nexacro.XPush,e:nexacro.XPushEventInfo){ if(e.action == nexacro.XPushAction.AUTH) // 0 { this.XPush00.subscribe('NOTI', 'ALL', this, this.Dataset00, 'append', 'fn_PushCallback'); }};
</CodeTag>
๋จ๊ณ 3. Form ํ๋ฉด์ Button ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ๊ณ Button ์ปดํฌ๋ํธ์ onclick ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. connect ๋ฉ์๋ ์คํ ์ ์ฌ์ฉํ userid๋ก ํ ํฝ์ ๋ฑ๋กํฉ๋๋ค. ํ ํฝ ๋ฑ๋ก์ ํ ๋ฒ๋ง ์คํํฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.XPush00.registerTopic('NOTI', 'ALL');};
</CodeTag>
๋จ๊ณ 4. XPush ์ค๋ธ์ ํธ์ onerror ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. ํ ํฝ ๋ฑ๋ก์ด ์คํจํ๊ฑฐ๋ ์ด๋ฏธ ๋ฑ๋ก๋ ํ ํฝ์ด ์๋ ๊ฒฝ์ฐ์๋ ์คํจ ์์ธ์ ํ์ธํ ์ ์์ต๋๋ค.
<CodeTag>
this.XPush00_onerror = function(obj:nexacro.XPush,e:nexacro.XPushErrorEventInfo){ trace(e.errormsg, e.statuscode);};
</CodeTag>
๋จ๊ณ 5. ํ ํฝ์ด ๋ฑ๋ก๋๋ฉด ์ ๋ขฐ์ฑ ๋ฉ์์ง๋ฅผ ์์ ํ ์ ์์ต๋๋ค. ๋ฐ์ดํฐ๋ฒ ์ด์ค T_TOPIC ํ
์ด๋ธ์์ ๋ฑ๋ก๋ ํ ํฝ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ|์ ๋ขฐ์ฑ ๋ฉ์์ง ์์ ์ ์ํด ํ ํฝ ๋ฑ๋กํ๊ธฐ/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ ์ ๋ขฐ์ฑ ๋ฉ์์ง ์์ ํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ฑ์ด ์คํ๋์ง ์์ ์ํ์์ ๋ฉ์์ง๊ฐ ์ ์ก๋๋ฉด ํด๋น ๋ฉ์์ง๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค T_USER_MESSAGE ํ
์ด๋ธ์ ์ ์ฅ๋ฉ๋๋ค. MESSAGE_STATE ์ปฌ๋ผ๊ฐ์ด 0์ด๋ฉด ์ฌ์ฉ์์๊ฒ ๋ฉ์์ง๊ฐ ์ ๋ฌ๋์ง ์์ ์ํ์
๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ|์ ๋ขฐ์ฑ ๋ฉ์์ง ์์ ํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 1. Form ํ๋ฉด์ Button ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ๊ณ Button ์ปดํฌ๋ํธ์ onclick ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. connect ๋ฉ์๋ ์คํ ์ ์ฌ์ฉํ userid๋ก ๋ฏธ์์ ๋ ๋ฉ์์ง๊ฐ ์๋์ง ํ์ธํ๊ณ ๋ฉ์์ง๋ฅผ ์์ ํฉ๋๋ค. ์๋ฒ์์ ๋ฏธ์์ ๋ ๋ฉ์์ง๋ฅผ ์ ์กํ๊ณ ๋๋ฉด MESSAGE_STATE ์ปฌ๋ผ๊ฐ์ด 1๋ก ๋ณ๊ฒฝ๋ฉ๋๋ค.
<CodeTag>
this.Button01_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.XPush00.requestMessage('NOTI', 'ALL');};
</CodeTag>
๋จ๊ณ 2. requestMessage ๋ฉ์๋๋ ๋ณ๋์ ์ฝ๋ฐฑํจ์๋ฅผ ์ง์ ํ์ง ์๊ณ subscribe ๋ฉ์๋ ์คํ ์ ์ง์ ํ ์ฝ๋ฐฑํจ์๋ฅผ ์ฌ์ฉํฉ๋๋ค. requestMessage ๋ฉ์๋๋ฅผ ์คํํด ๋ฏธ์์ ๋ ๋ฉ์์ง๋ฅผ ์์ ํ๋ฉด sendResponse ๋ฉ์๋๋ฅผ ์คํํด ํด๋น ๋ฉ์์ง ์์ ์ ๋ํ ์๋ต์ ๋ณด๋ผ ์ ์์ต๋๋ค. ์๋ฒ์์ ์๋ต์ ์์ ํ๋ฉด MESSAGE_STATE ์ปฌ๋ผ๊ฐ์ด 2๋ก ๋ณ๊ฒฝ๋ฉ๋๋ค.
<CodeTag>
this.fn_PushCallback = function(Row,ChangeColumn,AllColumn,Type,ActionType,MessageId){ trace(Row,ChangeColumn,AllColumn,Type,ActionType,MessageId); if(ActionType=='RELI') this.XPush00.sendResponse(MessageId);}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ ๋ฑ๋ก๋ ํ ํฝ ์ทจ์ํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ ์ด์ ํด๋น ๋ฉ์์ง๋ฅผ ์์ ํ ํ์๊ฐ ์๋ค๋ฉด ๋ฑ๋ก๋ ํ ํฝ์ ์ทจ์ํด์ฃผ์ด์ผ ํฉ๋๋ค. unregisterTopic ๋ฉ์๋๋ฅผ ์ฌ์ฉํด ๋ฑ๋ก๋ ํ ํฝ์ ์ทจ์ํ ์ ์์ต๋๋ค.
๋จ๊ณ 1. Form ํ๋ฉด์ Button ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ๊ณ Button ์ปดํฌ๋ํธ์ onclick ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค. connect ๋ฉ์๋ ์คํ ์ ์ฌ์ฉํ userid๋ก ํ ํฝ์ ๋ฑ๋กํ ํ ํฝ์ ์ทจ์ํฉ๋๋ค.
<CodeTag>
this.Button02_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.XPush00.unregisterTopic('NOTI', 'ALL');};
</CodeTag>
๋จ๊ณ 2. ๋ฑ๋ก๋ ํ ํฝ์ ์ทจ์ํ๋ฉด ์ ๋ขฐ์ฑ ๋ฉ์์ง๋ฅผ ์์ ํ ์ ์์ต๋๋ค. ๋ฐ์ดํฐ๋ฒ ์ด์ค T_TOPIC ํ
์ด๋ธ์์ ๋ฑ๋ก๋ ํ ํฝ ํญ๋ชฉ ์ค ACTIVE ์ปฌ๋ผ๊ฐ์ด 'N'์ผ๋ก ๋ณ๊ฒฝ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|X-PUSH ์ฑ ๊ฐ๋ฐํ๊ธฐ|์ ๋ขฐ์ฑ ๋ฉ์์ง ์ฒ๋ฆฌํ๊ธฐ|๋ฑ๋ก๋ ํ ํฝ ์ทจ์ํ๊ธฐ/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์์ ฏ์ ์๊ณ๋ CPU ํํฉ ๊ฐ์ ์ค์๊ฐ ์ ๋ณด๋ฅผ ๋ชจ๋ํฐ๋งํ๊ธฐ ์ํ ์ฉ๋๋ก ํ๋ฉด์ ํญ์ ๋์๋๋ ์์ UI ๋๊ตฌ์
๋๋ค. ๋ฅ์ฌํฌ๋ก์์๋ ํฌ๋ช
ํ ๋ ์ด์ด๋ฅผ ๊ฐ์ง๋ ์ ์ฐฝ์ ๋์ฐ๋ ๋ฐฉ์์ผ๋ก ์์ ฏ UI๋ฅผ ๊ตฌํํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ฐ๋จํ ๋ฌ๋ ฅ ์์ ฏ ๋ง๋ค๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ์์ฑํฉ๋๋ค. Frameset Template์์ Full ํ์
์ ์ ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|๊ฐ๋จํ ๋ฌ๋ ฅ ์์ ฏ ๋ง๋ค๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 2. Form_Work ํผ์ Button ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ๊ณ ์๋์ ๊ฐ์ด onclick ์ด๋ฒคํธ ํจ์๋ฅผ ์์ฑํฉ๋๋ค.
layered ์์ฑ์ ChildFrame ์์ฑ ์ ๋ฐฐ๊ฒฝ ์๋์ฐ๋ฅผ ํฌ๋ช
ํ๊ฒ ์ค์ ํ๋ ์์ฑ์
๋๋ค. ์ด ์์ฑ๊ฐ์ true๋ก ์ค์ ํ๋ฉด ์ํ๋ ๋ชจ์์ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง๋ฅผ ํ๋ฉด์ ํํํ ์ ์์ต๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ nexacro.open('NewWidget', 'FrameBase::WidgetMain1.xfdl', this.getOwnerFrame(), '', 'showontaskbar=false showtitlebar=false showstatusbar=false topmost=true layered=true', 0, 0);};
</CodeTag>
WidgetMain1.xfdl ํผ์ ์์ ฏ ํํ๋ก ๋ณด์ผ ํผ์
๋๋ค. ์์ ฏ ํํ๋ก ํ์ํ UI๋ง ๋
ธ์ถํ๊ธฐ ๋๋ฌธ์ OpenStyle ํ๋ผ๋ฏธํฐ ์ค์ ์์ ํ์คํฌ๋ฐ๋ ํ์ดํ๋ฐ, ์ํํ์๋ฐ๋ ๋ณด์ด์ง ์๊ฒ ์ฒ๋ฆฌํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ค๋ฅธ ํ๋ก๊ทธ๋จ์ ๊ฐ๋ฆฌ์ง ์๋๋ก topmost ์์ฑ๊ฐ์ true๋ก ์ง์ ํฉ๋๋ค.
๋จ๊ณ 3. WidgetMain1 ๋ผ๋ ์ด๋ฆ์ผ๋ก ์๋ก์ด Form ์ค๋ธ์ ํธ๋ฅผ ์์ฑํฉ๋๋ค.
๋จ๊ณ 4. ResourceExplorer ํญ์ ์ ํํ๊ณ ์ปจํ
์คํธ ๋ฉ๋ด์์ 'Import'๋ฅผ ์ ํํฉ๋๋ค.
๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง๋ก ์ฌ์ฉํ ํฌ๋ช
ํ ์ด๋ฏธ์ง ํ์ผ์ ๊ฐ์ ธ์ต๋๋ค. ์๋ฅผ ๋ค์ด ์ ํํ์ ์ด๋ฏธ์ง๋ผ๋ฉด ์ ๋ชจ์๋ง ๋ณด์ฌ์ง๊ณ ๋ฐํ ์์ญ์ ํฌ๋ช
ํ๊ฒ ๋ณด์ฌ์ง๋๋ค. ์์ ์์๋ ์๋ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํ์ต๋๋ค.
https://pixabay.com/en/book-character-glasses-show-1773756/
๋จ๊ณ 5. Form ์ค๋ธ์ ํธ์ background ์์ฑ์์ imageurl ์์ฑ๊ฐ์ผ๋ก ํฌ๋ช
์ด๋ฏธ์ง ํ์ผ์ ์ ํํ๊ณ background-color ์์ฑ๊ฐ์ transparent๋ก ์ค์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|๊ฐ๋จํ ๋ฌ๋ ฅ ์์ ฏ ๋ง๋ค๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 6. ํฌ๋ช
์ด๋ฏธ์ง ํ์ผ์ ๋ง๊ฒ Form ์ค๋ธ์ ํธ์ ํฌ๊ธฐ๋ฅผ ์กฐ์ ํ๊ณ Calendar ์ปดํฌ๋ํธ๋ฅผ ์ ์ ํ ์์น์ ๋ฐฐ์นํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|๊ฐ๋จํ ๋ฌ๋ ฅ ์์ ฏ ๋ง๋ค๊ธฐ/3.jpg</ImgTag>
๋จ๊ณ 7. ํด๋ฐ์์ ์คํ์ต์
์ผ๋ก NRE๋ฅผ ์ ํํ๊ณ Launch ์์ด์ฝ์ ํด๋ฆญํ๊ฑฐ๋ ๋จ์ถํค (Ctrl + F5)๋ฅผ ์
๋ ฅํ๊ณ ์ฑ์ ์คํํฉ๋๋ค.
์ฃผ์:
Launch ์คํ ์ NRE ์ด์ธ์ ์น๋ธ๋ผ์ฐ์ ์์๋ ์์ ฏ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๋จ๊ณ 8. ์ฑ์์ ๋ฒํผ์ ํด๋ฆญํ๋ฉด WidgetMain1 ์ผ๋ก ๋ง๋ ์์ ฏ UI๊ฐ ํ๋ฉด์ ํ์๋ฉ๋๋ค.
๋จ๊ณ 9. ํฌ๋ช
ํ์ง ์์ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง ์์ญ์ ๋ง์ฐ์ค๋ก ๋๋๊ทธํ๋ฉด ์ํ๋ ์์น๋ก ์ด๋ํ ์ ์์ต๋๋ค.
์ฃผ์:
ํฌ๋ช
ํ ๋ฐฐ๊ฒฝ ์์ญ ํด๋ฆญ ์์๋ ๋ค์ ๋ณด์ฌ์ง๋ ์๋์ฐ์ ํฌ์ปค์ค๊ฐ ์ด๋ํ๊ธฐ ๋๋ฌธ์ ๋ง์ฐ์ค๋ก ๋๋๊ทธํด์ ์์ ฏ ์์น๋ฅผ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
๊ฐ๋ณ ์ปดํฌ๋ํธ ํด๋ฆญ ์์๋ ๊ฐ๋ณ ์ปดํฌ๋ํธ ๋์์ ํด์ผ ํ๊ธฐ ๋๋ฌธ์ ๋ง์ฐ์ค๋ก ๋๋๊ทธํด์ ์์ ฏ ์์น๋ฅผ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|๊ฐ๋จํ ๋ฌ๋ ฅ ์์ ฏ ๋ง๋ค๊ธฐ/4.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋ฐ๋ก ์คํ๋๋ ์์ ฏ ๋ง๋ค๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ด์ ์์ ์์๋ ๋ฉ์ธ ํผ์ ์คํํ๊ณ ๋ฒํผ ํด๋ฆญ ์ ์์ ฏ UI๊ฐ ๋ํ๋ฌ์ต๋๋ค. ์ด๋ฒ ์์ ์์๋ ์ฌ์ฉ์์ ์
๋ ฅ ์์ด ๋ฐ๋ก ์คํ๋๋(๊ฒ ์ฒ๋ผ ๋ณด์ด๋) ์์ ฏ์ ๋ง๋ค์ด๋ด
๋๋ค.
๋จ๊ณ 1. ์ด์ ์์ ์์ ์ฌ์ฉํ Form_Work ํผ์ ์๋์ ๊ฐ์ด oninit ์ด๋ฒคํธ ํจ์๋ฅผ ์์ฑํฉ๋๋ค.
<CodeTag>
this.Form_Work_oninit = function(obj:nexacro.Form,e:nexacro.EventInfo){ nexacro.getApplication().mainframe.set_visible(false); nexacro.open('NewWidget', 'FrameBase::WidgetMain1.xfdl', this.getOwnerFrame(), '', 'showontaskbar=false showtitlebar=false showstatusbar=false topmost=true layered=true', 0, 0);};
</CodeTag>
๋จ๊ณ 2. ์์ ฏ์ ์ข
๋ฃํ๊ธฐ ์ํ Button ์ปดํฌ๋ํธ๋ฅผ ์์ ฏ ํผ(WidgetMain1)์ ์ถ๊ฐํฉ๋๋ค.
์ด์ ์์ ์์๋ ๋ฉ์ธ ํผ์ ๋ซ์ผ๋ฉด ์์ ฏ์ด ๊ฐ์ด ์ข
๋ฃ๋๋๋ฐ, ์์ ฏ์๋ ํ์ดํ๋ฐ๊ฐ ํ์๋์ง ์์์ ๋ซ๊ธฐ ๋ฒํผ์ ๋ฐ๋ก ๋ง๋ค์ด์ฃผ์ด์ผ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|๋ฐ๋ก ์คํ๋๋ ์์ ฏ ๋ง๋ค๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. Button ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ๊ณ ์๋์ ๊ฐ์ด onclick ์ด๋ฒคํธ ํจ์๋ฅผ ์์ฑํฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.close();};
</CodeTag>
๋จ๊ณ 4. ํด๋ฐ์์ ์คํ์ต์
์ผ๋ก NRE๋ฅผ ์ ํํ๊ณ Launch ์์ด์ฝ์ ํด๋ฆญํ๊ฑฐ๋ ๋จ์ถํค (Ctrl + F5)๋ฅผ ์
๋ ฅํ๊ณ ์ฑ์ ์คํํฉ๋๋ค.
์ฑ์ด ์คํ๋๋ฉด์ ๋ฉ์ธํ๋ ์์ ๋ณด์ด์ง ์๊ฒ ํ๋ฉด์ open ๋ฉ์๋๊ฐ ์คํ๋๊ธฐ ๋๋ฌธ์ ์์ ฏ UI๋ง ํ๋ฉด์ ํ์๋ฉ๋๋ค. [CLOSE] ๋ฒํผ์ ํด๋ฆญํ๋ฉด ์์ ฏ UI๊ฐ ๋ซํ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|๋ฐ๋ก ์คํ๋๋ ์์ ฏ ๋ง๋ค๊ธฐ/2.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์์ ฏ์ด ๋ ์์ผ๋ฉด ๋ค๋ฅธ ์์
์ ํ ๋ ๋ฐฉํด๊ฐ ๋ ์ ์์ต๋๋ค. ๊ทธ๋ฐ ๊ฒฝ์ฐ์๋ ์ ์ ์์ ฏ์ ๊ฐ์ถ์ด๋์๋ค๊ฐ ๋ค์ ๋ณด์ด๋๋ก ํ ์ ์์ต๋๋ค. ์ฑ์ ํธ๋ ์ด๋ฅผ ๋ฑ๋กํ๊ณ ํธ๋ ์ด์์ ์์ ฏ์ ์ ์ดํ ์ ์์ต๋๋ค.
๋จ๊ณ 1. Project Explorer์์ App์ ์ ํํ๊ณ ์ปจํ
์คํธ ๋ฉ๋ด์์ [Add > Tray] ํญ๋ชฉ์ ์ ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 2. ํธ๋ ์ด ์์ด์ฝ์ ์ ํํ๊ณ ์์ฑ์ฐฝ์์ icon, tooltip ์์ฑ๊ฐ์ ์ค์ ํฉ๋๋ค.
icon: 'application'
tooltip: Nexacro Widget Tray
๋
ธํธ:
icon ์์ฑ๊ฐ์ ๊ธฐ๋ณธ์ผ๋ก ์ ๊ณต๋๋ ์์คํ
์์ด์ฝ์ ์ฌ์ฉํ๊ฑฐ๋ URL ๊ฐ์ ์ค์ ํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 3. onrbuttonup ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค.
'PopupMenu00'์ ๋ค์ ๋จ๊ณ์์ ๋ง๋ค PopupMenu ์ปดํฌ๋ํธ id ๊ฐ์
๋๋ค. ํธ๋ ์ด์์ ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํผ์ ํด๋ฆญํ์ ๋ ๋ฉ๋ด๊ฐ ํ์๋๋๋ก ํฉ๋๋ค.
<CodeTag>
this.Tray0_onrbuttonup = function(obj:nexacro.Tray,e:nexacro.MouseEventInfo){ var pdivWigetMenu = obj.items[obj.findItem('PopupMenu00')]; pdivWigetMenu.trackPopup()};
</CodeTag>
๋จ๊ณ 4. ํธ๋ ์ด ์์ด์ฝ ์๋์ PopupMenu ์ฐฝ์์ ์ถ๊ฐํ๊ธฐ ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/3.jpg</ImgTag>
๋จ๊ณ 5. PopupMenu00 ํญ๋ชฉ์ ์ ํํ๋ฉด ์ค๋ฅธ์ชฝ ์์ฑ์ฐฝ์์ innerdataset์ ์ค์ ํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/4.jpg</ImgTag>
captioncolumn, idcolumn ํญ๋ชฉ์ 'Widget', 'Exit'๋ก ์ง์ ํ๊ณ levelcolumn ํญ๋ชฉ์ 0์ผ๋ก ์ง์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/5.jpg</ImgTag>
๋จ๊ณ 6. ์์ฑ์ฐฝ์์ Event ์์ด์ฝ์ ์ ํํ๋ฉด ์ด๋ฒคํธ ํจ์๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค. onmenuclick ์ด๋ฒคํธ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค.
ํธ๋ ์ด์์ ์ค๋ฅธ์ชฝ ๋ง์ฐ์ค ๋ฒํผ์ ํด๋ฆญํด์ ๋ฉ๋ด๋ฅผ ํ์ํ๊ณ ๋ฉ๋ด ํญ๋ชฉ์ ์ ํํ์ ๋์ ๋์์ ์ง์ ํ๋ ์ฝ๋์
๋๋ค. 'Widget' ํญ๋ชฉ์ ์ ํํ์ ๋ ์์ ฏ์ด ๋ซํ์๋(๋ณด์ด์ง ์๋) ๊ฒฝ์ฐ์๋ ์์ ฏ์ ๋ณด์ฌ์ฃผ๊ณ ์ด๋ฏธ ์์ ฏ์ด ํ์๋๊ณ ์๋ ๊ฒฝ์ฐ์๋ ๋ก๊ทธ๋ง ๊ธฐ๋กํฉ๋๋ค. 'Exit' ํญ๋ชฉ์ ์ ํํ ๊ฒฝ์ฐ์๋ ์ฑ์ ์ข
๋ฃํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/6.jpg</ImgTag>
<CodeTag>
this.Tray0_PopupMenu00_onmenuclick = function(obj:nexacro.TrayPopupMenu,e:nexacro.MenuClickEventInfo){ if(e.id == 'Widget') { var widgetFrame = nexacro.getPopupFrames()['NewWidget']; if(widgetFrame.visible) { trace(widgetFrame); } else { widgetFrame.set_visible(true); } } else if(e.id == 'Exit') { nexacro.getApplication().exit(); }};
</CodeTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/7.jpg</ImgTag>
๋จ๊ณ 7. ์์ ฏ ํผ(WidgetMain1)์์ ๋ฒํผ ํด๋ฆญ ์ ๋ฐ์ํ๋ ์ด๋ฒคํธ ์คํฌ๋ฆฝํธ๋ฅผ ์์ ํฉ๋๋ค.
ํธ๋ ์ด์์ ๋ฉ๋ด ์ ํ ์ ๋งค๋ฒ ์๋ก ์์ ฏ ํ๋ฉด์ ์์ฑํ์ง ์๊ณ visible ์์ฑ๊ฐ๋ง ์์ ํด์ ํ์ ์ฌ๋ถ๋ง ๋ณ๊ฒฝํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ์์ ฏ์ด ๋ซํ ๋ ํธ๋ ์ด ์์ญ์ ๋ฉ์์ง๋ฅผ ํ์ํ๋๋ก ์ฝ๋๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ //this.close(); this.parent.set_visible(false); nexacro.getApplication().trays['Tray0'].showBalloonTip('information', 'Info', 'Widget Close');};
</CodeTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์์ ฏ ์ฑ ๊ฐ๋ฐํ๊ธฐ|ํธ๋ ์ด์์ ์์ ฏ ์ ์ดํ๊ธฐ/8.jpg</ImgTag>
๋จ๊ณ 8. ํด๋ฐ์์ ์คํ์ต์
์ผ๋ก NRE๋ฅผ ์ ํํ๊ณ Launch ์์ด์ฝ์ ํด๋ฆญํ๊ฑฐ๋ ๋จ์ถํค (Ctrl + F5)๋ฅผ ์
๋ ฅํ๊ณ ์๋์ฐ ํ๋ฉด ์ค๋ฅธ์ชฝ ์๋์ ํธ๋ ์ด๊ฐ ์ ์์ ์ผ๋ก ํ์๋๊ณ ์ค๋ฅธ์ชฝ ๋ง์ฐ์ค ๋ฒํผ ํด๋ฆญ ์ ๋ฉ๋ด๊ฐ ํ์๋๋์ง ํ์ธํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
WinAppDriver ์ฐ๋ ๊ธฐ๋ฅ์ ๋ฅ์ฌํฌ๋ก์์ ์ ๊ณตํ๋ UIAutomation ์ธํฐํ์ด์ค๋ฅผ ์ฌ์ฉํด NRE์์ ์คํํ๋ ์ฑ์ ์์ฑ์ ์ฝ๊ฑฐ๋ ์ฐ๊ณ ํ๋ผ๋ฏธํฐ๋ฅผ ์ง์ ํด ๋ฉ์๋๋ฅผ ์คํํ๋ ๊ฒ์ ์ง์ํฉ๋๋ค. ์
๋ ๋์ ๊ฐ์ UI ์๋ํ ํ
์คํธ ๋๊ตฌ๋ฅผ ์ฌ์ฉํด ๋จ์ ํ
์คํธ๋ฅผ ์์ฑํ๊ณ ํ
์คํธํ ์ ์์ต๋๋ค.
์ด๋ฒ ์ฅ์์๋ WinAppDriver๋ฅผ ์ค์นํ๊ณ ๋น์ฃผ์ผ ์คํ๋์ค์ ์ดํด๋ฆฝ์ค์์ ๊ธฐ๋ณธ์ ์ธ C#, Java ํ๋ก์ ํธ๋ฅผ ์์ฑํด ๋ฅ์ฌํฌ๋ก ์ฑ์ ์ฐ๊ฒฐํ๋ ๋จ๊ณ๋ฅผ ์ดํด๋ด
๋๋ค.
์ฃผ์:
WinAppDriver๋ ์๋์ฐ 10 ์ด์ ํ๊ฒฝ์์ ๋์ํฉ๋๋ค.
https://github.com/Microsoft/WinAppDriver#system-requirements<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ WinAppDriver ์ค์นํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ์๋์ฐ ์ด์์ฒด์ [์ค์ > ๊ฐ๋ฐ์ ๊ธฐ๋ฅ ์ฌ์ฉ]์์ '๊ฐ๋ฐ์ ๋ชจ๋'๋ฅผ ํ์ฑํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|WinAppDriver ์ค์นํ๊ธฐ/1.jpg</ImgTag>
์ฃผ์:
ํด๋น ๋ชจ๋๋ฅผ ์ต์ด ํ์ฑํํ๋ ๊ฒฝ์ฐ์๋ ์ด์์ฒด์ ์ค์ ์์
์ ์ฝ๊ฐ์ ์๊ฐ์ด ๊ฑธ๋ฆด ์ ์์ต๋๋ค. ์๊ฐ ์ฌ์ ๋ฅผ ๊ฐ์ง๊ณ ๋ชจ๋๋ฅผ ํ์ฑํํด์ฃผ์ธ์.
๋จ๊ณ 2. WinAppDriver ์ค์น ํ์ผ(WindowsApplicationDriver.msi)์ ๋ด๋ ค๋ฐ์ต๋๋ค.
๋
ธํธ:
https://github.com/Microsoft/WinAppDriver
https://github.com/Microsoft/WinAppDriver/releases
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|WinAppDriver ์ค์นํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 3. ๋ด๋ ค๋ฐ์ ์ค์น ํ์ผ(WindowsApplicationDriver.msi)์ ์คํํด WinAppDriver๋ฅผ ์ค์นํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|WinAppDriver ์ค์นํ๊ธฐ/3.jpg</ImgTag>
๋จ๊ณ 4. ์ค์น ๊ฒฝ๋ก์์ WinAppDriver๋ฅผ ๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์คํํฉ๋๋ค.
๋
ธํธ:
์ผ๋ฐ์ ์ธ ์ค์น ๊ฒฝ๋ก๋ ์๋์ ๊ฐ์ต๋๋ค.
C:\Program Files (x86)\Windows Application Driver\
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|WinAppDriver ์ค์นํ๊ธฐ/4.jpg</ImgTag>
๋จ๊ณ 5. ์ ์์ ์ผ๋ก ์คํ์ด ๋๋์ง ํ์ธํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|WinAppDriver ์ค์นํ๊ธฐ/5.jpg</ImgTag>
๋
ธํธ:
ip, port ์ค์ ์ ๋ณ๊ฒฝํ๊ณ ์ ํ๋ค๋ฉด ์๋์ ๊ฐ์ด ์คํํฉ๋๋ค.
> WinAppDriver.exe [ip] [port]<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ ๊ฐ๋ฐ ๋๊ตฌ ์ค์นํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
C# ๋๋ Java ์ธ์ด๋ฅผ ์ฌ์ฉํด ๋จ์ํ
์คํธ ํ๋ก์ ํธ๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ฐ๋ฐ ๋๊ตฌ ์ค์นํ๊ธฐ ๋น์ฃผ์ผ ์คํ๋์ค ์ค์นํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
C# ์ธ์ด๋ฅผ ์ฌ์ฉํ๊ณ ๋น์ฃผ์ผ ์คํ๋์ค๋ฅผ ์ค์นํ์ง ์์ ๊ฒฝ์ฐ ๋ฌด๋ฃ๋ก ์ ๊ณต๋๋ ๊ฐ๋ฐ ๋๊ตฌ๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
๋จ๊ณ 1. ๋น์ฃผ์ผ ์คํ๋์ค ์ปค๋ฎค๋ํฐ ์ค์น ํ์ผ(vs_community__xxxx.xxxx.exe)์ ๋ด๋ ค๋ฐ์ต๋๋ค.
๋
ธํธ:
Visual Studio Community
https://visualstudio.microsoft.com/vs/community/
๋จ๊ณ 2. ๋ด๋ ค๋ฐ์ ์ค์น ํ์ผ(vs_community__xxxx.xxxx.exe)์ ์คํํด ๋น์ฃผ์ผ ์คํ๋์ค๋ฅผ ์ค์นํฉ๋๋ค.
์ฃผ์:
์ค์น ์ ํ์ํ ํจํค์ง๋ฅผ ๋ด๋ ค๋ฐ๋ ๊ณผ์ ์์ ์ฝ๊ฐ์ ์๊ฐ์ด ๊ฑธ๋ฆด ์ ์์ต๋๋ค. ์๊ฐ ์ฌ์ ๋ฅผ ๊ฐ์ง๊ณ ์ค์น๋ฅผ ์งํํด์ฃผ์ธ์.
๋จ๊ณ 3. Workloads ํญ๋ชฉ์์ 'Universal Windows Platform development'๋ฅผ ์ ํํ๊ณ ์ค์น๋ฅผ ์งํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|๊ฐ๋ฐ ๋๊ตฌ ์ค์นํ๊ธฐ/1.jpg</ImgTag>
๋
ธํธ:
๊ฐ๋ฐ ํ๊ฒฝ์ ์ค์น ํ์๋ ์ถ๊ฐํ ์ ์์ต๋๋ค.
ํ:
์คํ ์ ๋ง์ดํฌ๋ก์ํํธ ๊ณ์ ๋ก๊ทธ์ธํ๋ ์ฐฝ์ด ํ์๋๋๋ฐ, ๋ก๊ทธ์ธ ์์ด๋ ํ
์คํธ๋ ํด๋ณผ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ฐ๋ฐ ๋๊ตฌ ์ค์นํ๊ธฐ ์ดํด๋ฆฝ์ค ์ค์นํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Java ์ธ์ด๋ฅผ ์ฌ์ฉํ๊ณ ์ดํด๋ฆฝ์ค๋ฅผ ์ค์นํ์ง ์์ ๊ฒฝ์ฐ ๋ฌด๋ฃ๋ก ์ ๊ณต๋๋ ๊ฐ๋ฐ ๋๊ตฌ๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
๋จ๊ณ 1. ์ดํด๋ฆฝ์ค ์ค์น ํ์ผ(eclipse-inst-win64.exe)์ ๋ด๋ ค๋ฐ์ต๋๋ค.
๋
ธํธ:
eclipse.org
https://www.eclipse.org/downloads/
๋จ๊ณ 2. ๋ด๋ ค๋ฐ์ ์ค์น ํ์ผ(eclipse-inst-win64.exe)์ ์คํํด ์ดํด๋ฆฝ์ค๋ฅผ ์ค์นํฉ๋๋ค.
๋จ๊ณ 3. ๊ฐ๋ฐ ์ ํ ์ ํ ๋จ๊ณ์์๋ 'Java Developers' ํญ๋ชฉ์ ์ ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|WinAppDriver ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|๊ฐ๋ฐ ๋๊ตฌ ์ค์นํ๊ธฐ/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ ๋ฅ์ฌํฌ๋ก ์ฑ ๋ง๋ค๊ณ ๋ฐฐํฌํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๊ฐ๋จํ ๋ฅ์ฌํฌ๋ก ์ฑ์ ๋ง๋ค๊ณ ๋ฐฐํฌํฉ๋๋ค.
ํ:
์ด๋ฏธ ์ค์นํ ๋ฅ์ฌํฌ๋ก ์ฑ์ ์ฌ์ฉํ๋ ค๋ ๊ฒฝ์ฐ์๋ ์ด ๋จ๊ณ๋ ์ง๋๊ฐ๋๋ค.
๋จ๊ณ 1. ๋ฅ์ฌํฌ๋ก ์คํ๋์ค๋ฅผ ์คํํฉ๋๋ค.
๋จ๊ณ 2. ํ๋ก์ ํธ๋ฅผ ์์ฑํ๊ณ ๊ฐ๋จํ ํผ ํ๋ฉด์ ์์ฑํฉ๋๋ค.
Button ์ปดํฌ๋ํธ์ Edit ์ปดํฌ๋ํธ๋ง ํ๋ฉด์ ๋ฐฐ์นํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋ฅ์ฌํฌ๋ก ์ฑ ๋ง๋ค๊ณ ๋ฐฐํฌํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. Button ์ปดํฌ๋ํธ์ onclick ์ด๋ฒคํธ ํจ์๋ฅผ ์์ฑํฉ๋๋ค.
Button ์ปดํฌ๋ํธ onclick ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ๋ฉด Edit ์ปดํฌ๋ํธ์ value ์์ฑ๊ฐ์ ๋ณ๊ฒฝํฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.Edit00.set_value('BUTTON CLICK');};
</CodeTag>
๋จ๊ณ 4. ๋ฉ๋ด [Deploy > Packing (Archive&Update)] ํญ๋ชฉ์ ์ ํํ๊ณ ๋ฐฐํฌํ ์์นด์ด๋ธ ํ์ผ์ ์์ฑํฉ๋๋ค.
์๋ฒ ์ฐ๊ฒฐ ์์ด ์คํํ ์ ์๋๋ก Update Type์ 'Local'๋ก ์ง์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋ฅ์ฌํฌ๋ก ์ฑ ๋ง๋ค๊ณ ๋ฐฐํฌํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 5. [Packing] ๋ฒํผ์ ํด๋ฆญํด ์์นด์ด๋ธ ํ์ผ์ ์์ฑ๋๋ฉด [Build App] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
๋จ๊ณ 6. Build App ์ฐฝ์์ [Build] ๋ฒํผ์ ํด๋ฆญํด ์ค์น ํ์ผ์ ์์ฑํฉ๋๋ค.
๋จ๊ณ 7. ์์ฑํ ์ค์น ํ์ผ์ ์คํํด ๋ฅ์ฌํฌ๋ก ์ฑ์ ์ค์นํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ ๋น์ฃผ์ผ ์คํ๋์ค์์ ๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ๋น์ฃผ์ผ ์คํ๋์ค๋ฅผ ์คํํฉ๋๋ค.
๋จ๊ณ 2. ์๋ก์ด ํ๋ก์ ํธ ๋ง๋ค๊ธฐ์์ 'Unit Test Project'๋ฅผ ์ ํํ๊ณ ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ์์ฑํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. Appium WebDriver ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์นํฉ๋๋ค.
๋ฉ๋ด [Project > Manage NuGet Package]๋ฅผ ์ ํํ๊ณ ๊ฒ์์ฐฝ์์ 'Appium'์ ์
๋ ฅํด์ ๊ฒ์ ๊ฒฐ๊ณผ์์ Appium WebDriver ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํ์ธํฉ๋๋ค. [Install] ๋ฒํผ์ ํด๋ฆญํ๋ฉด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์นํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 4. Updates ํญ์์ Selenium ๊ด๋ จ ํจํค์ง๋ฅผ ํ์ธํฉ๋๋ค.
์ฃผ์:
์ต์ ๋ฒ์ ์ด ์ค์น๋ ๊ฒฝ์ฐ์๋ ์ฝ๋๊ฐ ๋์ํ์ง ์์ ์ ์์ต๋๋ค. ์ต์ ๋ฒ์ ์ธ ๊ฒฝ์ฐ์๋ 3.0.1 ๋ฒ์ ์ผ๋ก ๋ง์ด๋ ์
๋ฐ์ดํธํด์ฃผ์ธ์.
https://github.com/Microsoft/WinAppDriver/issues/497
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/3.jpg</ImgTag>
๋จ๊ณ 5. ์์ฑ๋ C# ์์ค์ฝ๋ํ์ผ์ ์๋์ ๊ฐ์ด ์์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/4.jpg</ImgTag>
์๋ ์ฝ๋์์ ๋ฅ์ฌํฌ๋ก ์ฑ ๊ด๋ จ ์ค์ ์ ์์ ํฉ๋๋ค. ์ฑ์ด ์ค์น๋ ๊ฒฝ๋ก, nexacro.exe ์คํ ํ์ผ ๊ฒฝ๋ก, nexacro.exe ์คํ ์ต์
์ ์ค์ ์ค์น ๊ฒฝ๋ก์ ๋ง๊ฒ ์์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/1.png</ImgTag>
<CodeTag>
using System;using System.Threading;using System.Diagnostics;using Microsoft.VisualStudio.TestTools.UnitTesting;using OpenQA.Selenium.Appium.Windows;using OpenQA.Selenium.Remote;namespace UnitTestProject1{ [TestClass] public class NexaTestSession { // winappdriver url protected const string WindowsApplicationDriverUrl = 'http://127.0.0.1:4723/'; // app path private const string NexacroAppDr = 'C:\\Program Files\\TOBESOFT\\Nexacro N\\21\\app0201'; // nexacro.exe path private const string NexacroAppId = 'C:\\Program Files\\TOBESOFT\\Nexacro N\\21\\app0201\\nexacro.exe'; // nexacro.exe argument private const string NexacroAppAg = '-k 'UnitTest' -s 'C:\\Program Files\\TOBESOFT\\Nexacro N\\21\\app0201\\app0201\\start.json''; // search root private const string FindNexacro = 'Root'; // OS/Device private const string TestOs = 'Windows'; private const string TestDevice = 'WindowsPC'; // Session Object : WindowsDriver protected static WindowsDriver<WindowsElement> session; // WinAppDriver Session Create [ClassInitialize] public static void Setup(TestContext context) { // Launch a new instance of nexacro application or find nexacro application } // WinAppDriver Session Delete public static void TearDown() { // Close the application and delete the session if (session != null) { // Close Session โ Close Application session.Close(); // Quit Session session.Quit(); // Delete Session session = null; } } [TestMethod] public void Test_Session() { Debug.WriteLine('session:' + session); Debug.WriteLine('session.SessionId:' + session.SessionId); } }}
</CodeTag>
๋จ๊ณ 6. ๋ฅ์ฌํฌ๋ก ์ฑ์ ์คํํ๊ณ ์ธ์
์ ์์ฑํ๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์์ ์ฝ๋์์ Setup ๋ฉ์๋๋ฅผ ์๋์ ๊ฐ์ด ์์ ํฉ๋๋ค.
<CodeTag>
// WinAppDriver Session Create[ClassInitialize]public static void Setup(TestContext context){ // Launch a new instance of nexacro application or find nexacro application if (session == null) { // Create a new session to launch nexacro application DesiredCapabilities appCapabilities = new DesiredCapabilities(); TimeSpan time = new TimeSpan(0, 0, 10); // Launch Nexacro appCapabilities.SetCapability('app', NexacroAppId); appCapabilities.SetCapability('appArguments', NexacroAppAg); appCapabilities.SetCapability('appWorkingDir', NexacroAppDr); appCapabilities.SetCapability('platformName', TestOs); appCapabilities.SetCapability('deviceName', TestDevice); // Request Remote WinAppDriver Service session = new WindowsDriver<WindowsElement>(new Uri(WindowsApplicationDriverUrl), appCapabilities, time); // Set implicit timeout to 1.5 seconds to make element search to retry every 500 ms for at most three times session.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(0.5)); Thread.Sleep(TimeSpan.FromSeconds(1.0)); }}
</CodeTag>
ํ:
TimeSpan ์ค์ ๊ฐ์ ๋ฐ๋ผ ํ์์์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค. ๊ทธ๋ฐ ๊ฒฝ์ฐ์๋ ์๋์ ๊ฐ์ด ์ค์ ๊ฐ์ ๋ณ๊ฒฝํด์ ํ
์คํธ๋ฅผ ์งํํฉ๋๋ค.
TimeSpan time = new TimeSpan(0, 0, 30);
๋จ๊ณ 7. ๋ฉ๋ด [Test > Run > All Tests] ํญ๋ชฉ์ ์ ํํ๋ฉด ํ
์คํธ๋ฅผ ์งํํฉ๋๋ค. ์ค์นํ ์ฑ์ด ์คํ๋๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
WinAppDriver์ ์คํํ ์ฝ์ ํ๋ฉด์์ ์ ์ ์ ๋ณด์ ์ธ์
์ด ์์ฑ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/5.jpg</ImgTag>
๋จ๊ณ 8. ๋น์ฃผ์ผ ์คํ๋์ค ํ
์คํธ ํ์๊ธฐ์์๋ ์ฑ๊ณตํ ํ
์คํธ ์ ๋ณด๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/6.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ ์ดํด๋ฆฝ์ค์์ ๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ์ดํด๋ฆฝ์ค๋ฅผ ์คํํฉ๋๋ค.
๋จ๊ณ 2. ๋ฉ๋ด [File > New > Java Project]๋ฅผ ์ ํํ๊ณ ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ์์ฑํฉ๋๋ค.
๋จ๊ณ 3. ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋ด๋ ค๋ฐ์ต๋๋ค. ์์ถ๋ ํ์ผ(.zip)์ ์์ถ์ ํด์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/1.png</ImgTag>
๋
ธํธ:
Apache Commons Lang ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์คํ ์ค ์๋์ ๊ฐ์ ์ค๋ฅ ๋ฐ์ ์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
๊ฐ๋ฐ ํ๊ฒฝ์ ๋ฐ๋ผ ํ์์์ ์๋ ์์ต๋๋ค.
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
๋จ๊ณ 4. JUnit ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ถ๊ฐํฉ๋๋ค. ๋ฉ๋ด [Project > Properties > Java Build Path > Libraries] ํญ์ ์ ํํ๊ณ [Add Library] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 5. Appium, Selenium ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ถ๊ฐํฉ๋๋ค. [Add External JARs] ๋ฒํผ์ ํด๋ฆญํ๊ณ ๋ด๋ ค๋ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํ์ผ์์ JAR ํ์ผ์ ์ถ๊ฐํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 6. [Apply and Close] ๋ฒํผ์ ํด๋ฆญํด ๋ณ๊ฒฝํ ๋ด์ฉ์ ์ ์ฉํฉ๋๋ค.
๋จ๊ณ 7. ๋ฉ๋ด [File > New > Class]๋ฅผ ์ ํํ๊ณ ์๋ก์ด ํด๋์ค ํ์ผ์ ์์ฑํฉ๋๋ค. Name ํญ๋ชฉ๋ง ์
๋ ฅํ๊ณ ๋ค๋ฅธ ์ต์
์ ์์ ํ์ง ์์ต๋๋ค.
๋จ๊ณ 8. ์์ฑ๋ Java ์์ค์ฝ๋ํ์ผ์ ์๋์ ๊ฐ์ด ์์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/3.jpg</ImgTag>
์๋ ์ฝ๋์์ ๋ฅ์ฌํฌ๋ก ์ฑ ๊ด๋ จ ์ค์ ์ ์์ ํฉ๋๋ค. ์ฑ์ด ์ค์น๋ ๊ฒฝ๋ก, nexacro.exe ์คํ ํ์ผ ๊ฒฝ๋ก, nexacro.exe ์คํ ์ต์
์ ์ค์ ์ค์น ๊ฒฝ๋ก์ ๋ง๊ฒ ์์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/2.png</ImgTag>
<CodeTag>
import org.junit.*;import org.openqa.selenium.remote.DesiredCapabilities;import org.openqa.selenium.remote.RemoteWebElement;import io.appium.java_client.windows.WindowsDriver;import java.util.concurrent.TimeUnit;import java.net.URL;public class UnitTest { // winappdriver url private String WindowsApplicationDriverUrl = 'http://127.0.0.1:4723/'; // app path private String NexacroAppDr = 'C:\\Program Files (x86)\\TOBESOFT\\Nexacro N\\21\\app0201'; // nexacro.exe path private String NexacroAppId = 'C:\\Program Files (x86)\\TOBESOFT\\Nexacro N\\21\\app0201\\nexacro.exe'; // nexacro.exe argument private String NexacroAppAg = '-k 'UnitTest' -s 'C:\\Program Files (x86)\\TOBESOFT\\Nexacro N\\21\\app0201\\app0201\\start.json''; // search root // private String FindNexacro = 'Root'; // OS/Device private String TestOs = 'Windows'; private String TestDevice = 'WindowsPC'; // Session Object : WindowsDriver private static WindowsDriver<RemoteWebElement> session = null; @Before public void setUp() throws Exception { // Launch a new instance of nexacro application or find nexacro application } @After public void tearDown() throws Exception { if (session != null) { // NexacroSession.quit(); } } @Test public void Test_01_Session() { System.out.println('session : ' + session); System.out.println('session.SessionId : ' + session.getSessionId()); }}
</CodeTag>
๋จ๊ณ 9. ๋ฅ์ฌํฌ๋ก ์ฑ์ ์คํํ๊ณ ์ธ์
์ ์์ฑํ๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์์ ์ฝ๋์์ Setup ๋ฉ์๋๋ฅผ ์๋์ ๊ฐ์ด ์์ ํฉ๋๋ค.
<CodeTag>
@Beforepublic void setUp() throws Exception { // Launch a new instance of nexacro application or find nexacro application try { // Create a new session to launch nexacro application DesiredCapabilities appCapabilities = new DesiredCapabilities(); appCapabilities.setCapability('app', NexacroAppId); appCapabilities.setCapability('appArguments', NexacroAppAg); appCapabilities.setCapability('appWorkingDir', NexacroAppDr); appCapabilities.setCapability('platformName', TestOs); appCapabilities.setCapability('deviceName', TestDevice); // Request Remote WinAppDriver Service session = new WindowsDriver<RemoteWebElement>(new URL(WindowsApplicationDriverUrl), appCapabilities); session.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS); } catch (Exception e) { e.printStackTrace(); } finally { }}
</CodeTag>
๋จ๊ณ 10. ๋ฉ๋ด [Run > Run As > JUnit Test] ํญ๋ชฉ์ ์ ํํ๋ฉด ํ
์คํธ๋ฅผ ์งํํฉ๋๋ค. ์ค์นํ ์ฑ์ด ์คํ๋๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
WinAppDriver์ ์คํํ ์ฝ์ ํ๋ฉด์์ ์ ์ ์ ๋ณด์ ์ธ์
์ด ์์ฑ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/4.jpg</ImgTag>
๋จ๊ณ 11. JUnit ํจ๋์์ ์ฑ๊ณตํ ํ
์คํธ ์ ๋ณด๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ/5.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ ๋จ์ํ
์คํธ ์คํํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ๋จ์ํ
์คํธ๋ฅผ ์คํํ ์ฝ๋๋ฅผ ์๋์ ๊ฐ์ด ์ถ๊ฐํฉ๋๋ค.
ํ์ฌ ์ธ์
์์ Button ์ปดํฌ๋ํธ๋ฅผ ์ฐพ๊ณ ๋ง์ฐ์ค ํด๋ฆญ ๋ช
๋ น์ ์ฒ๋ฆฌํฉ๋๋ค.
<CodeTag>
์ฝ๋ 4- C#[TestMethod]public void Test_Button(){ WindowsElement element = session.FindElementByAccessibilityId('mainframe.WorkFrame.form.Button00'); Assert.IsNotNull(element); Thread.Sleep(TimeSpan.FromSeconds(0.1)); element.Click();}
</CodeTag>
<CodeTag>
์ฝ๋ 4- Java@Testpublic void Test_Button() throws Exception { WebElement element = session.findElementByAccessibilityId('mainframe.WorkFrame.form.Button00'); Assert.assertNotNull(element); Thread.sleep(1000); element.click();}
</CodeTag>
๋จ๊ณ 2. ํ
์คํธ๋ฅผ ์คํํ๋ฉด ์ค์นํ ์ฑ์ด ์คํ๋๊ณ Button ์ปดํฌ๋ํธ ์์ ๋ง์ฐ์ค ์ปค์๊ฐ ์์นํ๊ณ ํด๋ฆญ ๋ช
๋ น์ ์คํํ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ|๋จ์ํ
์คํธ ์คํํ๊ธฐ/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ปดํฌ๋ํธ๋ ์ปจํธ๋กค์ ์ ๊ทผํ๊ธฐ ์ํด์ FindElementByAccessibilityId ๋ฉ์๋๋ฅผ ์ฌ์ฉํ๋๋ฐ ์ด๋ AccessibilityId ์์ฑ๊ฐ์ ํ์ธํด์ผ ํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ ์ปดํฌ๋ํธ ์์ฑ๊ฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Form์ ๋ฐฐ์น๋ ์ปดํฌ๋ํธ ์์ฒด์ ์ ๊ทผํ๋ ๋ฐฉ์์ ์๋์ ๊ฐ์ต๋๋ค.
[MainFrame id ์์ฑ๊ฐ].[ChildFrame id ์์ฑ๊ฐ].form.[Component id ์์ฑ๊ฐ]
id ์์ฑ๊ฐ์ด 'Button00'์ธ Button ์ปดํฌ๋ํธ์ ์๋ฆฌ๋จผํธ๋ฅผ ์ป๊ธฐ ์ํด์๋ ์๋์ ๊ฐ์ด ์ฝ๋๋ฅผ ์์ฑํฉ๋๋ค.
<CodeTag>
์ฝ๋ 4- C#WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Button00');
</CodeTag>
Div ์ปดํฌ๋ํธ ์์ ๋ฐฐ์นํ ์ปดํฌ๋ํธ๋ ์๋์ ๊ฐ์ด ์ ๊ทผํ ์ ์์ต๋๋ค.
<CodeTag>
์ฝ๋ 4- C#WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.CheckBox00');
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ ์ปจํธ๋กค ์์ดํ
์์ฑ๊ฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์๋ฅผ ๋ค์ด Div ์ปดํฌ๋ํธ ์์ ๋ฐฐ์น๋ Combo ์ปดํฌ๋ํธ์ dropbutton์ ์๋์ ๊ฐ์ด ์๋ฆฌ๋จผํธ๋ฅผ ์ป์ ์ ์์ต๋๋ค.
<CodeTag>
์ฝ๋ 4- C#WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.Combo00.dropbutton');
</CodeTag>
๋จ์ ํ
์คํธ๋ฅผ ์งํํ๊ธฐ ์ํด์๋ Combo ์ปดํฌ๋ํธ์ ๋๋กญ๋ค์ด๋ชฉ๋ก์ ํผ์น๊ณ ์์ดํ
์ ์ ํํด์ผ ํฉ๋๋ค. ๋๋กญ๋ค์ด๋ชฉ๋ก์ ํผ์น๊ธฐ ์ํด์๋ Combo ์ปดํฌ๋ํธ ๋ด ButtonControl์ ์ ๊ทผํด์ผ ํ๊ณ ํด๋น ์ปจํธ๋กค์ ์์ฑ๊ฐ์ ํ์ธํด์ผ ํฉ๋๋ค.
์ปจํธ๋กค ์์ฑ๊ฐ์ ๋ฅ์ฌํฌ๋ก ์คํ๋์ค์์ Help(๋จ์ถํค F1)์ ์คํํ๋ฉด ์ปดํฌ๋ํธ ๊ฐ์์์ ํ์ธํ ์ ์์ต๋๋ค. Combo ์ปดํฌ๋ํธ์์ ๋๋กญ๋ค์ด๋ชฉ๋ก์ ํผ์น๊ธฐ ์ํด ํด๋ฆญํ๋ ๋ฒํผ์ id ์์ฑ๊ฐ์ด 'dropbutton'์ด๋ผ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ|์ปจํธ๋กค, ์์ดํ
์์ฑ๊ฐ ํ์ธํ๊ธฐ/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ Inspect๋ก ์์ฑ๊ฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ฃผ์:
๋์๋ง์์ ๋
ธ์ถ๋์ง ์๋ ์์ฑ๊ฐ(ํ์ ์ปจํธ๋กค)์ ์ ํ ๋ฒ์ ์ ๋ฐ๋ผ ๋ณ๊ฒฝ๋ ์ ์์ต๋๋ค.
ํด๋น ์์ฑ๊ฐ ๋ณ๊ฒฝ ์ ์์ฑ๋ ํ
์คํธ๊ฐ ๋์ํ์ง ์์ ์ ์์ต๋๋ค.
ํ์ง๋ง ๋๋กญ๋ค์ด๋ชฉ๋ก์ ํผ์น ํ์ Item 3์ ์ ๊ทผํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์ง๋ ์๋ ค์ฃผ์ง ์์ต๋๋ค. ์ด๋ฐ ๊ฒฝ์ฐ์๋ 'Inspect' ๋ผ๋ ๋๊ตฌ๋ฅผ ์ฌ์ฉํฉ๋๋ค. 'Inspect'๋ ์๋์ฐ SDK๊ฐ ์ค์น๋์ด ์๋ค๋ฉด ์ค์น ๊ฒฝ๋ก์์ ์ฐพ์ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ|Inspect๋ก ์์ฑ๊ฐ ํ์ธํ๊ธฐ/1.jpg</ImgTag>
๋
ธํธ:
Inspect
https://docs.microsoft.com/en-us/windows/desktop/winauto/inspect-objects
๋จ๊ณ 1. ์๋์ฐ SDK ์ค์น ๊ฒฝ๋ก์์ inspect.exe ํ์ผ์ ์คํํฉ๋๋ค.
๋จ๊ณ 2. ๋ฅ์ฌํฌ๋ก ์ฑ์ ์คํํ๊ณ ๋ง์ฐ์ค ์ปค์๋ฅผ ์ํ๋ ์์น๋ก ๊ฐ์ ธ๊ฐ๋๋ค.
๋จ๊ณ 3. Combo ์ปดํฌ๋ํธ์ dropdown ๋ฒํผ์ ํด๋ฆญํด์ ๋๋กญ๋ค์ด ๋ชฉ๋ก์ ํผ์นฉ๋๋ค.
๋จ๊ณ 4. ์ํ๋ ์์ดํ
์์ญ์ ๋ง์ฐ์ค ์ปค์๋ฅผ ๊ฐ์ ธ๊ฐ๋๋ค. ์๋ ๊ทธ๋ฆผ์ฒ๋ผ Inspect๊ฐ ์ธ์ํ ๋์ ์์ญ์ ํ
๋๋ฆฌ์ ์ด ํ์๋๊ณ Inspect ์ฐฝ์ ๊ด๋ จ ์ ๋ณด๊ฐ ํ์๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ|Inspect๋ก ์์ฑ๊ฐ ํ์ธํ๊ธฐ/2.jpg</ImgTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ|Inspect๋ก ์์ฑ๊ฐ ํ์ธํ๊ธฐ/3.jpg</ImgTag>
์ฌ๋ฌ ์ ๋ณด๊ฐ ๋ณด์ฌ์ง๋๋ฐ ๊ทธ ์ค์์ AccessibilityId ์์ฑ๊ฐ์ผ๋ก ์ฌ์ฉํ ํญ๋ชฉ์ 'AutomationId'์
๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ|Inspect๋ก ์์ฑ๊ฐ ํ์ธํ๊ธฐ/4.jpg</ImgTag>
๋๋กญ๋ค์ด๋ชฉ๋ก์์ 2๋ฒ์งธ ์์ดํ
์ ์ ํํ ๋๋ ์๋์ ๊ฐ์ด ์๋ฆฌ๋จผํธ๋ฅผ ์ป์ ์ ์์ต๋๋ค.
<CodeTag>
์ฝ๋ 4- C#WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.Combo00.combolist.item_1');
</CodeTag>
์์ดํ
์ ํด๋นํ๋ ์๋ฆฌ๋จผํธ๋ ๋๋กญ๋ค์ด๋ชฉ๋ก์ด ํผ์ณ์ง ํ์ ์ ๊ทผํ ์ ์์ต๋๋ค. ๋ชฉ๋ก์ ํผ์น๊ธฐ ์ ์ ํด๋น ์์ดํ
์ ์ ๊ทผํ๋ ค ํ๋ค๋ฉด ํ
์คํธ ์คํจ๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|AccessibilityId ์์ฑ๊ฐ ํ์ธํ๊ธฐ|Inspect๋ก ์์ฑ๊ฐ ํ์ธํ๊ธฐ/5.jpg</ImgTag>
ํ
์คํธ ์ฝ๋์์ ์๋์ ๊ฐ์ด ๋จผ์ dropbutton ์๋ฆฌ๋จผํธ๋ฅผ ์ฐพ์์ ๋ง์ฐ์ค ํด๋ฆญ ์ด๋ฒคํธ๋ฅผ ์ฒ๋ฆฌํ๊ณ ๋๋กญ๋ค์ด๋ชฉ๋ก์ด ํผ์ณ์ง๋ฉด ๊ทธ๋ ์ํ๋ ์์ดํ
์ ์ ๊ทผํฉ๋๋ค.
<CodeTag>
์ฝ๋ 4- C#[TestMethod]public void Test_00_FindElementItem(){ WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.Combo00.dropbutton'); Assert.IsNotNull(element); element.Click(); Thread.Sleep(TimeSpan.FromSeconds(0.1)); WindowsElement elementItem = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.Combo00.combolist.item_1'); Assert.IsNotNull(elementItem); Debug.WriteLine('elementItem.Text:' + elementItem.Text);}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ธฐ๋ฅ๋ณ ๋ฐ๋ชจ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๊ธฐ๋ฅ๋ณ ๋ฐ๋ชจ๋ฅผ ์คํํ๊ธฐ ์ํ ๋ฅ์ฌํฌ๋ก ์ฑ ์ค์นํ์ผ๊ณผ Java, C# ์ํ ํ์ผ์ ๋ด๋ ค๋ฐ์ ์ ์์ต๋๋ค.
๋จ๊ณ 1. ์น๋ธ๋ผ์ฐ์ ์์ ์๋ ์ฃผ์๋ก ์ ์ํฉ๋๋ค.
https://github.com/TOBESOFT-DOCS/sample_nexacroplatform_17_winappdriver
2๊ฐ์ ํด๋์ ํ๋์ ์ค์นํ์ผ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๊ธฐ๋ฅ๋ณ ๋ฐ๋ชจ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 2. nexacro17_SetupRuntime_x86.exe ํ์ผ์ ๋ด๋ ค๋ฐ์ต๋๋ค. ํ์ผ๋ช
์ ๋ง์ฐ์ค๋ก ํด๋ฆญํ๋ฉด [Download] ๋ฒํผ์ ํ์ธํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๊ธฐ๋ฅ๋ณ ๋ฐ๋ชจ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 3. ๋ด๋ ค๋ฐ์ ์ค์นํ์ผ์ ์คํํด ์ฑ์ ์ค์นํฉ๋๋ค. ์๋ ๊ฒฝ๋ก์ ์ฑ์ด ์ค์น๋ฉ๋๋ค.
C:\Program Files (x86)\nexacro\17\app0201
๋จ๊ณ 4. ๋จ์ํ
์คํธ ํ๋ก์ ํธ ๋ง๋ค๊ธฐ์์ ๋ง๋ ํ๋ก์ ํธ์ C#, Java ์ํ์ ๋ถ์ฌ๋ฃ์ต๋๋ค.
๋จ๊ณ 5. ๋จ์ํ
์คํธ๋ฅผ ์คํํฉ๋๋ค. ์ ์์ ์ผ๋ก ๋จ์ํ
์คํธ๊ฐ ์ฒ๋ฆฌ๋๋์ง ํ์ธํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๊ธฐ๋ฅ๋ณ ๋ฐ๋ชจ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ/3.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ง์ ์ธํฐํ์ด์ค<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ฃผ์:
SeleniumRC, Appium ์ธํฐํ์ด์ค๋ฅผ ๋ชจ๋ ์ง์ํ์ง๋ ์์ต๋๋ค.
๋ฅ์ฌํฌ๋ก ํ๋ซํผ์์ ์ง์ํ ์ ์๊ฑฐ๋ WinAppDriver์์ ์ง์ํ์ง ์๋ ๊ธฐ๋ฅ์ ์ ์ธํ์ต๋๋ค.
๋
ธํธ:
์๋ ํญ๋ชฉ์ ํด๋ผ์ด์ธํธ์์ ๋ณ๋ ์ธํฐํ์ด์ค๋ฅผ ์ง์ํ์ง ์๊ณ ์น๋ธ๋ผ์ฐ์ ์์ ์ง์ ํธ์ถํ๊ฑฐ๋ HttpWebResponse ๋ฑ์ ์ฌ์ฉํด ํธ์ถํ ๊ฒฝ์ฐ ์ฌ์ฉํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค/1.png</ImgTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Session ์ธ์
์์ฑํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
winappdriver ์ ๋ณด๋ก ์ธ์
์ ์์ฑํ๊ณ ์ฑ์ ์คํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Session/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Session ์ธ์
์ข
๋ฃํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ธ์
์ ์ข
๋ฃํ๊ณ ํด๋น ์ฑ์ ์ข
๋ฃํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Session/1.png</ImgTag>
์ฃผ์:
WinAppDriver์์ ์ ๊ณตํ๋ ์ธํฐํ์ด์ค ์ค ์ผ๋ถ๋ ๋ฅ์ฌํฌ๋ก์์ ์ง์ํ์ง ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Timeout ํ์์์ ์ค์ ํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ธ์
๋์ ์ ์ ์ฉํ timeout ๊ฐ์ ์ค์ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Timeout/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Frame Mainframe ์ ๋ณด ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
MainFrame ์ค๋ธ์ ํธ์ titletext ์์ฑ๊ฐ์ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Frame/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ํ์ฑํ๋ ์๋์ฐ ๋ณ๊ฒฝํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ์ฌ ์๋์ฐ๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค. Windowhandle์ session.WindowHandles์์ ์ป์ ์ ์์ต๋๋ค. ์ต์ด ์คํ์์๋ MainFrame ์ค๋ธ์ ํธ๊ฐ ํ์ฌ ์๋์ฐ๋ก ์ค์ ๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ํ์ฑํ๋ ์๋์ฐ ์ข
๋ฃํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ์ฌ ์๋์ฐ๋ฅผ ์ข
๋ฃํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ํ์ฑํ๋ ์๋์ฐ ํธ๋ค ์ป๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ์ฌ ์๋์ฐ ํธ๋ค ์ค๋ธ์ ํธ๋ฅผ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ์๋์ฐ ํธ๋ค ๋ฐฐ์ด ์ป๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ชจ๋ ์๋์ฐ ํธ๋ค ์ค๋ธ์ ํธ๋ฅผ ๋ฐฐ์ด ํํ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ์๋์ฐ ํฌ๊ธฐ ์ ๋ณด ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์๋์ฐ ํฌ๊ธฐ๋ฅผ Size ์ค๋ธ์ ํธ ํํ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ์๋์ฐ ํฌ๊ธฐ ๋ณ๊ฒฝํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์๋์ฐ ํฌ๊ธฐ๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ์๋์ฐ ์์น ์ ๋ณด ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์๋์ฐ ์์น๋ฅผ Point ์ค๋ธ์ ํธ ํํ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ์๋์ฐ ์์น ๋ณ๊ฒฝํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์๋์ฐ ์ขํ๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Window ์๋์ฐ ์ต๋ํ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์๋์ฐ ํฌ๊ธฐ๋ฅผ ์ต๋ํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Window/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ง์ ์ธํฐํ์ด์ค Element<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element๋ WinAppDriver ๋์์ ์ต์๋จ์์
๋๋ค. ๋ฅ์ฌํฌ๋ก์์๋ ์ปดํฌ๋ํธ, ์ปจํธ๋กค์ ๊ตฌ์ฑ์์์ธ nexacro Element๋ฅผ Element๋ก ์ฒ๋ฆฌํฉ๋๋ค.
ControlElement๊ฐ ์ปดํฌ๋ํธ๋ฅผ ๋๋ฌ์ธ๊ณ ์๊ณ ๊ทธ ์์ ContainerElement, InputElement, IconTextElement, TextElement ๋ฑ์ Element๊ฐ ์๋ฆฌ์ก๊ณ ์์ต๋๋ค. Button ์ปดํฌ๋ํธ์ ๊ฒฝ์ฐ๋ ์๋์ ๊ฐ์ด ๊ตฌ์ฑ๋ฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ์ป๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ปดํฌ๋ํธ, ์ปจํธ๋กค์ ControlElement ์ค๋ธ์ ํธ๋ฅผ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
๋
ธํธ:
๋ฅ์ฌํฌ๋ก ํ๋ซํผ์์ open ๋ฉ์๋ ์คํ ์ objParentFrame ํ๋ผ๋ฏธํฐ๊ฐ์ null๋ก ์ค์ ํ ๊ฒฝ์ฐ์๋ ChildFrame ID๋ฅผ ๊ธฐ์ค์ผ๋ก ์ ๊ทผํฉ๋๋ค.
<CodeTag>
์ฝ๋ 4- C#// parent null ์ง์ ์ : nexacro.open('openframe', url, null, ...) nexaButton00 = session.FindElementByAccessibilityId('openframe.form.Button00');// parent frame ์ง์ ์ : nexacro.open('openframe', url, ownerframe, ...)nexaButton00 = session.FindElementByAccessibilityId('mainframe.ChildFrame00.openframe.form.Button00');
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ๋ฐฐ์ด ์ป๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ปดํฌ๋ํธ, ์ปจํธ๋กค์ ControlElement ์ค๋ธ์ ํธ ๋ชฉ๋ก์ ๋ฐฐ์ด๊ฐ์ผ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ id๊ฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
WinAppDriver Element์ id๊ฐ์ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ์ ํ์๋๋ ํ
์คํธ ์ ๋ณด ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element์ ํ
์คํธ๊ฐ์ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
๋
ธํธ:
๋ฅ์ฌํฌ๋ก์์ ์ง์ ํ ์์ฑ๊ฐ์ ํ๋ฉด์ ๋ณด์ฌ์ง๋ ํ
์คํธ๋ฅผ ์ฐ์ ์ ์ผ๋ก ์ฒ๋ฆฌํฉ๋๋ค. ์ฐ์ ์์๋ ์๋์ ๊ฐ์ต๋๋ค.
displaytext > text > titletext > value<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ๋ง์ฐ์ค ํด๋ฆญ ์ด๋ฒคํธ ์ฒ๋ฆฌํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element์ ๊ฐ์ด๋ฐ ์์น์์ ๋ง์ฐ์ค ํด๋ฆญ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
์ฃผ์:
์๋ฆฌ๋จผํธ์ ๊ฐ์ด๋ฐ ์์น์์ ๋ง์ฐ์ค ํด๋ฆญ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ๊ธฐ ๋๋ฌธ์ MaskEdit ์ปดํฌ๋ํธ ๊ฐ์ ๊ฒฝ์ฐ ์บ๋ฟ ์์น๊ฐ ๋งจ ์์ผ๋ก ์ด๋ํ์ง ์์ต๋๋ค. ์ด๋ฐ ๊ฒฝ์ฐ์๋ CTRL+'A' ํค๋ฅผ ์
๋ ฅํด์ ์
๋ ฅ ์์ญ ์ ์ฒด ์ ํ ํ ๋ฌธ์์ด์ ์
๋ ฅํ๋ ๋ฐฉ๋ฒ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
<CodeTag>
์ฝ๋ 4- C#[TestMethod]public void Test_10_MaskEditInput(){ WindowsElement nexaMaskEdit00 = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.MaskEdit00'); Assert.IsNotNull(nexaMaskEdit00); Thread.Sleep(TimeSpan.FromSeconds(0.1)); nexaMaskEdit00.Clear(); nexaMaskEdit00.Click(); nexaMaskEdit00.SendKeys(Keys.Control + 'a'); Thread.Sleep(TimeSpan.FromSeconds(0.1)); nexaMaskEdit00.SendKeys('abcde1234'+Keys.Enter); Assert.AreEqual('abcde-1234', nexaMaskEdit00.Text);}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ์
๋ ฅ๊ฐ ์ง์ฐ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ
์คํธ ํธ์ง ์์ญ์ ๊ฐ์ง๊ณ ์๋ ์ปดํฌ๋ํธ์ ์
๋ ฅ๊ฐ์ ์ง์๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ์ ํค๋ณด๋ ์
๋ ฅ๊ฐ ์ ๋ฌํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํค๋ณด๋ ์
๋ ฅ๊ฐ์ ์ฒ๋ฆฌํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
๋
ธํธ:
์ปดํฌ๋ํธ์ ๋ฐ๋ผ ์
๋ ฅ๊ฐ์ด ์ฒ๋ฆฌ๋๋ ๋ฐฉ์์ด ๋ค๋ฆ
๋๋ค.
์ ํ ๋์๋ง์์ ์ปดํฌ๋ํธ์ 'Basic Key Action' ํญ๋ชฉ์ ์ฐธ๊ณ ํด์ฃผ์ธ์.
์ฃผ์:
ํค๋ณด๋ ์
๋ ฅ ๊ฐ ์ ๋ฌ ์์๋ ํด๋น ์ฑ์ด ํ์ฑํ๋์ด ์์ด์ผ ํ๊ณ 2๊ฐ ์ด์์ ์๋์ฐ๊ฐ ํ์๋ ๊ฒฝ์ฐ ๋์ ๋์ ์๋์ฐ๊ฐ ํ์ฑํ๋์ด์ผ ํฉ๋๋ค.
์ฃผ์:
๋์ ๋์ ์๋ฆฌ๋จผํธ์ ๋ง์ฐ์ค ํด๋ฆญ ์ด๋ฒคํธ๋ฅผ ์ฒ๋ฆฌํ ํ ํค๋ณด๋ ์
๋ ฅ ๊ฐ์ ์ ๋ฌํด์ผ ์ ์์ ์ผ๋ก ๋์ํฉ๋๋ค.
์ฃผ์:
2๊ฐ ์ด์์ ๋์คํ๋ ์ด๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ ํค๋ณด๋ ์
๋ ฅ ๊ฐ์ด ์ ์์ ์ผ๋ก ์ ๋ฌ๋์ง ์๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค. ๋์คํ๋ ์ด๋ฅผ ํ๋๋ง ์ฌ์ฉํ๋์ง, WinAppDriver๋ฅผ ๋ค์ ์์ํด์ฃผ์ธ์.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ์ ํ ์ฌ๋ถ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element์ Selected ์ํ๊ฐ์ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
๋
ธํธ:
๋ฅ์ฌํฌ๋ก์์ ์ง์ํ๋ ์ปดํฌ๋ํธ, ์ปจํธ๋กค์ ์๋์ ๊ฐ์ต๋๋ค.
CheckBox, RadioButton, TabButton, ListBoxItem, MenuItem, TreeCell, GridCell<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ์ฌ์ฉ ๊ฐ๋ฅ ์ฌ๋ถ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element์ Enabled ์ํ๊ฐ์ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ํ๋ฉด ํ์ ์ฌ๋ถ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element์ ํ๋ฉด ํ์ ์ฌ๋ถ๋ฅผ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
๋
ธํธ:
์ปดํฌ๋ํธ์ visible ์์ฑ๊ฐ์ ๋ฐํํ๋ ๊ฒ์ด ์๋๋ผ ์ค์ ํ๋ฉด์์์ ํ์ ์ฌ๋ถ๋ฅผ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/2.png</ImgTag>
์ฃผ์:
์ปดํฌ๋ํธ์ visible ์์ฑ๊ฐ์ false๋ก ์ค์ ํ๊ณ ์ฑ์ด ์์ํ๋ ๊ฒฝ์ฐ ํด๋น Element๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค. ๋ฅ์ฌํฌ๋ก์์๋ visible ์์ฑ๊ฐ์ด true์ธ ๊ฒฝ์ฐ์๋ง Element๋ฅผ ์์ฑํ๊ธฐ ๋๋ฌธ์
๋๋ค.
์ฑ ๋ก๋ ์์๋ visible ์์ฑ๊ฐ์ true๋ก ์ค์ ํ๊ณ onload ์ด๋ฒคํธ ํจ์ ๋ด์์ ์ปดํฌ๋ํธ์ visible ์์ฑ๊ฐ์ false๋ก ๋ณ๊ฒฝํ๋ฉด Element๋ฅผ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ํฌ๊ธฐ ์ ๋ณด ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element ํฌ๊ธฐ๋ฅผ Size ์ค๋ธ์ ํธ ํํ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ์์น ์ ๋ณด ํ์ธํ๊ธฐ (์์ ์๋ฆฌ๋จผํธ ๊ธฐ์ค)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element ์์น๋ฅผ ์์ Element ๊ธฐ์ค์์ Point ์ค๋ธ์ ํธ ํํ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ ์์น ์ ๋ณด ํ์ธํ๊ธฐ (Screen ๊ธฐ์ค)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element ์์น๋ฅผ Screen ๊ธฐ์ค์์ Point ์ค๋ธ์ ํธ ํํ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ํ์ฑํ๋ ์๋ฆฌ๋จผํธ ์ป๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ์ฌ ํ์ฑํ๋ Element๋ฅผ ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element 2๊ฐ์ ์๋ฆฌ๋จผํธ ๋น๊ตํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element๋ฅผ ๋น๊ตํด์ ๊ฐ์ Element์ธ์ง ํ์ธํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Element ์๋ฆฌ๋จผํธ์ UIA ์ธํฐํ์ด์ค ์์ฑ๊ฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Element์ UIA Interface์ attribute ๊ฐ์ ์ ๊ณตํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|Element/1.png</ImgTag>
๋
ธํธ:
Automation Element Property Identifiers
https://docs.microsoft.com/en-us/windows/desktop/WinAuto/uiauto-automation-element-propids<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ScreenShot ์๋์ฐ ์๋ฆฌ๋จผํธ ์คํฌ๋ฆฐ์ท ์ป๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Screen ์๋์ฐ ์์ญ ๋๋ Element๋ฅผ Screenshot ์ค๋ธ์ ํธ๋ก ๋ฐํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋์ฐ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค|ScreenShot/1.png</ImgTag>
๋
ธํธ:
SaveAsFile ๋ฉ์๋, AsBase64EncodedString ์์ฑ์ ์ฌ์ฉํด ์ด๋ฏธ์ง ํ์ผ ๋๋ Base64 ํํ๋ก ๋ณํํ ์ ์์ต๋๋ค.
์ฃผ์:
์๋์ฐ๊ฐ ์ต์์์ ๋
ธ์ถ๋์ด์ผ ์ ์์ ์ธ ์คํฌ๋ฆฐ์ท์ ์ป์ ์ ์์ต๋๋ค.
์ฃผ์:
Java ์ฝ๋์์๋ ๊ถํ์ด ์๋ ์ ์ฅ์๋ง ์ ๊ทผํ ์ ์์ต๋๋ค.
<CodeTag>
์ฝ๋ 4- JavaFileHandler.copy(sessionshot, new File(System.getProperty('user.home')+'\\Downloads\\SessionScreenShot.png'));
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ด๋ จ ๋งํฌ ์ ๋ณด<|eot_id|><|start_header_id|>assistant<|end_header_id|>
WebDriver Interface
http://www.w3.org/TR/webdriver1/
https://www.seleniumhq.org/projects/webdriver/
https://developer.mozilla.org/en-US/docs/Web/WebDriver
AppDriver Interface
https://github.com/Microsoft/WinAppDriver
https://appium.io/docs/en/drivers/windows/
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
UIA Interface
https://docs.microsoft.com/en-us/windows/desktop/WinAuto/entry-uiauto-win32
https://docs.microsoft.com/en-us/windows/desktop/winauto/testing-tools
https://en.wikipedia.org/wiki/Microsoft_UI_Automation
MSAA Interface
https://docs.microsoft.com/en-us/windows/desktop/WinAuto/microsoft-active-accessibility
https://docs.microsoft.com/en-us/windows/desktop/winauto/testing-tools
https://en.wikipedia.org/wiki/Microsoft_Active_Accessibility<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Appium ์ฐ๋ ๊ธฐ๋ฅ์ ๋ฅ์ฌํฌ๋ก์์ ์ ๊ณตํ๋ UIAutomation2 ์ธํฐํ์ด์ค๋ฅผ ์ฌ์ฉํด Android NRE์์ ์คํํ๋ ์ฑ์ ์์ฑ์ ์ฝ๊ฑฐ๋ ์ฐ๊ณ ํ๋ผ๋ฏธํฐ๋ฅผ ์ง์ ํด ๋ฉ์๋๋ฅผ ์คํํ๋ ๊ฒ์ ์ง์ํฉ๋๋ค. ์
๋ ๋์ ๊ฐ์ UI ์๋ํ ํ
์คํธ ๋๊ตฌ๋ฅผ ์ฌ์ฉํด ๋จ์ ํ
์คํธ๋ฅผ ์์ฑํ๊ณ ํ
์คํธํ ์ ์์ต๋๋ค.
์ด๋ฒ ์ฅ์์๋ Appium๋ฅผ ์ค์นํ๊ณ ๋น์ฃผ์ผ ์คํ๋์ค ์ฝ๋์์ ๊ธฐ๋ณธ์ ์ธ Java ํ๋ก์ ํธ๋ฅผ ์์ฑํด ๋ฅ์ฌํฌ๋ก ์ฑ์ ์ฐ๊ฒฐํ๋ ๋จ๊ณ๋ฅผ ์ดํด๋ด
๋๋ค.
๋
ธํธ:
์๋ ๋ด์ฉ์ Appium 1.19.1, ์๋๋ก์ด๋ ์คํ๋์ค 4.1.1 ๋ฒ์ ์ ๊ธฐ์ค์ผ๋ก ์์ฑํ์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ Appium ์ค์นํ๊ณ ๋จ๋ง๊ธฐ ์ฐ๊ฒฐ ํ์ธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ์๋๋ก์ด๋ ์คํ๋์ค์ ์๋๋ก์ด๋ SDK, JDK๊ฐ ์ค์น๋์ด ์๋์ง ํ์ธํฉ๋๋ค.
๋จ๊ณ 2. ํ
์คํธํ ๋จ๋ง๊ธฐ์ ๊ฐ๋ฐ์ ์ต์
์ ํ์ฑํํ๊ณ ์๋ 3๊ฐ ์ต์
์ ์ฌ์ฉ์ผ๋ก ์ฒดํฌํด์ค๋๋ค.
USB debugging
Install via USB
USB debugging (Security settings)
๋จ๊ณ 3. ํ
์คํธ๋ฅผ ์งํํ PC์ Appium ์ค์นํ์ผ์ ๋ด๋ ค๋ฐ๊ณ ์ค์นํฉ๋๋ค.
https://github.com/appium/appium-desktop/releases/latest
๋จ๊ณ 4. ๋จ๋ง๊ธฐ์ PC๋ฅผ USB ์ผ์ด๋ธ์ ์ฌ์ฉํด ์ฐ๊ฒฐํฉ๋๋ค.
๋จ๊ณ 5. adb ๋ช
๋ น์ด๋ก ์ฐ๊ฒฐ๋ ๋จ๋ง๊ธฐ ์ผ๋ จ๋ฒํธ๋ฅผ ํ์ธํฉ๋๋ค.
์๋์์๋ '0a388e93'์ด ์ฐ๊ฒฐ๋ ๋จ๋ง๊ธฐ ์ผ๋ จ๋ฒํธ์
๋๋ค.
$ adb devices
List of devices attached
0a388e93 device usb:1-1 product:razor model:Nexus_7 device:flo
๋จ๊ณ 6. ํ
์คํธํ ๋จ๋ง๊ธฐ์ ๋ฅ์ฌํฌ๋ก ์ฑ์ ์ค์นํฉ๋๋ค.
์ฑ ๋น๋ ์ Package Name์ 'nexacro', Program Name์ 'TEST0120'์ผ๋ก ์ค์ ํ์ต๋๋ค.
๋จ๊ณ 7. PC์์ Appium์ ์คํํฉ๋๋ค.
๋จ๊ณ 8. [Start Server] ๋ฒํผ์ ํด๋ฆญํด Appium ์๋ฒ๋ฅผ ์์ํฉ๋๋ค.
์๋์ฐ ์ด์์ฒด์ ํ๊ฒฝ์ด๋ผ๋ฉด Host ์ค์ ์ '127.0.0.1'๋ก ๋ณ๊ฒฝํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|Appium ์ค์นํ๊ณ ๋จ๋ง๊ธฐ ์ฐ๊ฒฐ ํ์ธํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 9. [Start Inspector Session] ๋ฒํผ์ ํด๋ฆญํด Appium Inspector ์ฐฝ์ ๋์๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|Appium ์ค์นํ๊ณ ๋จ๋ง๊ธฐ ์ฐ๊ฒฐ ํ์ธํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 10. [Custom Server] ํญ์์ JSON Representaion ํญ๋ชฉ์ ์๋์ ๊ฐ์ด ์
๋ ฅํฉ๋๋ค.
<CodeTag>
{ 'platformName': 'Android', 'platformVersion': '10', 'appPackage': 'nexacro.TEST0120', 'appActivity': '.MainActivity', 'automationName': 'UIAutomator2', 'autoGrantPermissions': 'true', 'deviceName': '0a388e93'}
</CodeTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|Appium ์ค์นํ๊ณ ๋จ๋ง๊ธฐ ์ฐ๊ฒฐ ํ์ธํ๊ธฐ/1.png</ImgTag>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|Appium ์ค์นํ๊ณ ๋จ๋ง๊ธฐ ์ฐ๊ฒฐ ํ์ธํ๊ธฐ/3.jpg</ImgTag>
๋
ธํธ:
์ถ๊ฐ๋ก ์ค์ ํ ์ ์๋ ํญ๋ชฉ์ ์๋ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
http://appium.io/docs/en/writing-running-appium/caps/
๋จ๊ณ 11. [Start Session] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
๋
ธํธ:
์ต์ด ์คํ ์์๋ ๋จ๋ง๊ธฐ์ Appium Settings ์ฑ์ด ์ค์น๋ฉ๋๋ค.
๋จ๊ณ 12. ํ
์คํธํ ๋จ๋ง๊ธฐ์์ ์ฑ์ด ์คํ๋๊ณ Appium Inspector ์ฐฝ์ ์ฑ์ด ์คํ๋ ์ํ๊ฐ ํ์๋๋์ง ํ์ธํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|Appium ์ค์นํ๊ณ ๋จ๋ง๊ธฐ ์ฐ๊ฒฐ ํ์ธํ๊ธฐ/4.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ ํ
์คํธ ํ๋ก์ ํธ ์คํ ํ๊ฒฝ ์ค์ ํ๊ณ ํ
์คํธํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. Visual Studio Code๋ฅผ ์ค์นํฉ๋๋ค.
๋จ๊ณ 2. ์ฌ์ด๋๋ฐ์์ Extensions๋ฅผ ์ ํํ๊ณ Java Extension Pack์ ์ค์นํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|ํ
์คํธ ํ๋ก์ ํธ ์คํ ํ๊ฒฝ ์ค์ ํ๊ณ ํ
์คํธํ๊ธฐ/1.jpg</ImgTag>
๋จ๊ณ 3. ํ๋ก์ ํธ ์คํ์ ํ์ํ appium, selenium, testng ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์ ํฉ๋๋ค.
๋
ธํธ:
Maven, Gradle, Eclipse plug-in ๋ฑ์ ์ค์ ์ ๊ด๋ จ ๋ฌธ์๋ฅผ ์ฐธ๊ณ ํ์ธ์.
client-combined-3.141.59.jar (https://www.selenium.dev/downloads/)
byte-buddy-1.8.15.jar
commons-exec-1.3.jar
guava-25.0-jre.jar
okhttp-3.11.0.jar
okio-1.14.0.jar
testng-7.3.0.jar (https://testng.org/doc/download.html)
jcommander-1.78.jar
java-client-7.4.1.jar (https://github.com/appium/java-client)
commons-lang3-3.11.jar (https://commons.apache.org/proper/commons-lang/)
๋จ๊ณ 4. Java Project๋ฅผ ์์ฑํ๊ณ BaseClass.java ํ์ผ์ ์๋์ ๊ฐ์ด ์์ฑํฉ๋๋ค.
<CodeTag>
package tests;import java.net.MalformedURLException;import java.net.URL;import org.openqa.selenium.remote.DesiredCapabilities;import org.testng.annotations.AfterTest;import org.testng.annotations.BeforeTest;import org.testng.annotations.Test;import io.appium.java_client.MobileElement;import io.appium.java_client.android.AndroidDriver;public class BaseClass { AndroidDriver<MobileElement> driver; final String URL_STRING = 'http://127.0.0.1:4723/wd/hub'; @BeforeTest public void setup() { System.out.println('setup'); DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability('automationName', 'UiAutomator2'); capabilities.setCapability('platformName', 'Android'); capabilities.setCapability('platformVersion', '10'); capabilities.setCapability('deviceName', '0a388e93'); capabilities.setCapability('autoGrantPermissions', 'true'); capabilities.setCapability('appPackage', 'nexacro.TEST0120'); capabilities.setCapability('appActivity', '.MainActivity'); try { driver = new AndroidDriver<MobileElement>(new URL(URL_STRING), capabilities); } catch (MalformedURLException e) { System.out.println('MalformedURLException'); e.printStackTrace(); } catch (Exception e) { System.out.println('Exception'); e.printStackTrace(); } } @Test public void sampleTest() { System.out.println('sampleTest'); } @AfterTest public void teardown() { System.out.println('teardown'); driver.close(); }}
</CodeTag>
๋จ๊ณ 5. ์ฌ์ด๋๋ฐ์์ Test๋ฅผ ์ ํํ๊ณ BaseClass ํญ๋ชฉ์ ์๋ [Run] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|ํ
์คํธ ํ๋ก์ ํธ ์คํ ํ๊ฒฝ ์ค์ ํ๊ณ ํ
์คํธํ๊ธฐ/2.jpg</ImgTag>
๋จ๊ณ 6. ํ
์คํธํ ๋จ๋ง๊ธฐ์์ ์ฑ์ด ์คํ๋๊ณ DEBUG CONSOLE์ ์ ์์ ์ผ๋ก ํ
์คํธ ์ฑ๊ณต ๋ฉ์์ง๊ฐ ํ์๋๋ ๊ฒ์ ํ์ธํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|Appium ์ฐ๋ ํ๊ฒฝ ์ค์ ํ๊ธฐ|ํ
์คํธ ํ๋ก์ ํธ ์คํ ํ๊ฒฝ ์ค์ ํ๊ณ ํ
์คํธํ๊ธฐ/3.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋จ์ ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋จ๊ณ 1. ๋ฅ์ฌํฌ๋ก ์ฑ์ ์๋์ ๊ฐ์ด ์์ ํ๊ณ ์
๋ฐ์ดํธํฉ๋๋ค.
์๋จ์ Button ์ปดํฌ๋ํธ๋ฅผ ๋ฐฐ์นํ๊ณ ๊ทธ ์๋์ Edit ์ปดํฌ๋ํธ๋ฅผ ๋ฐฐ์นํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|๋จ์ ํ
์คํธ ๋ง๋ค๊ณ ์คํํ๊ธฐ/1.jpg</ImgTag>
Button ์ปดํฌ๋ํธ์ onclick ์ด๋ฒคํธ ํธ๋ค๋ฌ ํจ์๋ฅผ ์๋์ ๊ฐ์ด ์์ฑํฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.Edit00.set_value('BUTTON CLICK');};
</CodeTag>
๋จ๊ณ 2. Tests.java ํ์ผ์ ์๋์ ๊ฐ์ด ์์ฑํฉ๋๋ค.
<CodeTag>
package tests;import java.net.MalformedURLException;import java.util.concurrent.TimeUnit;import org.testng.annotations.Test;public class Tests extends BaseClass { @Test public void testOne() throws MalformedURLException, InterruptedException { System.out.println('testOne'); int nTestSpeed = 2000; driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); driver.findElementById('mainframe.WorkFrame.form.Button00').click(); Thread.sleep(nTestSpeed); }}
</CodeTag>
๋จ๊ณ 3. ์ฌ์ด๋๋ฐ์์ Test๋ฅผ ์ ํํ๊ณ Tests ํญ๋ชฉ์ ์๋ [Run] ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
๋จ๊ณ 4. ํ
์คํธํ ๋จ๋ง๊ธฐ์์ ์ฑ์ด ์คํ๋๊ณ Button ํด๋ฆญ ์ด๋ฒคํธ๊ฐ ์ ์์ ์ผ๋ก ์ฒ๋ฆฌ๋์ด Edit ์ปดํฌ๋ํธ์ ๊ฐ์ด ๋ณ๊ฒฝ๋๋์ง ํ์ธํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ง์ ์ธํฐํ์ด์ค<|eot_id|><|start_header_id|>assistant<|end_header_id|>
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์๋๋ก์ด๋ ์ด์์ฒด์ NRE์์ ๋จ์ ํ
์คํธ ์คํํ๊ธฐ|์ง์ ์ธํฐํ์ด์ค/1.png</ImgTag>
๋์ ์๋ฆฌ<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ฅ์ฌํฌ๋ก์์ ํ๋ฉด์ ๋ง๋ค๋ ค๋ฉด ๋จผ์ ํ๋ก์ ํธ๋ฅผ ์์ฑํด์ผ ํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ํ๋ก์ ํธ์ ํ์ํ ์ปดํฌ๋ํธ, ์คํฌ๋ฆฐ ์ ๋ณด, ํ๊ฒฝ ์ ๋ณด, ํ
๋ง ๋๋ ์คํ์ผ ๋ฑ์ ํ์ผ์ ์์ฑํ๊ฑฐ๋ ๊ธฐ์กด ์ ๋ณด๋ฅผ ์ฐ๊ฒฐํฉ๋๋ค. ํ๋ฉด์ ์ฑ ํํ๋ก ์คํ๋ ์ ์์ผ๋ฉฐ Form ํ๋ฉด ์์ฒด๋ก ์คํ๋ ์ ์์ต๋๋ค.
์ด๋ฒ ์ฅ์์๋ ํ๋ก์ ํธ๋ Form ์์ฑ ์ ์์
ํด๋์ ์์ฑ๋๋ ๊ฐ ํ์ผ์ ์ด๋ค ๊ฒ์ด ์์ผ๋ฉฐ ์ด๋ค ๊ธฐ๋ฅ์ ์ํํ๋์ง ์ค๋ช
ํฉ๋๋ค. ์ถ๊ฐ๋ก ์ ๋๋ ์ดํธ ๊ณผ์ ์ ๊ฑฐ์น๋ฉด์ ๋ณํ๋๋ ํ์ผ๋ ์ค๋ช
ํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ๋ ํ๋ฉด ๊ฐ๋ฐ์ ์ํ ๊ธฐ๋ณธ ์ค์ ์ ๋ณด๋ฅผ ๋ด๊ณ ์์ต๋๋ค. ํ๋ก์ ํธ๋ฅผ ์๋ก ๋ง๋ค๋ฉด ํ๋ก์ ํธ ์ค์ ํ์ผ ๋ฟ ์๋๋ผ ํ๋ก์ ํธ๋ฅผ ๊ตฌ์ฑํ๊ธฐ ์ํ ๊ธฐ๋ณธ์ ์ธ ํ์ผ์ด ํด๋น ํด๋์ ์์ฑ๋ฉ๋๋ค.
์ผ๋ฐ์ ์ผ๋ก ํ๋ก์ ํธ ์์ฑ ์ ๋ง๋ค์ด์ง๋ ํ์ผ์ ์๋์ ๊ฐ์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ|ํ๋ก์ ํธ ์์ฑ/1.png</ImgTag>
๋
ธํธ:
ํ๋ก์ ํธ ์์ฑ ์ [Frame] ํญ๋ชฉ ์ค์ ์ ๋ฐ๋ผ ์๋น์ค ํด๋๋ ์ถ๊ฐ๋ ์ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด ๋ ๊ฐ ์ด์์ ํ๋ ์์ ๊ฐ์ง๋ ํ๋ฉด์ ์ค์ ํ๋ค๋ฉด Frame ์๋น์ค ํด๋๊ฐ ์๋ ์์ฑ๋ฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ ํ๋ก์ ํธ ์ค์ ํ์ผ (XPRJ)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ ์ ์๋์ผ๋ก ์์ฑ๋ฉ๋๋ค. Application ์ค์ ํ์ผ ์ ๋ณด๋ ์ถ๊ฐํ๊ฑฐ๋ ์ญ์ ํ ์ ์์ต๋๋ค.
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><Project version='2.1'> <EnvironmentDefinition url='environment.xml'/> <TypeDefinition url='typedefinition.xml'/> <AppVariables url='appvariables.xml'/> <AppInfos> <AppInfo url='[file name].xadl'/> <AppInfo url='[file name].xadl'/> </AppInfos></Project>
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ Application ์ค์ ํ์ผ (XADL)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ ์ ์๋์ผ๋ก ์์ฑ๋๋ฉฐ ํ์์ ๋ฐ๋ผ ์ถ๊ฐ๋ก ์์ฑํ ์ ์์ต๋๋ค. ํ๋ก์ ํธ๋ ํ๋ ์ด์์ App Info๋ฅผ ํฌํจํด์ผ ํฉ๋๋ค. App Info๊ฐ ํ๋์ธ ๊ฒฝ์ฐ ์ด๋ฅผ ์ญ์ ํ๋ ค ํ๋ฉด ์๋์ ๊ฐ์ ๊ฒฝ๊ณ ๋ฉ์์ง๋ฅผ ๋ณด์ฌ์ฃผ๊ณ ์ญ์ ํ์ง ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ|ํ๋ก์ ํธ ์์ฑ|Application ์ค์ ํ์ผ (XADL)/1.jpg</ImgTag>
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><ADL version='2.0'> <Application id='[id]' screenid='[screen id]'> <Layout> <MainFrame/> </Layout> </Application> <Script type='xscript5.1'><![CDATA[โฆ]]></Script></ADL>
</CodeTag>
Application ์ค์ ํ์ผ์ ์คํฌ๋ฆฝํธ ์ฝ๋๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค. ADL ๋๋ ๊ฐ ํ๋ ์ ์ค๋ธ์ ํธ์ ์ด๋ฒคํธ ์ฒ๋ฆฌ๋ Application ๋จ์์์ ์ฒ๋ฆฌํ ์คํฌ๋ฆฝํธ๋ฅผ ๊ด๋ฆฌํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ Type Definition<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ชจ๋, ์ปดํฌ๋ํธ, ์๋น์ค, ํ๋กํ ์ฝ, ์
๋ฐ์ดํธ ์ ๋ณด ์ค์ ํ์ผ ์ ๋ณด๋ฅผ ๊ด๋ฆฌํฉ๋๋ค. ๊ฐ ํญ๋ชฉ์ ํ๋ก์ ํธ ์์ฑ ํ ์ถ๊ฐ, ๋ณ๊ฒฝ, ์ญ์ ํ ์ ์์ต๋๋ค. ํ๋กํ ์ฝ ์ ๋ณด์ ๋ฐฐํฌ ์ต์
์ ๋น๋ ๊ณผ์ ์์ ์๋์ผ๋ก ํธ์ง๋๊ธฐ๋ ํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ|ํ๋ก์ ํธ ์์ฑ|Type Definition/1.png</ImgTag>
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><TypeDefinition version='3.0'> <Modules> <Module url='CompBase.json'/> <Module url='ComComp.json'/> <Module url='Grid.json'/> <Module url='DeviceAPI.json'/> </Modules> <Components> <Component type='JavaScript' id='Button' classname='nexacro.Button'/> <Component type='JavaScript' id='Combo' classname='nexacro.Combo'/> <Component type='JavaScript' id='Edit' classname='nexacro.Edit'/> ... </Components> <Services> <Service prefixid='theme' type='resource' url='./_resource_/_theme_/' version='0' communicationversion='0'/> <Service prefixid='initvalue' type='resource' url='./_resource_/_initvalue_/' version='0' communicationversion='0'/> <Service prefixid='xcssrc' type='resource' url='./_resource_/_xcss_/'/> <Service prefixid='imagerc' type='resource' url='./_resource_/_images_/'/> <Service prefixid='font' type='resource' url='./_resource_/_font_/' version='0' communicationversion='0'/> <Service prefixid='Base' type='form' cachelevel='session' url='./Base/' version='0' communicationversion='0'/> </Services> <Protocols/> <Update/></TypeDefinition>
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ Environment<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Screen ์ ๋ณด, Variable, Cookie, HTTP Header ์ ๋ณด๋ฅผ ๊ด๋ฆฌํฉ๋๋ค. ํ๋ก์ ํธ๋ ํ๋ ์ด์์ Screen ์ ๋ณด๋ฅผ ํฌํจํด์ผ ํฉ๋๋ค. Screen ์ ๋ณด๊ฐ ํ๋์ธ ๊ฒฝ์ฐ ์ด๋ฅผ ์ญ์ ํ๋ ค ํ๋ฉด ์๋์ ๊ฐ์ ๊ฒฝ๊ณ ๋ฉ์์ง๋ฅผ ๋ณด์ฌ์ฃผ๊ณ ์ญ์ ํ์ง ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ|ํ๋ก์ ํธ ์์ฑ|Environment/1.jpg</ImgTag>
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><ENV version='2.1'> <Environment themeid='theme::default' datatyperule='2.0'> <ScreenDefinition> <Screen id='[Screen id]' type='[type property value]'/> </ScreenDefinition> <Variables/> <Cookies/> </Environment></ENV>
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ AppVariables<|eot_id|><|start_header_id|>assistant<|end_header_id|>
App์์ ๊ณตํต์ผ๋ก ์ฌ์ฉํ ์ ์๋ Dataset, Variable ์ ๋ณด๋ฅผ ๊ด๋ฆฌํฉ๋๋ค.
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><AppVariables version='2.0'> <Datasets> <Dataset id='[Dataset id]'> <ColumnInfo/> <Rows/> </Dataset> </Datasets> <Variables> <Variable id='[Variable id]' initval='[init value]'/> </Variables></AppVariables>
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋ฆฌ์์ค initValue<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ ์์๋ ํด๋๋ง ์์ฑํ๊ณ ํ์ผ์ ๋ง๋ค์ง๋ ์์ต๋๋ค. initValue ์ค์ ๊ฐ์ ์ ์ฅํ XML ํ์ผ์ ์์ฑํ๊ณ ํด๋น ํ์ผ์ ํ์ํ ์ค๋ธ์ ํธ์ ์์ฑ ์ ๋ณด๋ฅผ ์ง์ ํฉ๋๋ค. ํ์ผ์ ์์ฑํ๋ฉด ์ค๋ธ์ ํธ๋ฅผ ์ ํํ๊ณ initValue๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค. XML ํ์ผ ํ์์ด์ง๋ง ํ์ฅ์๋ .xiv์
๋๋ค.
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><GlobalPropInitvalueDefinition> <nexacro.Button> <initvalueid id='[initvalueid ]' ... /> </nexacro.Button> <nexacro.Edit> <initvalueid id='[initvalueid ]' ... /> </nexacro.Edit></GlobalPropInitvalueDefinition>
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋ฆฌ์์ค ํ
๋ง (XTHEME)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ ์์ฑ ํ ๋ฅ์ฌํฌ๋ก ์คํ๋์ค [Resource Explorer] ์ฐฝ์ ํ์ธํด๋ณด๋ฉด ๊ธฐ๋ณธ ์ค์น ํ
๋ง๊ฐ ํฌํจ๋ [Nexacro Theme] ํญ๋ชฉ๊ณผ ์๋ก์ด ํ
๋ง๋ฅผ ์ถ๊ฐํ ์ ์๋ [Theme] ํญ๋ชฉ์ด ํ์๋ฉ๋๋ค. [Theme] ํญ๋ชฉ์๋ ๊ธฐ์กด ํ
๋ง๋ฅผ ๋ณต์ฌํด ๋ฃ๊ฑฐ๋ ์ ํ
๋ง๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค.
๊ธฐ๋ณธ ํ
๋ง๋ ์คํ์ผ ์ค์ ํ์ผ(theme.xcss)๊ณผ ์ด๋ฏธ์ง ํ์ผ ์งํฉ์ผ๋ก ๊ตฌ์ฑ๋ฉ๋๋ค.
์ฃผ์:
[Nexacro Theme] ํญ๋ชฉ ์๋์ ํ์๋๋ ํ
๋ง ํ์ผ์ ๋ณ๋ ์บ์ ๊ณต๊ฐ์ ์ ์ฅ๋์ด ๊ด๋ฆฌ๋ฉ๋๋ค. ๊ธฐ๋ณธ ํ
๋ง ํ์ผ์ ์์ ํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋ฆฌ์์ค ImageResource<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ ๋ด์์ ๊ณตํต์ผ๋ก ์ฌ์ฉํ ์ ์๋ ์ด๋ฏธ์ง ํ์ผ์ ๊ด๋ฆฌํฉ๋๋ค. Image ๋ฆฌ์์ค๋ก ์ถ๊ฐํ ์ด๋ฏธ์ง ํ์ผ์ Form ์์ฑ ์ ์ด๋ฏธ์ง ํ์ผ์ด ํ์ํ ์์ฑ์ ์ง์ ํ ๋ ์์ฑ์ฐฝ์ ๋
ธ์ถ๋๋ฉฐ ํด๋น ์ด๋ฏธ์ง ํ์ผ์ ์์ฑ๊ฐ์ผ๋ก ์ง์ ํ ์ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ|๋ฆฌ์์ค|ImageResource/1.jpg</ImgTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋ฆฌ์์ค UserFont<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํ๋ก์ ํธ ๋ด์์ ์ฌ์ฉํ ํฐํธ ํ์ผ์ ๊ด๋ฆฌํฉ๋๋ค. ํฐํธ ํ์ผ(woff, ttf, off)๊ณผ ํฐํธ๋ฅผ ์ ์ํ UserFont ํ์ผ์ ๊ด๋ฆฌํฉ๋๋ค. UserFont ํ์ผ์ xfont ํ์ฅ์๋ก ์ ์ฅ๋๋ฉฐ ์๋์ ๊ฐ์ ํ์์ผ๋ก ์์ฑํฉ๋๋ค.
<CodeTag>
@font-face { font-family : 'NanumGothic'; font-style : normal; font-weight : 400; src : local('NanumGothic'), url(NanumGothic.ttf) format('truetype'), url(NanumGothic.eot), url(NanumGothic.eot?#iefix) format('embedded-opentype'), url(NanumGothic.wpff2) format('woff2'), url(NanumGothic.woff) format('woff'),}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ธฐํ Form (XFDL)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ฌ์ฉ์๊ฐ ์
๋ฌด๋ฅผ ์ํํ๊ธฐ ์ํด ์ ํ๋ ํ๋ฉด์ ์ ์ํ๊ณ ํ๋ฉด ๋ด์์ ๋ณด์ด์ง ์๊ฒ ์ฒ๋ฆฌ๋๋ ์ฐ์ฐ์ด๋ ์๋ฒ์ ๋ฐ์ดํฐ ํต์ ์ ์ํ ํ๋ก๊ทธ๋๋ฐ ์ฝ๋๋ฅผ ๋ด๊ณ ์์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|ํ๋ก์ ํธ ๋ฐ ํ์ผ ๊ตฌ์กฐ|๊ธฐํ|Form (XFDL)/1.png</ImgTag>
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><FDL version='2.1'> <Form> <Layouts> <Layout> <Button/> </Layout> </Layouts> <Script type='xscript5.1'><![CDATA[]]></Script> <Objects> <Dataset/> </Objects> <Bind> <BindItem/> </Bind> </Form></FDL>
</CodeTag>
์ฃผ์:
Form์์ ์คํ์ผ ์ค์ ํ์ผ์ ๋ณ๋ ์ง์ ํ ์๋ ์์ต๋๋ค.
์คํ์ผ ์ค์ ํ์ผ์ Application ๋จ์๋ก๋ง ์ง์ ํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ธฐํ ์คํฌ๋ฆฝํธ (XJS)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ํน์ Form์๋ง ํ์ํ ์คํฌ๋ฆฝํธ๋ Form ํ์ผ์ ๊ฐ์ด ์์ฑํ์ง๋ง, Application ๋ด ์ ์ฒด ํ๋ฉด์์ ์ฌ์ฉํ๋ ์คํฌ๋ฆฝํธ๋ ๋ณ๋ ์์ฑํ๊ณ ๊ฐ Form์์ ์ด๋ฅผ ์ฐธ์กฐํ๋๋ก ํฉ๋๋ค.
์์ฑ๋ ์คํฌ๋ฆฝํธ๋ Form์์ ๋ค์๊ณผ ๊ฐ์ด ์ฐธ์กฐํ ์ ์์ต๋๋ค.
<CodeTag>
include 'lib::comLib.xjs'
</CodeTag>
๊ณตํต์ผ๋ก ์ฐธ์กฐํ๋ ์คํฌ๋ฆฝํธ๊ฐ ๋ง์ ๊ฒฝ์ฐ ์ฌ๋ฌ ํ์ผ๋ก ๋ถ๋ฆฌํด ๊ด๋ฆฌํ ์๋ ์์ต๋๋ค. ์ฐธ์กฐํ๋ ํ์ผ์ด ๋ง์ ๊ฒฝ์ฐ์๋ ์คํฌ๋ฆฝํธ ์ฝ๋ ์์์ ๋ค์ ๋ค๋ฅธ ์ฝ๋๋ฅผ ์ฐธ์กฐํ๋๋ก ํฉ๋๋ค. ์๋ฅผ ๋ค์ด comLib.xjs ์คํฌ๋ฆฝํธ ํ์ผ์ ๋ค์๊ณผ ๊ฐ์ด ๊ตฌ์ฑํ ์ ์์ต๋๋ค. ์ด๋ ๊ฒ ๊ตฌ์ฑํ๋ฉด ์ฐธ์กฐํ ํ์ผ์ด ๋์ด๋๋๋ผ๋ ์
๋ฌด์์ ์ฌ์ฉํ๋ Form ํ์ผ์ ๊ฑด๋๋ฆฌ์ง ์๊ณ comLib.xjs ํ์ผ๋ง ์์ ํด ๊ธฐ๋ฅ์ ์ถ๊ฐํ ์ ์์ต๋๋ค.
<CodeTag>
include 'lib::comConstants.xjs';include 'lib::comService.xjs';include 'lib::comForm.xjs';include 'lib::comGrid.xjs'; include 'lib::comUtil.xjs';include 'lib::comDataset.xjs';
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๊ธฐํ ์คํ์ผ ์ค์ ํ์ผ (XCSS)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
CSS ํ์ค์ด ์์ง๋ง, ์ฌ์ ํ ์น๋ธ๋ผ์ฐ์ ๋ง๋ค ์ ์ฉ๋๋ ๋ฐฉ์์ด ๋ค๋ฆ
๋๋ค. ๊ทธ๋์ ๊ฐ๋ฐ ๊ณผ์ ์์ ํน์ ๋ธ๋ผ์ฐ์ ๋ง๋ค ํ์ํ CSS ์์ฑ์ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค. ๋ฅ์ฌํฌ๋ก๋ CSS ํ์ค์ ๋ฐ๋ผ ํ๋์ ์ฝ๋๋ง ์์ฑํด์ฃผ๋ฉด ๋น๋ ๊ณผ์ ์์ ๊ฐ ๋ธ๋ผ์ฐ์ ์ ๋ง๋ CSS ์ฝ๋๋ฅผ ์๋์ผ๋ก ์์ฑํฉ๋๋ค.
<CodeTag>
<?xml version='1.0' encoding='utf-8'?><XCSS type='xcss1.0'><![CDATA[.Button{ background : #c0504d; -nexa-text-align : left;}]]></XCSS>
</CodeTag>
์คํ์ผ ์ค์ ํ์ผ์ ์์ ์์ ์ฒ๋ผ ํ์ค CSS ์์ฑ๊ณผ ๋ฅ์ฌํฌ๋ก์์ ์ถ๊ฐ ์ง์ํ๋ ์์ฑ์ด ๊ฐ์ด ์ง์ ๋ ๊ฒฝ์ฐ ๋น๋ ๊ณผ์ ์์ ์๋์ ๊ฐ์ CSS ์ฝ๋๊ฐ ์์ฑ๋ฉ๋๋ค.
<CodeTag>
.Button{ background : #c0504d;}.Button .nexacontentsbox{ text-align : left;}
</CodeTag>
์ฃผ์:
์คํ์ผ ์ค์ ํ์ผ์ XML ํ์์ผ๋ก ์์ฑํฉ๋๋ค. ๋ํ, ๋ด๋ถ์์ ์ฌ์ฉํ๋ ์ฝ๋๊ฐ ํ์ค CSS๋ฅผ ์ค์ํ๋ ๊ฒ์ด์ง ๋ชจ๋ CSS ์์ฑ์ ์ง์ํ๋ ๊ฒ์ ์๋๋๋ค.
์ฃผ์:
์คํ์ผ ์ค์ ํ์ผ์ Application ๋จ์๋ก๋ง ์ง์ ํ ์ ์์ต๋๋ค.
์ ์ฒด ํ๋ก์ ํธ ์คํ์ผ์ ํ
๋ง, Application ๋จ์ ์คํ์ผ์ ์คํ์ผ ์ค์ ํ์ผ์ ์ฌ์ฉํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ฑ ๊ตฌ๋ ์๋๋ฆฌ์ค<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ฅ์ฌํฌ๋ก ์ฑ์ด ์คํ๋๋ ๊ณผ์ ์ ์๋์ ๊ฐ์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
bootstrap<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Application์ ๋ก๋ฉํ๊ธฐ ์ํด ๊ด๋ จ ์ ๋ณด๋ฅผ ํ์ธํ๊ณ ํ์ํ ์์์ ๊ฐ์ ธ์ค๋ ๊ณผ์ ์ ์ค๋ช
ํฉ๋๋ค. ์ด ๊ณผ์ ์ ๋ถํธ์คํธ๋ฉ์ด๋ผ๊ณ ํํํฉ๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์ฑ ๊ตฌ๋ ์๋๋ฆฌ์ค|bootstrap/1.png</ImgTag>
ํ:
์ผ๋ฐ์ ์ผ๋ก ๋ถํธ์คํธ๋ฉ์ ์ปดํจํฐ๊ฐ ์ธ๋ถ ์
๋ ฅ ์์ด ์ค์ค๋ก ์์ํ ์ค๋น๋ฅผ ํ๋ ๊ณผ์ ์ ์๋ฏธํฉ๋๋ค. ์ฃผ๋ก ๋ฉ๋ชจ๋ฆฌ์ ๋ด๊ธด ์ ๋ณด๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๋์ํ๋ฉฐ ๋ถํ
(booting)์ด๋ผ๊ณ ํํํ๊ธฐ๋ ํฉ๋๋ค.
https://en.wikipedia.org/wiki/Bootstrapping
๋ฅ์ฌํฌ๋ก ์ฑ ์คํ๊ณผ์ ์์ ์ฌ์ฉํ๋ ๋ถํธ์คํธ๋ฉ์ด๋ผ๋ ์ฉ์ด๋ ์ฑ์ ์์ํ ์ค๋น๋ฅผ ํ๋ ๊ณผ์ ์ด๋ผ๋ ํํ์ ๋ด๊ณ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
Application ๋ก๋ฉ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ฑ์ด ์คํ๋๊ธฐ ์ํด Application๊ณผ ์ฐ๊ฒฐ๋ ํผ์ ๋ก๋ฉํ๋ ๊ณผ์ ์ ์๋์ ๊ฐ์ต๋๋ค.
<ImgTag>์์ฉ ๊ฐ๋ฐ ๊ฐ์ด๋|์ฑ ๊ตฌ๋ ์๋๋ฆฌ์ค|Application ๋ก๋ฉ/1.png</ImgTag>
์ฃผ์:
๋ก๋ฉ ์์์ ๋ฐ๋ผ ์์ง ์์ฑ๋์ง ์๋ ํญ๋ชฉ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด Environment.onload ์ด๋ฒคํธ ํจ์ ๋ด์์ AppVariables์ ์ ๊ทผํ๊ฒ ๋๋ฉด undefined๋ก ํ์๋ฉ๋๋ค.
<CodeTag>
this.Environment_onload = function(obj:nexacro.Environment,e:nexacro.LoadEventInfo){ trace(nexacro.getApplication().all['Variable0']); //undefined}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
ํผ ๋ก๋ฉ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์์์ ์ค๋ช
ํ Application ๋ก๋ฉ ํญ๋ชฉ์์ 'Form ๋ก๋ฉ'๋ถํฐ 'Form.onload ์ด๋ฒคํธ ๋ฐ์' ์ฌ์ด์ ๊ณผ์ ์ ์ข ๋ ์์ธํ ์ดํด๋ณด๋ฉด ์๋์ ๊ฐ์ต๋๋ค.
Form ๋ก๋ฉ
Form ์คํ
์๋ธํ์ผ ๋ค์ด๋ก๋ ๋ฐ ์คํ
Form ์ด๊ธฐํ
Form Style ์์ฑ ์ค์
Form ์์ฑ ์ค์
์ค๋ธ์ ํธ, ์ปดํฌ๋ํธ, ๋ฐ์ธ๋์์ดํ
(BindItem) ์์ฑ
์์ง ๋ด๋ถ์์ ์ฒ๋ฆฌํ๋ ์คํฌ๋ฆฝํธ ์ํ
์ด๋ฒคํธํธ๋ค๋ฌ ๋ฑ๋ก
์ค๋ธ์ ํธ, ์ปดํฌ๋ํธ ๋ฉ์๋ ํธ์ถ: Object.createComponent
์ด๋ฒคํธ ๋ฐ์: Form.oninit
๋ฉ์๋ ํธ์ถ: Form.on_created
์ค๋ธ์ ํธ, ์ปดํฌ๋ํธ ๋ฉ์๋ ํธ์ถ: Object.on_created
์ด๋ฏธ์ง ๋ก๋ฉ, transaction ์ฒ๋ฆฌ
์ด๋ฒคํธ ๋ฐ์: Form.onload
๋
ธํธ:
์๋ธํ์ผ์ include ๋ฐฉ์์ผ๋ก ์ฐ๊ฒฐ๋๋ ์คํฌ๋ฆฝํธ ํ์ผ ๋ฑ์ ์๋ฏธํฉ๋๋ค.
๋
ธํธ:
Form์ ํฌํจ๋ Object, Component๋ ์ง์ ๋ Z-Order ์์๋๋ก ์์ฑํฉ๋๋ค.
์ฃผ์:
div, tab ์ปดํฌ๋ํธ๋ url ์์ฑ์ผ๋ก ์ฐ๊ฒฐ๋ Form์ ๊ฐ์ ธ์ค๋ ๋คํธ์ํฌ ์๋์ ๋ฐ๋ผ ๋ก๋ฉ์ด ๋๋๋ ์์ ์ด ๋ฌ๋ผ์ง ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
๋ฅ์ฌํฌ๋กํ๋ซํผ ์คํฌ๋ฆฝํธ ์ธ์ด<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ฅ์ฌํฌ๋ก ์ฑ์ ๊ฐ๋ฐํ ๋๋ ์๋ฐ์คํฌ๋ฆฝํธ ๋ฌธ๋ฒ์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ฌ์ฉํฉ๋๋ค. ์๋ฐ์คํฌ๋ฆฝํธ ๊ธฐ๋ณธ ๋ฌธ๋ฒ์์ ์ ๊ณตํ์ง ์๋ ์ถ๊ฐ์ ์ธ ๊ธฐ๋ฅ์ ์ฒ๋ฆฌํ๊ธฐ ์ํด ๋ณ๋ API๋ฅผ ์ ๊ณตํฉ๋๋ค. ์์ฑ๋ ์คํฌ๋ฆฝํธ ์ฝ๋๋ ๋น๋ ๊ณผ์ ์ ๊ฑฐ์ณ ๊ทธ๋๋ก ์น ๋ธ๋ผ์ฐ์ ๋ ๋ชจ๋ฐ์ผ ๋๋ฐ์ด์ค์์ ๋์ํ๋๋ก ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ๋๋ก ๋ณํ๋ฉ๋๋ค.
์ด๋ฒ ์ฅ์์๋ ๋ฅ์ฌํฌ๋ก์์ ์คํฌ๋ฆฝํธ ์์ฑ ์ ๊ธฐ๋ณธ์ ์ผ๋ก ์์์ผ ํ๋ ๋ฌธ๋ฒ์ ์ธ ์์์ ์ฃผ์ ์ฌํญ์ ์ค๋ช
ํฉ๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ํจ๋ฒ์(Scope)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ ํจ๋ฒ์๋ ์ ๊ทผ ๊ฐ๋ฅํ ๋ณ์์ ๋ฒ์์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ค๋ช
ํฉ๋๋ค. ์ ํจ๋ฒ์ ๋๋ ์์ญ์ด๋ผ๊ณ ํ๊ธฐํ๋ฉฐ ์๋ฌธ ํ๊ธฐ ๊ทธ๋๋ก ์ฌ์ฉํ๊ธฐ๋ ํฉ๋๋ค. ์
๋ฌด์ ์ฌ์ฉํ๋ ์ฑ์ ์ฌ๋ฌ ๊ฐ์ ํ๋ฉด์ ๋์์ ์กฐ์ํ๊ฑฐ๋ ํ๋์ ๋ณ์๋ฅผ ์ฌ๋ฌ ํ๋ฉด์์ ์ฐธ์กฐํ๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ต๋๋ค. ์ ํจ๋ฒ์๋ฅผ ์ฌ์ฉํ๋ฉด ์ํ๋ ์์์ ์ ํํ๊ฒ ์ ๊ทผํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ํจ๋ฒ์(Scope) ๋ก์ปฌ (local)<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ฅ์ฌํฌ๋ก์ Form ์คํฌ๋ฆฝํธ์์ ์ฒซ ๋ฒ์งธ ์ค์ ์๋์ ๊ฐ์ ์ฝ๋๊ฐ ์๋ ๊ฒฝ์ฐ ๋ก์ปฌ ๋ณ์๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค. ์ผ๋ฐ์ ์ธ ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ๋์๋ค๋ฉด ์ ์ญ ๋ณ์๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค. ํ์ง๋ง ๋ฅ์ฌํฌ๋ก๋ ๊ทธ๋ ์ง ์์ต๋๋ค.
<CodeTag>
var value0 = 0;
</CodeTag>
ํด๋น ์ฝ๋๊ฐ ๋น๋ ๊ณผ์ ์ ๊ฑฐ์ณ ๋ธ๋ผ์ฐ์ ์์ ๋์ํ๋ ์ฝ๋๋ฅผ ๋ณด๋ฉด ์ด๋ค ์ฐจ์ด๊ฐ ์๋์ง ํ์ธํ ์ ์์ต๋๋ค. ๋น๋ ๊ณผ์ ์ ๊ฑฐ์น ์ฝ๋๋ ์๋์ ๊ฐ์ต๋๋ค. ์ฒซ ๋ฒ์งธ ์ค์ ์ ์๋ ๋ณ์๊ฐ ์๋์ผ๋ก ์์ฑ๋ ํจ์ ๋ด์ ํฌํจ๋๋ฉด์ ๋ก์ปฌ ๋ณ์๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค.
<CodeTag>
this.registerScript('TEST.xfdl', function() { var value0 = 0;});
</CodeTag>
์ฃผ์:
Form ์คํฌ๋ฆฝํธ์์ ์ ์ญ ๋ณ์๋ฅผ ์ฒ๋ฆฌํ๊ณ ์ ํ๋ค๋ฉด var ํค์๋๋ฅผ ์ฌ์ฉํ์ง ์๊ณ ๋ณ์๋ฅผ ์ ์ํ ์ ์์ต๋๋ค. ํ์ง๋ง ์ ์ญ ๋ณ์๋ฅผ ์ฌ์ฉํ๋ฉด ์ฑ ์ ์ฒด์ ์ํฅ์ ๋ฏธ์น ์ ์์ด ์ ์ ํ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค.
ํจ์ ๋ด์์ ์ ์ธ๋ ๋ณ์๋ ์ ํจ๋ฒ์๋ฅผ ๋ฐ๋ก ์ง์ ํ์ง ์๊ณ ์ฌ์ฉํ ์ ์์ผ๋ฉฐ ๋งค๊ฐ๋ณ์๋ก ์ ๋ฌ๋ ๊ฐ ์ญ์ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์๊ณ ์ฌ์ฉํ ์ ์์ต๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button, e:nexacro.ClickEventInfo){ obj.set_text('button'); var a = 3; trace(a); // 3}
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ํจ๋ฒ์(Scope) this<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Application ๋๋ Form์์ ์ฌ์ฉ๋๋ ํญ๋ชฉ์ ๋ํด ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ ๋๋ ํญ์ this๋ฅผ ์ฌ์ฉํฉ๋๋ค. ๋ณ์๋ฟ ์๋๋ผ ์์ฑ, Form ๊ฐ์ ์ฐธ์กฐ ์์๋ ์ ์ ํ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค.
Form ๋ด์์ ๋ณ์๋ ์๋์ ๊ฐ์ด ์ ์ธํฉ๋๋ค.
<CodeTag>
this.formvalue = 4;
</CodeTag>
ํจ์๋ฅผ ์ ์ธํ ๋๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค. ๋ํ, ํจ์๋ฅผ ์์ฑํ ๋ Form ๋ด์ ์ ์ธ๋ ๋ณ์๋ฅผ ์ฐธ์กฐํ ๋๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค.
<CodeTag>
this.formvalue = 4;this.test = function(){ this.formvalue = 3; this.parent.value = 3; this.parent.parent.value = 3;}
</CodeTag>
trace๋ alert์ ๊ฐ์ ๋ฉ์๋๋ ์ง์ ๋ ์ ํจ๋ฒ์์ ๋ฐ๋ผ ์๋ฐ์คํฌ๋ฆฝํธ ๊ธฐ๋ณธ ๋ฌธ๋ฒ์์ ์ ๊ณตํ๋ ๋ฉ์๋๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ ๋ฅ์ฌํฌ๋ก์์ ์ถ๊ฐ๋ก ์ ๊ณตํ๋ ๋ฉ์๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์๊ณ alert ๋ฉ์๋๋ฅผ ์ฐ๋ ๊ฒ๊ณผ this ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ๋ ๊ฒ์ ์ ํ ๋ค๋ฅธ ๋ฉ์๋๊ฐ ์คํํ๋ ๊ฒ์
๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button, e:nexacro.ClickEventInfo){ alert(e.button); // JavaScript this.alert(e.button); // Form.alert() nexacro.getApplication.alert(e.button); // Application.alert()}
</CodeTag>
ํจ์ ์ ์ธ ์์๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด ํด๋นํ๋ Application ๋๋ Form์ ๋ฉค๋ฒ๋ก ํฌํจ๋๋๋ก ํฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button, e:nexacro.ClickEventInfo){...}
</CodeTag>
eval ํจ์๋ก Form์ ์ ๊ทผํ๋ ๊ฒฝ์ฐ์๋ this๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
<CodeTag>
eval('this.formfunc()');
</CodeTag>
์ฃผ์:
์๋์ ๊ฐ์ด ํจ์๋ฅผ ์ง์ ์ ์ธํ ์๋ ์์ง๋ง, Global๋ก ์ฒ๋ฆฌ๋๋ฉฐ ์ดํ ์ง์์ด ์ค๋จ๋ ์ ์์ผ๋ฏ๋ก ๊ถ์ฅํ์ง ์์ต๋๋ค.
function Button00_onclick(obj:nexacro.Button, e:nexacro.ClickEventInfo)
{
...
}<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ํจ๋ฒ์(Scope) Global<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๋ฅ์ฌํฌ๋ก ์คํฌ๋ฆฝํธ ๋ด์์ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์์ ๋ณ์๋ ํจ์๋ ๋ชจ๋ ์ต์์ Global ๋ฉค๋ฒ๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค. ์๋์ ๊ฐ์ด ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์๊ณ ์ฌ์ฉ๋ ์คํฌ๋ฆฝํธ๋ ๋ชจ๋ Global๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค.
<CodeTag>
globalvar = 2; var globalvar2 = 3;
</CodeTag>
ํจ์ ๋ด์ ์ฌ์ฉ๋ ๋ณ์๋ผ๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์์ผ๋ฉด ๋ชจ๋ Global๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค. ๋จ var ํค์๋๋ฅผ ์ฌ์ฉํด ์ ์ํ ๋ณ์๋ ํจ์ ๋ฐ์์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
<CodeTag>
this.test = function(){ trace(globalvar); //2 trace(globalvar2); //3 value = 4; var localvar = 5;}this.test = function(){ trace(value); // 4 trace(localvar); // ReferenceError: localvar is not defined}
</CodeTag>
์ฃผ์:
Form ๋ด์์ ๋ค๋ฅธ ์คํฌ๋ฆฝํธ ํ์ผ์ include ํ๋ ๊ฒฝ์ฐ์๋ ๋ด๋ถ์ ์ผ๋ก ์คํฌ๋ฆฝํธ๋ฅผ ํจ์๋ก ์ฒ๋ฆฌํฉ๋๋ค. ๊ทธ๋์ var ํค์๋๋ฅผ ์ฌ์ฉํ ๋ ์ฃผ์ํด์ผ ํฉ๋๋ค.
์๋ฅผ ๋ค์ด includecode.xjs ํ์ผ ๋ด ์ ์๋ ๋ณ์๊ฐ ์ค์ generate ๋ includecode.xjs.js ์ฝ๋๋ ์๋์ ๊ฐ์ต๋๋ค (generate ๋ ์ฝ๋๋ ๋ฒ์ ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง ์ ์์ต๋๋ค).
<CodeTag>
์ฝ๋ 8- includecode.xjsbbb = 'bbb';var ccc = 'ccc';
</CodeTag>
<CodeTag>
์ฝ๋ 8- includecode.xjs.js(function(){ return function(path) { var obj; // User Script this.registerScript(path, function() { bbb = 'bbb'; var ccc = 'ccc'; }); this.loadIncludeScript(path); obj = null; };})();
</CodeTag>
ํจ์๋ฅผ ์ ์ธํ๊ฑฐ๋ ํธ์ถํ ๋๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค. ์๋ ์คํฌ๋ฆฝํธ์์ test()์ this.test()๋ ์๋ก ๋ค๋ฅธ ํจ์๋ฅผ ํธ์ถํฉ๋๋ค. ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์๊ณ test()๋ฅผ ํธ์ถํ๊ฒ ๋๋ฉด Global์ ์ ์ธ๋ test ํจ์๋ฅผ ํธ์ถํฉ๋๋ค.
<CodeTag>
this.Button00_onclick = function(obj:nexacro.Button, e:nexacro.ClickEventInfo){ test(); this.test();}
</CodeTag>
์๋์ ๊ฐ์ด ์ ํจ๋ฒ์ ์์ด ์ง์ ๋ ํจ์๋ Global๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค.
<CodeTag>
Button00_onclick = function(obj:nexacro.Button, e:nexacro.ClickEventInfo){...}function Button00_onclick(obj:nexacro.Button, e:nexacro.ClickEventInfo){...}
</CodeTag>
์ฃผ์:
transaction()๊ณผ ๊ฐ์ Application ๋๋ Form ๋ฉ์๋๋ ํด๋นํ๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค.
//application
nexacro.getApplication().exit('');
nexacro.getApplication().transaction('');
//Form
this.close('');
this.go('');
this.transaction('');
ํ:
Application ์ ์ฒด์์ ์ฌ์ฉํ๊ณ ์ถ์ ๋ณ์๋ Global ๋ณ์๊ฐ ์๋ AppVariables๋ก ๋ฑ๋กํด์ ์ฌ์ฉํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.
<CodeTag>
nexacro.getApplication().addVariable('aaa', 'TEST');trace(nexacro.getApplication().aaa); // TEST
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ํจ๋ฒ์(Scope) Expr<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Grid ์ปดํฌ๋ํธ ๋ด์์ ์ฌ์ฉํ๋ expr ์คํฌ๋ฆฝํธ๋ ๋ฅ์ฌํฌ๋ก ๋ด๋ถ์ ์ผ๋ก ๋ฐ์ธ๋ฉ ๋ Dataset์ ๊ธฐ์ค์ผ๋ก ์ฒ๋ฆฌ๋๊ธฐ ๋๋ฌธ์ ๋ณ๋์ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํ์ง ์์๋ ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ฐ์ธ๋ฉ ๋์ง ์์ Dataset์ ์ง์ ์ ๊ทผํ๋ ค๋ฉด ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด์ฃผ์ด์ผ ํฉ๋๋ค.
์๋์ ๊ฐ์ด ๋ฐ์ธ๋ฉ ๋ Dataset์ ๋ํด expr๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ์๋ this๋ฅผ ๋ถ์ด์ง ์์ต๋๋ค.
<CodeTag>
<Cell text='expr:Column00'/><Cell text='expr:Column00.min'/><Cell text='expr:currow'/><Cell text='expr:rowposition'/><Cell text='expr:getSumNF('col0')'/>
</CodeTag>
<CodeTag>
Dataset.set_filterstr('Column00=='test'');Dataset.filter('Column00=='test'');
</CodeTag>
expr ์คํฌ๋ฆฝํธ ๋ด์์ ๋ฐ์ธ๋ฉ ๋ Grid ์ค๋ธ์ ํธ, Dataset ์ปดํฌ๋ํธ, Cell ์ค๋ธ์ ํธ๋ฅผ ์ง์ ํ๊ณ ์ ํ ๋๋ ์๋์ ๊ฐ์ ๋ณ์ ๋๋ ์ง์์๋ฅผ ์ฌ์ฉํฉ๋๋ค.
Grid: comp
Dataset: dataset
Cell: this
<CodeTag>
<Cell text='expr:this.col'/> <!-- Cell --><Cell text='expr:dataset.rowcount'/> <!-- Binded Dataset --><Cell text='expr:comp.currentcell'/> <!-- Grid --><Cell text='expr:dataset.parent.func1()'/> <!-- Form --><Cell text='expr:comp.parent.func1()'/> <!-- Form -->
</CodeTag>
๋
ธํธ:
Form์ ๋ํ ์ง์์๋ฅผ ๋ณ๋๋ก ์ ๊ณตํ์ง ์์ผ๋ฉฐ ํ์ํ๋ฉด comp.parent ๋๋ dataset.parent ์ ๊ฐ์ด ์ ๊ทผํฉ๋๋ค.
์ฃผ์:
Form ๋ด์ ์๋ ํจ์์ ์ ๊ทผํ ๋ comp.parent.func() ํ์์ ์ฌ์ฉํ์ง ์๊ณ this๋ฅผ ์ฌ์ฉํ๊ฒ ๋๋ฉด ์ค๋ฅ๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค. expr ์คํฌ๋ฆฝํธ์์ this๋ Cell ์ค๋ธ์ ํธ๋ฅผ ๊ฐ๋ฆฌํต๋๋ค.
<Cell text='expr:this.func01()'/>
์ปดํฌ๋ํธ ์์ฑ์ผ๋ก Expr๊ณผ Text๊ฐ ๊ฐ์ด ์๋ ๊ฒฝ์ฐ์ ํ๋ฉด์ ๋ณด์ด๋ ํ
์คํธ๋ฅผ ๋ฐํํ๋ getDisplayText ๋ฉ์๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
<CodeTag>
this.Button00.set_text('text');this.Button00.set_expr('1+1');trace(this.Button00.text); // 'text'trace(this.Button00.expr); // '1+1'trace(this.Button00.getDisplayText()); // '2'
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ ํจ๋ฒ์(Scope) lookup<|eot_id|><|start_header_id|>assistant<|end_header_id|>
lookup ๋ฉ์๋๋ ์ ํจ๋ฒ์๋ฅผ ์ง์ ํด ์ ๊ทผํ๊ธฐ ์ด๋ ค์ด ๊ฒฝ์ฐ ์ฌ์ฉํ ์ ์๋๋ก ์ค๊ณ๋ ์ถ๊ฐ ๋ฉ์๋์
๋๋ค. ์ํ๋ ์ค๋ธ์ ํธ๋ ํจ์๋ฅผ id ๋๋ ํจ์๋ช
์ ๊ฐ์ง๊ณ ์ฐพ์ ์ ์์ต๋๋ค.
lookup ๋ฉ์๋๋ ์๋์ ๊ฐ์ ํ์์ผ๋ก ์ฌ์ฉํ ์ ์์ต๋๋ค.
<CodeTag>
Form.lookup( strid );nexacro.getApplication().lookup( strid );[Component].addEventHandlerLookup( eventid, funcid, target );
</CodeTag>
์ค์ ์ฝ๋์์๋ ์๋์ ๊ฐ์ด ์ฌ์ฉ๋ฉ๋๋ค.
<CodeTag>
// this์์ ์์๋ก ๊ฒ์ํด์ objectid์ ํด๋นํ๋ ์ค๋ธ์ ํธ๋ฅผ ๋ฐํvar obj = this.lookup('objectid');// this์์ ์์๋ก ๊ฒ์ํด์ fn_onclick์ ํด๋นํ๋ ํจ์๋ฅผ ๋ฐํthis.lookup('fn_onclick')();// this์์ ์์๋ก ๊ฒ์ํด์ fn_onclick์ ํด๋นํ๋ ํจ์๋ฅผ ์ด๋ฒคํธ ํธ๋ค๋ฌ์์ ์ฒ๋ฆฌbtn00.addEventHandlerLookup( 'onclick', 'fn_onclick', this );
</CodeTag><|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ด๋ฒคํธ ํธ๋ค๋ฌ<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์ด๋ฒคํธ ์ฒ๋ฆฌ๋ฅผ ์ํ ์ด๋ฒคํธ ํธ๋ค๋ฌ๋ ๋ฅ์ฌํฌ๋ก ์คํ๋์ค ์์ฑ์ฐฝ์์ ์ถ๊ฐํ๊ฑฐ๋ ๊ฐ ์ปดํฌ๋ํธ, ์ค๋ธ์ ํธ์ ์ ๊ณตํ๋ ๋ฉ์๋๋ฅผ ์ฌ์ฉํด ์คํฌ๋ฆฝํธ์์ ์ถ๊ฐํ ์ ์์ต๋๋ค.<|eot_id|> |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024
๋ฅ์ฌํฌ๋ก์ ๊ด๋ จ๋ ๋ด์ฉ์ ์ฐ์ ์ผ๋ก ๋๋ตํด์ค<|eot_id|><|start_header_id|>user<|end_header_id|>
์ด๋ฒคํธ ํธ๋ค๋ฌ ๋ฉ์๋<|eot_id|><|start_header_id|>assistant<|end_header_id|>
์คํฌ๋ฆฝํธ ๋ด์์ ์ด๋ฒคํธ ์ฒ๋ฆฌ๋ฅผ ์ํด ์ด๋ฒคํธ ํจ์๋ฅผ ์ถ๊ฐ, ์ค์ ํ๊ฑฐ๋ ์ญ์ ํ ์ ์๋ ๋ฉ์๋๋ฅผ ์ ๊ณตํฉ๋๋ค.
addEventHandler( eventid, funcobj, target )
addEventHandlerLookup( eventid, funcstr, target )
setEventHandler( eventid, funcobj, target )
setEventHandlerLookup( eventid, functstr, target )
removeEventHandler( eventid, funcobj, target )
removeEventHandlerLookup( eventid, funcstr, target )
์ด๋ฒคํธ๋ฅผ ์ฒ๋ฆฌํ ํจ์์ ์ ํจ๋ฒ์์ ๋ฐ๋ผ ์ ์ ํ ๋ฉ์๋๋ฅผ ์ ํํด ์ฌ์ฉํฉ๋๋ค.
<CodeTag>
this.btn00.setEventHandler('onclick', this.fn_onclick, this);this.dataset00.addEventHandlerLookup('onrowposchange', 'fn_onchange', this);
</CodeTag>
์ฃผ์:
addEventHandlerLookup, setEventHandlerLookup, removeEventHandlerLookup ๋ฉ์๋๋ ์ฑ ์ฑ๋ฅ์ ์ํฅ์ ๋ฏธ์น ์ ์์ผ๋ฏ๋ก ํ์ํ ๊ฒฝ์ฐ๋ง ์ฌ์ฉ์ ๊ถ์ฅํฉ๋๋ค.
๋
ธํธ:
์ด๋ฒคํธ๋ฅผ ์์ฑ ์ฐฝ์์ ์์ฑํ๊ฒ ๋๋ฉด ์๋์ ๊ฐ์ด ๋ฌธ์์ด๋ก ์ค์ ๋ฉ๋๋ค.
<Button id='Button00' ... onclick='Button00_onclick'/>
ํด๋น ์ฝ๋๋ ๋น๋ ์์
ํ ๋ณํ๋ ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ๋์์๋ ์๋์ ๊ฐ์ด this ์ง์์๋ฅผ ๋ถ์ฌ์ ์์ฑ๋ฉ๋๋ค.
this.Button00.addEventHandler('onclick', this.Button00_onclick, this);<|eot_id|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.