Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
300
5.82k
<|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|> Developing Protocol Adaptor<|eot_id|><|start_header_id|>assistant<|end_header_id|> Nexacro basically uses HTTP to handle requests and responses. The platform does not convert data itself during the process. Depending on environments, however, you may need to encrypt data while receiving and converting certain types of data. Protocol adapters allow you to encrypt data or change data structure with simple settings. In that way, they help you to achieve your intentions.<|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|> Creating Protocol Adaptor Module & Using It in the App<|eot_id|><|start_header_id|>assistant<|end_header_id|> To use a protocol adapter, you need to write a module, register it in Nexacro Studio and add it as a protocol and service.<|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|> Creating Protocol Adaptor Module & Using It in the App Creating Protocol Adaptor Module<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Create a new project in the Nexacro Module Developer. Select [File > New > Project] from the menu. Step 2. When Project Wizard is opened, select the 'Protocol Adaptor' from the Module item. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Creating Protocol Adaptor Module/1.jpg</ImgTag> Step 3. Enter the project ID and then click the [Next] button. Step 4. Enter the Object ID and then change the FinalClass item to true. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Creating Protocol Adaptor Module/2.jpg</ImgTag> Step 5. The project is created and the basicPtAdp.js file is displayed in the edit window. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Creating Protocol Adaptor Module/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|> Creating Protocol Adaptor Module & Using It in the App Editing Protocol Adaptor Module<|eot_id|><|start_header_id|>assistant<|end_header_id|> When you create a new protocol adaptor module, 4 functions are created by default. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Editing Protocol Adaptor Module/1.png</ImgTag> initialize <CodeTag> nexacro.basicPtAdp.prototype.initialize = function() { trace('basicPtAdp initialize');}; </CodeTag> In the case of the external plug-in module being used, initialize it using PluginElement as shown below. <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> The external module created through the initialize function is deleted. <CodeTag> nexacro.basicPtAdp.prototype.finalize = function(){ this._plugin.destroy(); delete this._plugin; } </CodeTag> encrypt The data to be transmitted is converted and processed by being put into the return string variable. <CodeTag> nexacro.basicPtAdp.prototype.encrypt = function(strUrl, strData) { trace('encrypt url=' + strUrl + ';data=' + strData); return strData;}; </CodeTag> decrypt The data received in response is converted and passed to the calling app. <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|> Creating Protocol Adaptor Module & Using It in the App Deploying the Protocol Adaptor Module<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Select the Nexacro Module Developer menu [Deploy > Module Package] and then run the Deploy Wizard. Step 2. Change the Type item to 'protocoladaptor' in the Module Information. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Deploying the Protocol Adaptor Module/1.jpg</ImgTag> Step 3. Click the [Deploy] button to deploy the module.<|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|> Creating Protocol Adaptor Module & Using It in the App Installing the Module & Registering the Protocol Service<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Select the Nexacro Studio menu [File > Install Module] and then run the Install Module Wizard. Step 2. Select and install the module installation file created in the Nexacro Module Developer. Note: Since the registration property value among the module meta-info properties is set to the default value ('deny'), the list of modules to be installed is not displayed. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Installing the Module & Registering the Protocol Service/1.jpg</ImgTag> Step 3. Select the TypeDefinition item in the Project Explorer and then select [Add > Protocol] from the context menu. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Installing the Module & Registering the Protocol Service/2.jpg</ImgTag> Step 4. Set the Protocol ID and the Prefix ID in the New Protocol Wizard. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Installing the Module & Registering the Protocol Service/3.jpg</ImgTag> Step 5. Click the [Next] button to check the Web Browser item and then enter the ClassName. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Creating Protocol Adaptor Module & Using It in the App|Installing the Module & Registering the Protocol Service/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|> Creating Protocol Adaptor Module & Using It in the App Calling Service through the Protocol Adaptor<|eot_id|><|start_header_id|>assistant<|end_header_id|> When executing the transaction method, if the protocol adaptor URL format is applied to the strURL parameter as shown below, then the communication request is not directly passed to the server, but rather passes through the protocol adaptor. <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> When you click the button, you can see that the protocol adaptor operation is processed in the following order. initialize There is no initialization in the example, and only the trace method is executed. encrypt Check that the value passed to the strArgument parameter is processed. decrypt Check the response data for the request. CallbackFunc Check that the callback function is operating after normal processing. 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|> Additional Configurable Interface Functions<|eot_id|><|start_header_id|>assistant<|end_header_id|> The protocol adaptor provides additional configurable interface functions.<|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|> Additional Configurable Interface Functions Redefinable Interface Functions<|eot_id|><|start_header_id|>assistant<|end_header_id|> The functions provided by the inherited nexacro.ProtocolAdp can be redefined. They can be added and used in the properties window. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Additional Configurable Interface Functions|Redefinable Interface Functions/1.jpg</ImgTag> <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Additional Configurable Interface Functions|Redefinable Interface Functions/1.png</ImgTag> The getCommunicationHeaders function can be set as follows. <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> You can see that additional cookie information has been set when communicating. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Additional Configurable Interface Functions|Redefinable Interface Functions/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|> Additional Configurable Interface Functions Functions Added as Methods<|eot_id|><|start_header_id|>assistant<|end_header_id|> Select the object in the Project Explorer and then set it by adding the method from the context menu. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Additional Configurable Interface Functions|Functions Added as Methods/1.jpg</ImgTag> <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Additional Configurable Interface Functions|Functions Added as Methods/1.png</ImgTag> The getHTTPHeader, version function can be set as follows. <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> You can see that the header Accept information has been changed when communicating. <ImgTag>Advanced Development Guide 21.0.0.300|Developing Protocol Adaptor|Additional Configurable Interface Functions|Functions Added as Methods/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|> X-PUSH App<|eot_id|><|start_header_id|>assistant<|end_header_id|> X-PUSH is a product that employs server push, a style of Internet-based communication where information or messages are delivered on a real-time basis. Nexacro provides an XPush object, which processes messages sent from an X-PUSH server. The object allows you to request and process messages easily just with simple settings. This chapter shows you how to register an XPush object and develop an application designed to process messages, all using Nexacro Studio.<|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|> Register XPush Object<|eot_id|><|start_header_id|>assistant<|end_header_id|> As the XPush is not a default object, you should register the object through Project Explorer of Nexacro Studio to make it available. Step 1. Choose the menu [File > New > Project] to create a new project. Step 2. Choose [TypeDefinition > Objects] in the Project Explorer to open a window that allows you to add a module. Step 3. Click the + button in Modules on the left side of the window. After the File Explorer is opened, select the Push.json file. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Register XPush Object/1.jpg</ImgTag> Step 4. After finding that Push.json has been added to the module list, click the + button on the right side of nexacro.XPush to add XPush to the object list. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Register XPush Object/2.jpg</ImgTag> Step 5. After finding that XPush has been added to the object list. click the OK button to close the window. The project will be reloaded automatically to apply the changes made by the addition of the XPush object.<|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|> Display Real-time Messages in Grid<|eot_id|><|start_header_id|>assistant<|end_header_id|> In this section, you will learn about how to add an XPush object, receive messages from an X-PUSH server on a real-time basis and display obtained messages through a Grid. Note: To receive real-time messages, the X-PUSH server must be in operation with the message provider service also running. An X-PUSH server sends messages while the run_provider_demo_Push.bat file is being executed, and the transmission continues until the end of the execution of the file. Step 1. Choose the menu [File > New > Project] to create a Form. Step 2. Add a Grid and Dataset to the Form. Step 3. Set the columns of the Dataset as presented below through the Dataset Editor and bind the Dataset to the Grid. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Display Real-time Messages in Grid/1.jpg</ImgTag> Note: The columns of the Dataset must match the IDs defined by the message layout XML file that is set by the layouturl property. <CodeTag> ...<message type='OPDT'> <field id='id' type='string' size='9'/> <field id='content' type='string' size='255'/></message>... </CodeTag> Step 4. Add an XPush object by dragging and dropping it from the component toolbar onto the Form design pane. Like a Dataset, the object will appear in the Invisible Object pane. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Display Real-time Messages in Grid/2.jpg</ImgTag> Step 5. After selecting the added XPush object, set the layouturl and iplist properties in the Properties pane. To set layouturl, you can designate a message layout XML file by specifying the file's URL or designating its location in the local computer. To set iplist, specify the IP address and port number of the X-PUSH server. Caution: You can select either the TCP connection (Nexacro Browser) or the HTTP connection (web browser) as a value of the iplist property. When you select the TCP connection, you must specify 10081 as a port number. When you select the HTTP connection, you must specify 10080 as a port number. If you want to provide both services—NRE and WRE—simultaneously, you must specify the two port numbers together as a value of iplist. iplist='http://localhost:10080, localhost:10081' Step 6. Add the onload event of the Form with the below handler, which is designed to connect to the X-PUSH server. <CodeTag> this.Form_Work_onload = function(obj:nexacro.Form,e:nexacro.LoadEventInfo){ this.XPush00.connect('user00', 'password');}; </CodeTag> Step 7. Add the onsuccess event of the XPush object with the below handler, which prompts the following actions if the connection is successfully made: the subscribe method will be called to receive messages on a real-time basis. Then, the data of the received messages will be added to the Dataset. Eventually, the messages will be displayed through the 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> Step 8. Add the onerror event of the XPush object with the below handler, which is designed to check the reason for the connect failure. <CodeTag> this.XPush00_onerror = function(obj:nexacro.XPush,e:nexacro.XPushErrorEventInfo){ trace(e.errormsg, e.statuscode);}; </CodeTag> Step 9. Upon launching the app, messages will be received after the X-PUSH server is connected within the onload event. You can see that the Grid will display messages in real time. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Display Real-time Messages in 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|> Reliable Messaging<|eot_id|><|start_header_id|>assistant<|end_header_id|> Note: The process of creating a Form and initializing an XPush object is the same in this section and in Display Real-time Messages in Grid. Therefore, this section begins its explanation with adding the onload event handler. Note: For reliable messaging, the X-PUSH server must be in operation with the message provider service also running. An X-PUSH server sends one message while the run_provider_demo_Reli.bat file is being executed.<|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|> Reliable Messaging Register Topic for Reliable Messaging<|eot_id|><|start_header_id|>assistant<|end_header_id|> Reliable messaging is the concept of making certain guarantees about the successful transmission of the messages. Real-time messaging does not check whether users have received the messages after the transmission. This is like radio broadcasting, where messages keep being sent unilaterally and listeners just keep receiving them. However, reliable messaging is similar to an audio message aimed at a certain recipient. Even if users miss messages at the point of transmission, reliable messaging guarantees that they will check the messages later. For reliable messaging, there should be a predetermined arrangement about who receives what type of messages. You can register such information in a database by calling the registerTopic method. Step 1. Add the onload event of the Form with the below handler, which is designed to the X-PUSH server. <CodeTag> this.Form_Work_onload = function(obj:nexacro.Form,e:nexacro.LoadEventInfo){ this.XPush00.connect('user00', 'password');} </CodeTag> Step 2. Add the onsuccess event of the XPush object with the below handler, which prompts the following actions if the connection is successfully made: the subscribe method will be called to receive messages on a real-time basis. Then, the data of the received messages will be added to the Dataset. Eventually, the messages will be displayed through the 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> Step 3. Add a Button component to the Form. Then, add the onclick event with the below handler, which is designed to add a topic under the user ID specified when the connect method was called. You should register a topic only once. <CodeTag> this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.XPush00.registerTopic('NOTI', 'ALL');}; </CodeTag> Step 4. Add the onerror event of the XPush object with the below handler, which is designed to check the reason for a failure to register a topic: e.g. there has been a registered topic already. <CodeTag> this.XPush00_onerror = function(obj:nexacro.XPush,e:nexacro.XPushErrorEventInfo){ trace(e.errormsg, e.statuscode);}; </CodeTag> Step 5. Once a topic is registered, reliable messaging begins. You can check the registered topic in the T_TOPIC table of the database. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Reliable Messaging|Register Topic for Reliable Messaging/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|> Reliable Messaging Receive Messages<|eot_id|><|start_header_id|>assistant<|end_header_id|> If messages are sent while the app is not in operation, those messages will be saved to the T_USER_MESSAGE table of the database. if the value of the MESSAGE_STATE column is 0, it means that the messages have not been reached the user. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Reliable Messaging|Receive Messages/1.jpg</ImgTag> Step 1. Add a Button component to the Form. Then, add the onclick event with the below handler, which is designed to check whether there are unreceived messages under the user ID specified when the connect method was called. If found, the server will send those messages, causing the value of the MESSAGE_STATE column to change to 1. <CodeTag> this.Button01_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.XPush00.requestMessage('NOTI', 'ALL');}; </CodeTag> Step 2. As the requestMessage method does not define a separate callback, it uses the callback defined by the subscribe method instead. Once you receive messages through the requestMessage method, you can send the response to the reception by calling the sendResponse method. After the server receives the response, the value of the MESSAGE_STATE column will turn to 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|> Reliable Messaging Unregister Topic<|eot_id|><|start_header_id|>assistant<|end_header_id|> If you do not need to receive messages anymore, you can call the unregisterTopic method to cancel the registered topic. Step 1. Add a Button component to the Form. Then, add the onclick event with the below handler, which is designed to unregister a topic under the user ID specified when the connect method was called. <CodeTag> this.Button02_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.XPush00.unregisterTopic('NOTI', 'ALL');}; </CodeTag> Step 2. Once you unregister the topic, the reliable messaging will also stop. You will see that the value of the ACTIVE column has been changed to 'N' in the T_TOPIC table of the database, the table containing the information on registered topics. <ImgTag>Advanced Development Guide 21.0.0.300|X-PUSH App|Reliable Messaging|Unregister Topic/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|> Developing the Widget App<|eot_id|><|start_header_id|>assistant<|end_header_id|> Widgets are small UI tools that are always displayed on the screen for monitoring real-time information, such as clock or CPU status. In the Nexacro, widget UI can be implemented by opening a new window with a transparent layer.<|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|> Creating a Simple Calendar Widget<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Create a new project. Select the Full type from Frameset Template. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Creating a Simple Calendar Widget/1.jpg</ImgTag> Step 2. Add the Button component to the Form_Work form and create the onclick event function as shown below. The layered property is a property that sets the background window to be transparent when creating ChildFrame. By setting this property value to true, you can display a background image of the desired shape on the screen. <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> The WidgetMain1.xfdl form is a form that will be displayed in the widget form. As only necessary UI is exposed in the widget form, the taskbar, title bar, and status bar are processed to be invisible in the OpenStyle parameter setting. Then, set the topmost property value to true to ensure that it is not covered by other programs. Step 3. Create a new Form object with the name of WidgetMain1. Step 4. Select the ResourceExplorer tab and select [Import] from the context menu. Import a transparent image file to be used as the background image. For example, if it is a circular shape, only the circle is displayed with the background area being displayed transparently. In the example, the image below was used. https://pixabay.com/en/book-character-glasses-show-1773756/ Step 5. Select the transparent image file as the imageurl property value in the background property of the Form object and then set the background-color property value to transparent. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Creating a Simple Calendar Widget/2.jpg</ImgTag> Step 6. Resize the Form object to fit the transparent image file and then place the Calendar component in the desired position. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Creating a Simple Calendar Widget/3.jpg</ImgTag> Step 7. Select NRE as the execution option from the toolbar and click the Launch icon or enter the shortcut key (Ctrl + F5) to run the app. Caution: When running Launch, the widget function cannot be used in web browsers other than NRE. Step 8. When you click the button in the app, the widget UI created with WidgetMain1 is displayed on the screen. Step 9. You can drag the non-transparent background image area with the mouse to move it to the desired position. Caution: If you click the transparent background image area, then you cannot change the position of the widget by dragging it with the mouse as the focus moves to the window shown at the back. If you click the individual component, then you cannot change the position of the widget by dragging it with the mouse as the individual component needs to operate. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Creating a Simple Calendar Widget/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|> Creating a Widget that Runs Immediately<|eot_id|><|start_header_id|>assistant<|end_header_id|> In the previous example, the widget UI appeared when the main form was executed and the button was clicked. In this example, we will create a widget that runs immediately (or appears to do so) without user input. Step 1. Create the oninit event function in the Form_Work form that was used in the previous example as shown below. <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> Step 2. Add the Button component for closing the widget to the widget form (WidgetMain1). In the previous example, when the main form is closed, the widget is closed with it but as the title bar is not displayed on the widget, a separate close button needs to be created. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Creating a Widget that Runs Immediately/1.jpg</ImgTag> Step 3. Add the Button component and then create the onclick event function as shown below. <CodeTag> this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.close();}; </CodeTag> Step 4. Select NRE as the execution option from the toolbar and then click the Launch icon or enter the shortcut key (Ctrl + F5) to run the app. As the app runs, the open method is executed while making the mainframe invisible, resulting in only the widget UI being displayed on the screen. Click the [CLOSE] button to close the widget UI. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Creating a Widget that Runs Immediately/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|> Controlling the Widget in the Tray<|eot_id|><|start_header_id|>assistant<|end_header_id|> Having the widget displayed on the screen may interfere with any other tasks you are performing. In that case, you can hide the widget for a while and then make it visible again. You can register the tray in the app and control widgets from the tray. Step 1. Select the App in the Project Explorer and select the [Add > Tray] item from the context menu. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/1.jpg</ImgTag> Step 2. Select the tray icon and then set the icon, tooltip property values in the property window. icon: 'application' tooltip: Nexacro Widget Tray Note: For the icon property value, you can use the system icon provided by default or set the URL value. In the example, <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/2.jpg</ImgTag> Step 3. Add the onrbuttonup event function as shown below. 'PopupMenu00' is the PopupMenu component id value to be created in the next step. It makes the menu appear when right-clicking on the tray. <CodeTag> this.Tray0_onrbuttonup = function(obj:nexacro.Tray,e:nexacro.MouseEventInfo){ var pdivWigetMenu = obj.items[obj.findItem('PopupMenu00')]; pdivWigetMenu.trackPopup()}; </CodeTag> Step 4. Click the add button in the PopupMenu window underneath the tray icon. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/3.jpg</ImgTag> Step 5. Select the PopupMenu00 item to set innerdataset in the property window to the right. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/4.jpg</ImgTag> Specify the captioncolumn, idcolumn items as 'Widget', 'Exit' and the levelcolumn item as 0. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/5.jpg</ImgTag> Step 6. By selecting the Event icon from the properties window, you can add event functions. Add the onmenuclick event function as below. This code specifies the operation when the menu item is selected by right-clicking with the mouse cursor on the tray. When the 'Widget' item is selected, the widget is displayed if the widget is closed (invisible), and only the log is recorded if it is already displayed. When the 'Exit' item is selected, the app will be closed. <ImgTag>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/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>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/7.jpg</ImgTag> Step 7. Modify the event script that occurs when the button is clicked on the widget form (WidgetMain1). When selecting the menu in the tray, do not create a new widget screen every time, but rather only modify the visible property value to change whether to display or not. Then, add the code to display a message in the tray area when the widget is closed. <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>Advanced Development Guide 21.0.0.300|Developing the Widget App|Controlling the Widget in the Tray/8.jpg</ImgTag> Step 8. Select NRE as the execution option from the toolbar and then click the Launch icon or enter the shortcut key (Ctrl + F5) to check if the tray is displayed normally in the lower right corner of the window screen, and check that the menu is displayed when right-clicked.<|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|> Unit Test in the Windows OS NRE<|eot_id|><|start_header_id|>assistant<|end_header_id|> The WinAppDriver linkage function uses the UIAutomation interface provided by the Nexacro to read or write properties of apps running in NRE and to support methodological execution by specifying parameters. You can write unit tests and test using UI automation testing tools, such as Selenium. In this chapter, we will look at the steps to install the WinAppDriver, create basic C# and Java projects in Visual Studio and Eclipse, and connect them to the Nexacro apps. Caution: WinAppDriver operates in Windows 10 or later environments. 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|> Configuring the WinAppDriver Linkage Installing the WinAppDriver<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Enable 'Developer Mode' in the Windows operating system [Settings > Use Developer Features]. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the WinAppDriver/1.jpg</ImgTag> Caution: If you are enabling developer mode for the first time, the operating system configuration may take some time. Please allow some time to enable the mode. Step 2. Download the WinAppDriver installation file (WindowsApplicationDriver.msi). Note: https://github.com/Microsoft/WinAppDriver https://github.com/Microsoft/WinAppDriver/releases <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the WinAppDriver/2.jpg</ImgTag> Step 3. Run the downloaded installation file (WindowsApplicationDriver.msi) to install the WinAppDriver. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the WinAppDriver/3.jpg</ImgTag> Step 4. Run the WinAppDriver with administrator privileges from the installation path. Note: The general installation path is as follows. C:\Program Files (x86)\Windows Application Driver\ <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the WinAppDriver/4.jpg</ImgTag> Step 5. Check if it runs normally. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the WinAppDriver/5.jpg</ImgTag> Note: If you want to change the ip, port settings, then execute the following. > 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|> Configuring the WinAppDriver Linkage Installing the Development Tools<|eot_id|><|start_header_id|>assistant<|end_header_id|> Unit test projects can be created using the C# or Java languages.<|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|> Installing the Development Tools Installing Visual Studio<|eot_id|><|start_header_id|>assistant<|end_header_id|> In the case of using the C# language and Visual Studio not being installed, you can install the development tool provided for free. Step 1. Download the Visual Studio community installation file (vs_community__xxxx.xxxx.exe). Note: Visual Studio Community https://visualstudio.microsoft.com/vs/community/ Step 2. Run the downloaded installation file (vs_community__xxxx.xxxx.exe) to install Visual Studio. Caution: It may take some time to download the required package during installation. Please allow some time before proceeding with the installation. Step 3. Select the 'Universal Windows Platform development' from the Workloads item and then proceed with the installation. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the Development Tools/1.jpg</ImgTag> Note: The development environment can also be added following installation. Tip: A window to log in to your Microsoft account is displayed, but you can still test without logging in.<|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|> Installing the Development Tools Installing Eclipse<|eot_id|><|start_header_id|>assistant<|end_header_id|> In the case of using the Java language and Eclipse not being installed, you can install the development tool provided for free. Step 1. Download the Eclipse installation file (eclipse-inst-win64.exe). Note: eclipse.org https://www.eclipse.org/downloads/ Step 2. Run the downloaded installation file (eclipse-inst-win64.exe) to install Eclipse. Step 3. Select the 'Java Developers' item from the development type selection step. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Configuring the WinAppDriver Linkage|Installing the Development Tools/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|> Creating & Running a Unit Test Creating & Deploying the Nexacro App<|eot_id|><|start_header_id|>assistant<|end_header_id|> Create and deploy a simple Nexacro app. Tip: You can skip this step if you are going to use the Nexacro app that has already been installed. Step 1. Run Nexacro Studio. Step 2. Create a project and a simple form screen. Place only the Button component and the Edit component on the screen. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating & Deploying the Nexacro App/1.jpg</ImgTag> Step 3. Write the onclick event function of the Button component. When the Button component onclick event occurs, change the value property value in the Edit component. <CodeTag> this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){ this.Edit00.set_value('BUTTON CLICK');}; </CodeTag> Step 4. Select the menu [Deploy > Packing (Archive&Update)] item and then create an archive file to be deployed. Set the Update Type to 'Local' so that it can run without a server connection. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating & Deploying the Nexacro App/2.jpg</ImgTag> Step 5. Click the [Packing] button to create the archive file and then click the [Build App] button. Step 6. Click the [Build] button in the Build App window to create the installation file. Step 7. Run the created installation file to install the Nexacro app.<|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|> Creating a Unit Test Project Creating a Unit Test Project in Visual Studio<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Run Visual Studio. Step 2. Select the 'Unit Test Project' from the New Project to create a new project. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/1.jpg</ImgTag> Step 3. Install the Appium WebDriver library. Select the menu [Project > Manage NuGet Package] and then enter 'Appium' in the search window to check the Appium WebDriver library in the search results. Click the [Install] button to install the library. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/2.jpg</ImgTag> Step 4. Check the Selenium related package in the Updates tab. Caution: If the latest version is installed, then the code may not work. If you have the latest version, please conduct the minor upgrade to version 3.0.1. https://github.com/Microsoft/WinAppDriver/issues/497 <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/3.jpg</ImgTag> Step 5. Modify the created C# source code file as follows. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/4.jpg</ImgTag> Modify the settings related to the Nexacro app through the code below. Modify the pathway where the app is installed, the path to the nexacro.exe executable file, and the nexacro.exe execution option to match the actual installation path. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/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> Step 6. Run the Nexacro app and add code to create the session. Modify the Setup method in the code above as follows. <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> Tip: A timeout error may occur depending on the TimeSpan setting value. In that case, change the setting value as follows and proceed with the test. TimeSpan time = new TimeSpan(0, 0, 30); Step 7. Select the menu [Test > Run > All Tests] item to proceed with the test. You can see that the installed app is running. You can check the access information and session being created on the console screen where the WinAppDriver was executed. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/5.jpg</ImgTag> Step 8. You can check the successful test information in the Visual Studio test explorer. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/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|> Creating a Unit Test Project Creating the Unit Test Project in Eclipse<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Run Eclipse. Step 2. Select the menu [File > New > Java Project] and create a new project. Step 3. Download the required library and unzip the compressed file (.zip). <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/1.png</ImgTag> Note: Download and install the Apache Commons Lang library when the following error occurs during execution. It may not be necessary, depending on the development environment. java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils Step 4. Add the JUnit library. Select the menu [Project > Properties > Java Build Path > Libraries] tab and then click the [Add Library] button. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/1.jpg</ImgTag> Step 5. Add the Appium, Selenium libraries. Click the [Add External JARs] button and add the JAR file from the downloaded library file. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/2.jpg</ImgTag> Step 6. Click the [Apply and Close] button to apply the changes. Step 7. Select the menu [File > New > Class] and then create a new class file. Only enter the Name item and do not modify other options. Step 8. Modify the created Java source code file as follows. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/3.jpg</ImgTag> Modify the settings related to the Nexacro app in the code below. Modify the pathway where the app is installed, the pathway to the nexacro.exe executable file, and the nexacro.exe execution option to match the actual installation pathway. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/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) { // Nexacro17Session.quit(); } } @Test public void Test_01_Session() { System.out.println('session : ' + session); System.out.println('session.SessionId : ' + session.getSessionId()); }} </CodeTag> Step 9. Run the Nexacro app and then add code to create the session. Modify the Setup method in the code above as follows. <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> Step 10. Select the menu [Run > Run As > JUnit Test] item to proceed with the test. You can see that the installed app is running. You can check the access information and session being created on the console screen where the WinAppDriver was executed. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/4.jpg</ImgTag> Step 11. You can check the successful test information in the JUnit panel. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Creating a Unit Test Project/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|> Creating & Running a Unit Test Running the Unit Test<|eot_id|><|start_header_id|>assistant<|end_header_id|> Step 1. Add the code to run the unit test as follows. Find the Button component in the current session and then process the mouse click command. <CodeTag> Code - C# </CodeTag> [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> Code - Java </CodeTag> @Testpublic void Test_Button() throws Exception { WebElement element = session.findElementByAccessibilityId('mainframe.WorkFrame.form.Button00'); Assert.assertNotNull(element); Thread.sleep(1000); element.click();} Step 2. When the test is run, the installed app is executed. You can see that the mouse cursor is placed on the Button component and the click command is executed. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Creating & Running a Unit Test|Running the Unit Test/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|> Checking the AccessibilityId Property Value<|eot_id|><|start_header_id|>assistant<|end_header_id|> To access the component or control, the FindElementByAccessibilityId method is used, and you need to check the AccessibilityId property value at this time.<|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|> Checking the AccessibilityId Property Value Checking the Component Property Value<|eot_id|><|start_header_id|>assistant<|end_header_id|> The method to access the component itself placed on the form is as follows. [MainFrame id property value].[ChildFrame id property value].form.[Component id property value] To get the element of the Button component with the id property value being 'Button00', write the following code. <CodeTag> Code - C# </CodeTag> WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Button00'); Components placed in the Div component can be accessed as follows. <CodeTag> Code - C# </CodeTag> WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.CheckBox00');<|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|> Checking the AccessibilityId Property Value Checking the Control & the Item Property Values<|eot_id|><|start_header_id|>assistant<|end_header_id|> For example, the dropbutton of the Combo component placed in the Div component can generate the element as below. <CodeTag> Code - C# </CodeTag> WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.Combo00.dropbutton'); To proceed with the unit test, you need to expand the dropdown list of the Combo component and then select the item. To expand the dropdown list, you need to access the ButtonControl in the Combo component and then check the property value of the control. The control property value can be checked in the component overview by running Help (shortcut key F1) in the Nexacro Studio. You can check that the id property value of the button clicked to expand the dropdown list in the Combo component is 'dropbutton'. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Checking the AccessibilityId Property Value|Checking the Control & the Item Property Values/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|> Checking the AccessibilityId Property Value Checking the Property Value with Inspect<|eot_id|><|start_header_id|>assistant<|end_header_id|> Caution: Property values (sub-controls) that are not exposed in Help may be changed depending on the product version. When the property value is changed, the written test may not work. However, it does not tell you how to access Item 3 after expanding the dropdown list. In this case, you can use the tool called 'Inspect'. 'Inspect' can be found in the installation pathway if Windows SDK is installed. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Checking the AccessibilityId Property Value|Checking the Property Value with Inspect/1.jpg</ImgTag> Note: Inspect https://docs.microsoft.com/en-us/windows/desktop/winauto/inspect-objects Step 1. Run the inspect.exe file in the Windows SDK installation pathway. Step 2. Run the Nexacro and then move the mouse cursor to the desired location. Step 3. Click the dropdown button of the Combo component to expand the dropdown list. Step 4. Place the mouse cursor on the desired item area. As shown in the figure below, a borderline is displayed in the target area recognized by Inspect, and the related information is displayed in the Inspect window. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Checking the AccessibilityId Property Value|Checking the Property Value with Inspect/2.jpg</ImgTag> <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Checking the AccessibilityId Property Value|Checking the Property Value with Inspect/3.jpg</ImgTag> Various information is displayed, and the item to be used as the AccessibilityId property value among them is 'AutomationId'. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Checking the AccessibilityId Property Value|Checking the Property Value with Inspect/4.jpg</ImgTag> When selecting the 2nd item from the dropdown list, you can generate the element as shown below. <CodeTag> Code - C# </CodeTag> WindowsElement element = session.FindElementByAccessibilityId('mainframe.ChildFrame00.form.Div00.form.Combo00.combolist.item_1'); The element corresponding to the item can be accessed after the dropdown list is expanded. If you try to access the item before expanding the list, then it will be processed as a test failure. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Checking the AccessibilityId Property Value|Checking the Property Value with Inspect/5.jpg</ImgTag> In the test code, find the dropbutton element first, process the mouse click event, and then access the desired item when the dropdown list is expanded. <CodeTag> Code - C# </CodeTag> [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);}<|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|> Running the Demo Unit Test by Feature<|eot_id|><|start_header_id|>assistant<|end_header_id|> You can download the Nexacro app installation file and the Java and C# sample files to run demos by feature. Step 1. Access the address below in a web browser. https://github.com/TOBESOFT-DOCS/sample_nexacroplatform_17_winappdriver You can see 2 folders and 1 installation file. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Running the Demo Unit Test by Feature/1.jpg</ImgTag> Step 2. Download the nexacro17_SetupRuntime_x86.exe file. Click the file name with the mouse to see the [Download] button. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Running the Demo Unit Test by Feature/2.jpg</ImgTag> Step 3. Install the app by running the downloaded installation file. The app will be installed in the pathway below. C:\Program Files (x86)\nexacro\17\app0201 Step 4. Paste the C# and Java samples into the project created in the Unit Test Project. Step 5. Run the unit test and check if the unit test is processing normally. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Running the Demo Unit Test by Feature/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|> Supported Interface<|eot_id|><|start_header_id|>assistant<|end_header_id|> Caution: Not all SeleniumRC and Appium interfaces are supported. Features that cannot be supported in the Nexacro or are not supported in the WinAppDriver are excluded. Note: The items below can be used when the client does not support a separate interface and they are called directly from the web browser or are called using HttpWebResponse, etc. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface/1.png</ImgTag> <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface/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 Creating a Session<|eot_id|><|start_header_id|>assistant<|end_header_id|> Create the session with the winappdriver information and then run the app. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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|> Session Ending a Session<|eot_id|><|start_header_id|>assistant<|end_header_id|> End the session and then close the app. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|Session/1.png</ImgTag> Caution: Some of the interfaces provided by the WinAppDriver are not supported in the Nexacro.<|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|> Timeout Setting a Timeout<|eot_id|><|start_header_id|>assistant<|end_header_id|> Set the timeout value to be applied during the session operation. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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|> Frame Checking the Mainframe Information<|eot_id|><|start_header_id|>assistant<|end_header_id|> Return the titletext property value of the MainFrame object. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Changing the Enabled Window<|eot_id|><|start_header_id|>assistant<|end_header_id|> Change the current window. Windowhandle can be obtained from session.WindowHandles. For the initial execution, the MainFrame object is set as the current window. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Ending the Enabled Window<|eot_id|><|start_header_id|>assistant<|end_header_id|> End the current window. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Obtaining the Enabled Window Handle<|eot_id|><|start_header_id|>assistant<|end_header_id|> Return the current window handle object. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Obtaining the Window Handle Array<|eot_id|><|start_header_id|>assistant<|end_header_id|> Return all window handle objects as an array. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Checking the Window Size Information<|eot_id|><|start_header_id|>assistant<|end_header_id|> Return the window size in the form of the Size object. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Changing the Window Size<|eot_id|><|start_header_id|>assistant<|end_header_id|> Change the window size. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Checking the Window Position Information<|eot_id|><|start_header_id|>assistant<|end_header_id|> Return the window position in the form of the Point object. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Changing the Window Position<|eot_id|><|start_header_id|>assistant<|end_header_id|> Change the window coordinates. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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 Maximizing the Window<|eot_id|><|start_header_id|>assistant<|end_header_id|> Maximize the window size. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|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|> Supported Interface Element<|eot_id|><|start_header_id|>assistant<|end_header_id|> Element is the smallest unit of the WinAppDriver operation. In the Nexacro, nexacro Element, which is the element of components and controls, is processed as Element. ControlElement surrounds the component and Elements, such as ContainerElement, InputElement, IconTextElement, TextElement, are located inside. In the case of the Button component, it is configured as follows. <ImgTag>Advanced Development Guide 21.0.0.300|Unit Test in the Windows OS NRE|Supported Interface|Element/1.jpg</ImgTag><|eot_id|>
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
1