KR20150024973A - Apparatus, method and computer-readable medium for recording script - Google Patents

Apparatus, method and computer-readable medium for recording script Download PDF

Info

Publication number
KR20150024973A
KR20150024973A KR20130101729A KR20130101729A KR20150024973A KR 20150024973 A KR20150024973 A KR 20150024973A KR 20130101729 A KR20130101729 A KR 20130101729A KR 20130101729 A KR20130101729 A KR 20130101729A KR 20150024973 A KR20150024973 A KR 20150024973A
Authority
KR
South Korea
Prior art keywords
information
script
view
coordinates
view information
Prior art date
Application number
KR20130101729A
Other languages
Korean (ko)
Other versions
KR102114260B1 (en
Inventor
서나미
Original Assignee
에스케이플래닛 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 에스케이플래닛 주식회사 filed Critical 에스케이플래닛 주식회사
Priority to KR1020130101729A priority Critical patent/KR102114260B1/en
Publication of KR20150024973A publication Critical patent/KR20150024973A/en
Application granted granted Critical
Publication of KR102114260B1 publication Critical patent/KR102114260B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • G06F11/2635Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files

Abstract

The purpose of the present invention is to automatically verify an application in conditions that approximated conventional conditions as closely as possible when another terminal performs automatic application verification by storing complex information together upon generating a script for automatic application verification. The present invention relates to an apparatus, a method and a computer-readable recording medium for generating a script and, more specifically, to an apparatus and method for generating a script. The apparatus includes: a hardware key sensing unit configured to transmit corresponding hardware key information to a script generating unit when a hardware key input event occurs; an access event sensing unit configured to transmit, to the script generating unit, view information displayed on a screen according to an operation of an application, and to transmit, to the script generating unit, coordinates where an access event occurs and information on the periphery of the coordinates when the access event occurs; and the script generating unit configured to store the hardware key information or the view information as cache information, to construct view information of a coordinate view by using the coordinates, and to store the constructed view information together with the periphery information in a script.

Description

스크립트 생성 장치, 방법 및 컴퓨터로 판독 가능한 기록매체{Apparatus, method and computer-readable medium for recording script}[0001] APPARATUS, METHOD AND COMPUTER READABLE MEDIUM FOR RECORDING SCRIPT [0002]

본 발명은 스크립트 생성 장치, 방법 및 컴퓨터로 판독 가능한 기록매체에 관한 것으로, 보다 상세하게는 하드웨어 키 정보, 뷰 정보를 캐쉬정보로 저장하고 있다가 접근성 이벤트가 발생하면 이를 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시간의 뷰 정보를 새로 구성하고, 이를 스크립트에 주변정보와 함께 저장하는 스크립트 생성 장치, 방법 및 컴퓨터로 판독 가능한 기록매체에 관한 것이다.
The present invention relates to a script generating apparatus, a method, and a computer-readable recording medium. More particularly, the present invention stores hardware key information and view information as cache information. When an accessibility event occurs, And a computer-readable recording medium for storing the generated view information together with peripheral information in a script.

애플리케이션 자동 검증 솔루션과 같은 에러/성공을 모니터링 하는 시스템은 대표적으로 컴파일러가 있다. 하지만, 컴파일러의 경우, 기 정의된 syntax의 준수 여부를 중점적으로 비교하는 것으로 해당 오류를 보여줄 때 기 정의된 syntax의 사용법을 기준으로 결과를 안내하는 방법이며, 해당 에러의 발생 위치나 원인을 전달하는데 한계가 있다.Systems that monitor errors / successes, such as application auto-validation solutions, are typically compilers. However, in the case of the compiler, it compares the conformity of the predefined syntax. It shows the result based on the usage of the defined syntax when the corresponding error is shown. It conveys the location and cause of the error There is a limit.

또 다른 서버 모니터링 툴(제니퍼 등임)의 경우 JVM(Java Virtual Machine) 등의 프로그램을 통해 서버에서 기 정의된 에러(응답, http 에러, 예외처리 etc.)가 발생된 경우, 에러코드를 알람을 통해 전달하는 방법으로 사용되고 있으나, 이 역시 기존의 컴파일러와 크게 다르지 않은 원리로 동작되고 유사한 한계점을 가지고 있다. In the case of another server monitoring tool (Jennifer etc.), if an error (response, http error, exception handling, etc.) defined in the server occurs through a program such as JVM (Java Virtual Machine) However, it also operates on a principle that is not significantly different from the existing compiler and has similar limitations.

상기와 같이 종래 기술은 애플리케이션 자동검증을 위한 스크립트 제작(record)시 애플리케이션이 동작하는 동안의 상태정보를 별도로 저장하지 않고, request에 대한 응답 유형으로 동작 오류의 원인을 파악함으로써, 동일 스크립트에 대한 테스트 단말별 특성을 파악할 수 없다는 단점이 있다.
As described above, the prior art does not separately store the status information during the operation of the application when the script for automatic verification of the application is recorded, and identifies the cause of the operation error as the response type for the request, The characteristics of each terminal can not be grasped.

선행기술 1 : 한국등록특허 제10-0856204호(2008.08.27.등록)Prior Art 1: Korean Patent No. 10-0856204 (Registered on Aug. 27, 2008)

본 발명은 상술한 종래의 문제점을 해결하기 위한 것으로, 애플리케이션 자동검증을 위한 스크립트 제작(record)시 복합적 정보를 함께 저장하여, 타 단말에서 자동 검증 수행 시 기존 환경과 최대한 동일환경에서 수행될 수 있도록 하는 것을 목적으로 한다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems, and it is an object of the present invention to provide a method and apparatus for storing a composite information when a script for automatic application verification is recorded together, .

본 발명은 하드웨어 키 정보, 뷰 정보를 캐쉬정보로 저장하고 있다가 접근성 이벤트가 발생하면 이를 캐쉬정보와 비교하여 접근성 이벤트가 발생한 시간의 뷰 정보를 새로 구성하고 이를 주변정보와 함께 스크립트에 저장함으로써, 자동검증용 스크립트를 다양한 테스트 단말에서 재생하더라도, 기준 단말에서 수행되던 환경과 유사한 환경으로 재생이 가능하여 동일한 환경에 대한 단말 특성 파악을 가능하게 하는 것을 목적으로 한다.
The present invention stores hardware key information and view information as cache information, and when an accessibility event occurs, compares it with cache information to newly construct view information of a time at which an accessibility event occurs, and stores the view information together with peripheral information in a script, Even if the automatic verification script is reproduced by various test terminals, it is possible to reproduce the environment similar to the environment that was performed in the reference terminal, thereby enabling the terminal characteristics to be recognized in the same environment.

상술한 과제를 해결하기 위한 본 발명의 스크립트 생성 장치는 하드웨어 키 입력 이벤트 발생시, 해당 하드웨어 키 정보를 스크립트 생성부로 전송하는 하드웨어 키 감지부, 애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 스크립트 생성부로 전송하고, 접근성 이벤트 발생 시, 접근성 이벤트가 발생한 좌표와 주변정보를 상기 스크립트 생성부로 전송하는 접근성 이벤트 감지부, 상기 하드웨어 키 정보 또는 뷰 정보를 캐쉬 정보로 저장하고, 상기 접근성 이벤트 감지부로부터 접근성 이벤트의 좌표 및 주변정보가 수신된 경우, 상기 좌표를 이용하여 그 시점의 뷰 정보를 구성하고, 이를 주변 정보와 함께 스크립트에 저장하는 스크립트 생성부를 포함할 수 있다. According to an aspect of the present invention, there is provided a script generating apparatus including a hardware key detecting unit for transmitting hardware key information to a script generating unit upon occurrence of a hardware key input event, An accessibility event sensing unit for transmitting coordinates and surrounding information generated by an accessibility event to the script generating unit when an accessibility event occurs, storing the hardware key information or view information as cache information, And a script generation unit for constructing view information at the time point using the coordinates and storing the coordinates together with the peripheral information in a script when coordinates of the event and surrounding information are received.

본 발명의 스크립트 생성 장치 내의 접근성 이벤트 감지부는 애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 시간 순서대로 저장 및 상기 스크립트 생성부로 전송하는 뷰 정보 저장모듈, 접근성 이벤트 발생 시, 상기 뷰 정보 저장모듈에서 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 검색하는 좌표 검색 모듈, 상기 접근성 이벤트가 발생한 시점의 장치정보, 리소스 정보를 포함하는 주변정보를 획득하는 이벤트 분석 모듈, 상기 좌표 검색 모듈에서 검색된 좌표, 상기 이벤트 분석 모듈에서 획득된 주변 정보를 상기 스크립트 생성부로 전송하는 송신 모듈을 포함할 수 있다. The accessibility event detection unit in the script generation apparatus of the present invention includes a view information storage module that stores view information displayed on a screen in a time sequence according to application driving and transmits the view information to the script generation unit, An event analysis module for acquiring peripheral information including device information and resource information at the time when the accessibility event has occurred, coordinates retrieved from the coordinate retrieval module, And a transmission module for transmitting the peripheral information obtained from the event analysis module to the script generation unit.

본 발명의 스크립트 생성 장치 내의 뷰 정보 저장모듈은 화면에 표시된 뷰로부터 트리 구조를 추출하고, 상기 트리 구조를 형성하는 개별 화면의 구성 정보를 추출한 후, 상기 트리 구조 또는 구성 정보를 해쉬 코드와 좌표로 저장할 수 있다. The view information storage module in the script generating apparatus of the present invention extracts the tree structure from the view displayed on the screen, extracts the configuration information of the individual screen forming the tree structure, and then extracts the tree structure or configuration information from the hash code and the coordinates Can be stored.

본 발명에 있어서, 뷰 정보는 화면에 표시된 뷰의 해쉬 코드와 좌표를 포함할 수 있다. In the present invention, the view information may include a hash code and coordinates of a view displayed on the screen.

한편, 본 발명의 스크립트 생성 방법은 (a)애플리케이션 구동에 따른 뷰 정보 및 하드웨어 키 정보를 캐쉬 정보로 저장하는 단계, (b)접근성 이벤트 발생 시, 기 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 구하고, 주변 정보를 획득하는 단계, (c)상기 좌표를 상기 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시점의 뷰 정보를 새로 구성하고, 상기 새로 구성된 뷰 정보를 상기 주변정보와 함께 스크립트에 저장하는 단계를 포함할 수 있다.Meanwhile, the script generation method of the present invention includes the steps of (a) storing view information and hardware key information according to application running as cache information, (b) when an accessibility event occurs, (C) comparing the coordinates with the cache information to newly construct view information at the time of occurrence of the accessibility event, and storing the newly configured view information together with the peripheral information in a script .

본 발명의 일 실시예에서 상기 (b) 단계는 (b-1)애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 시간 순서대로 저장하는 단계, (b-2)접근성 이벤트 발생 시, 상기 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 검색하는 단계, (b-3)상기 접근성 이벤트가 발생한 시점의 장치정보, 리소스 정보를 포함하는 주변정보를 획득하는 단계를 포함할 수 있다. In an embodiment of the present invention, the step (b) includes the steps of: (b-1) storing view information displayed on the screen in time order according to application driving; (b-2) (B-3) acquiring the peripheral information including the device information and the resource information at the time when the accessibility event occurred, in the view information.

본 발명에서 다양한 실시예로 기재된 스크립트 생성 방법은 이를 실행하기 위한 프로그램이 수록된 컴퓨터로 판독 가능한 기록 매체에 수록되어 실시될 수 있다.
The script generation method described in various embodiments in the present invention can be embodied in a computer-readable recording medium containing a program for executing it.

본 발명에 따르면, 애플리케이션 자동검증을 위한 스크립트 제작(record)시 복합적 정보를 함께 저장하여, 타 단말에서 자동 검증 수행시 기존 환경과 최대한 동일환경에서 수행될 수 있도록 함으로써, 자동 검증 오류 발생시 해당 오류에 대한 신뢰도 및 재현율을 높이고, 나아가 동일 스크립트에 대한 단말별 특성 파악에 유용하다.According to the present invention, when a script for automatic verification of an application is recorded, complex information is stored together and the automatic verification is performed in the same environment as the existing environment when the automatic verification is performed in the other terminal, It is useful to increase the reliability and recall rate for the same script and to grasp the characteristics of each terminal for the same script.

또한, 하드웨어 키 정보, 뷰 정보를 캐쉬정보로 저장하고 있다가 접근성 이벤트가 발생하면, 이를 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시간의 뷰 정보를 구성하고 이를 주변정보와 함께 스크립트에 저장함으로써, 자동검증용 스크립트를 다양한 테스트 단말에서 재생하더라도, 기준 단말에서 수행되던 환경과 유사한 환경으로 재생이 가능하여 동일한 환경에 대한 단말 특성을 파악할 수 있다.
When accessibility events are generated, the hardware key information and the view information are stored as cache information. When an accessibility event is generated, the access information is compared with the cache information to construct view information of the time when the accessibility event occurs, Even if the verification script is reproduced by various test terminals, reproduction can be performed in an environment similar to the environment that was performed in the reference terminal, and terminal characteristics for the same environment can be grasped.

도 1은 본 발명의 스크립트 생성 장치의 일 실시예를 나타낸 블록도이다.
도 2는 본 발명의 스크립트 생성 장치 내 접근성 이벤트 감지부(300)의 일 실시예를 나타낸 블록도이다.
도 3은 본 발명의 스크립트 생성 방법의 일 실시예를 나타낸 순서도이다.
1 is a block diagram showing an embodiment of a script generating apparatus of the present invention.
2 is a block diagram illustrating an embodiment of an accessibility event detection unit 300 in the script generation apparatus of the present invention.
3 is a flowchart showing an embodiment of a script generation method of the present invention.

본 발명의 전술한 목적과 기술적 구성 및 그에 따른 작용 효과에 관한 자세한 사항은 본 발명의 명세서에 첨부된 도면에 의거한 이하 상세한 설명에 의해 보다 명확하게 이해될 것이다.The foregoing and other objects, features, and advantages of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which: FIG.

도 1은 본 발명의 스크립트 생성 장치의 일 실시예를 나타낸 블록도이다. 1 is a block diagram showing an embodiment of a script generating apparatus of the present invention.

본 발명의 스크립트 생성 장치는 사용자 인터페이스부(100), 하드웨어 키 감지부(200), 접근성 이벤트 감지부(300), 스크립트 생성부(400), 저장부(500)를 포함한다.The script generating apparatus of the present invention includes a user interface unit 100, a hardware key sensing unit 200, an accessibility event sensing unit 300, a script generating unit 400, and a storage unit 500.

사용자 인터페이스부(100)는 사용자 명령을 입력받는 입력부 또는 사용자 명령에 따른 동작 결과를 출력하는 출력부일 수 있다. 예컨대, 사용자 인터페이스부(100)는 시각적으로 확인 가능한 디스플레이의 형태가 될 수도 있고, 스피커 등 청각적으로 확인 가능한 형태일수도 있으며, 그 밖에 사용자 명령에 따른 동작 결과를 확인할 수 있는 모든 형태를 포함한다.The user interface unit 100 may be an input unit for receiving a user command or an output unit for outputting an operation result according to a user command. For example, the user interface unit 100 may be a form of a display that can be visually confirmed, may be a form that can be visually verified such as a speaker, and may include any form capable of confirming an operation result according to a user command .

하드웨어 키 감지부(H/W Key Detector)(200)는 하드웨어 키 입력 이벤트 발생시, 해당 하드웨어 키 정보를 스크립트 생성부(400)로 전송한다. 여기서, 하드웨어 키는 홈(home)키, 백(back)키 등 스크립트 생성 장치의 외관에 구비된 모든 형태의 키를 포함할 수 있다. 따라서, 하드웨어 키 감지부(200)는 하드웨어 키 입력 이벤트 발생시점마다 해당 하드웨어 키의 정보를 담은 인텐트(Intent)를 스크립트 생성부(400)로 전송하여 스크립트 생성부(400)에서 하드웨어 키 이벤트를 감지할 수 있도록 한다.The hardware key detection unit (H / W Key Detector) 200 transmits the corresponding hardware key information to the script generation unit 400 when a hardware key input event occurs. Here, the hardware key may include all types of keys included in the appearance of the script generating device, such as a home key, a back key, and the like. Accordingly, the hardware key detection unit 200 transmits an intent containing the information of the corresponding hardware key to the script generation unit 400 every time a hardware key input event occurs, and transmits a hardware key event to the script generation unit 400 So that it can be detected.

접근성 이벤트 감지부(Accessibility Event Generator)(300)는 애플리케이션 구동에 따라 사용자 인터페이스부(100)에 표시된 뷰(View) 정보를 순서대로 저장 및 스크립트 생성부(400)로 전송하고, 접근성 이벤트 발생 시 접근성 이벤트가 발생한 뷰의 주변정보를 스크립트 생성부(400)로 전송한다. 이때, 접근성 이벤트 감지부(300)는 접근성 이벤트가 일어난 정보를 전체 뷰(View) 트리 정보가 아닌 입력이 일어난 뷰의 주변정보만을 스크립트 생성부(400)로 전송한다. 여기서, 뷰(view)란 스크립트 생성 장치의 출력창을 통해 표시되는 애플리케이션 컨텐츠의 구성요소를 표시하는 프레임을 말한다. The accessibility event generator 300 sequentially transmits the view information displayed in the user interface unit 100 to the storage unit 400 and transmits the access information to the script generator 400. The accessibility event generator 300 accessibility And transmits the peripheral information of the view where the event occurred to the script generating unit 400. [ At this time, the accessibility event sensing unit 300 transmits information about the accessibility event to the script generating unit 400, not only the view tree information but also the peripheral information of the view in which the input occurred. Here, the view refers to a frame that displays the components of the application content displayed through the output window of the script generating apparatus.

접근성 이벤트는 애플리케이션이 외부 사용자로부터 명령을 입력받아 컨텐츠 상의 변화가 생긴 모든 경우를 일컫는 용어로서, 특히 사용자가 애플리케이션이 실행되고 있는 장치 상에 의도하고자 하는 동작을 수행하기 위해 애플리케이션을 조작하는 모든 행위를 장치가 입력으로서 인지하여 일련의 명령으로 인식한 것을 일컫는다. 대표적인 예로서, 사용자가 스크립트 생성 장치의 스크린을 터치하여 애플리케이션의 특정 컨텐츠를 선택하는 경우, 단말 장치가 스크린 터치 행위를 소프트웨어 명령으로 인식한 것을 하나의 이벤트로 정의할 수 있다. The accessibility event is a term that refers to any case where an application receives a command from an external user and causes a change in the content. In particular, the term "accessibility event" refers to any event in which a user operates an application to perform an intended operation on a device The device recognizes it as an input and recognizes it as a series of commands. As a representative example, when the user touches the screen of the script generating device to select specific contents of the application, it is possible to define that the terminal device recognizes the screen touch action as a software command as one event.

주변 정보는 단말정보를 비롯한 리소스 정보 등을 포함할 수 있고, 리소스 정보는 CPU 사용량, 메모리 사용량, 네트워크 사용량 등을 포함할 수 있다. 이러한 주변 정보는 테스트 단말에서 자동 검증 수행시 스크립트 제작시의 환경과 최대한 동일한 환경에서 수행될 수 있도록 하고, 이는 자동 검증 오류 발생시 해당 오류에 대한 신뢰도 및 재현율을 높이고, 나아가 동일 스크립트에 대한 단말별 특성 파악을 유용하게 할 수 있다. The peripheral information may include resource information including terminal information, and the resource information may include a CPU usage amount, a memory usage amount, a network usage amount, and the like. This perimeter information can be executed in the same environment as the script production environment when the automatic test is performed in the test terminal, and it is possible to increase the reliability and recall rate of the error when the automatic verification error occurs, It can be useful.

접근성 이벤트 감지부(300)는 애플리케이션의 화면 업데이트, 터치 이벤트 등을 감지한다. 또한, 접근성 이벤트 감지부(300)는 애플리케이션의 Activity 구성 요소인 뷰(View) 정보를 시간 순서로 저장하여 Activity가 전환되었을 때 이전 Activity의 뷰(View) 정보를 구할 수 있게 한다. 접근성 이벤트 감지부(300)는 사용자가 터치한 위젯의 좌표를 찾아 스크립트 생성부(400)로 전송한다.The accessibility event detection unit 300 detects a screen update of an application, a touch event, and the like. In addition, the accessibility event sensing unit 300 stores view information, which is an activity component of the application, in a time sequence so that view information of the previous activity can be obtained when the activity is switched. The accessibility event detection unit 300 finds coordinates of a widget that the user touches and transmits the coordinates to the script generation unit 400. [

스크립트 생성부(400)는 하드웨어 키 감지부(200)로부터 수신한 하드웨어 키 정보 또는 접근성 이벤트 감지부(300)로부터 수신한 뷰 정보를 캐쉬 정보로 저장하고 있다가, 접근성 이벤트 감지부(300)로부터 접근성 이벤트의 좌표 및 주변정보가 수신된 경우, 상기 좌표를 이용하여 그 시점의 뷰 정보를 구성하고, 이를 주변 정보와 함께 스크립트에 저장한다. 여기서, 스크립트는 애플리케이션을 검증하기 위한 일련의 검증 시나리오를 작성한 것일 수 있다.The script generating unit 400 stores the hardware key information received from the hardware key sensing unit 200 or the view information received from the accessibility event sensing unit 300 as cache information, When the coordinates of the accessibility event and the surrounding information are received, the view information at that point of time is constructed using the coordinates and stored in the script together with the peripheral information. Here, the script may have created a series of verification scenarios for verifying the application.

즉, 접근성 이벤트, 하드웨어 키, 뷰 정보는 동시간에 처리되지 않기 때문에, 스크립트 생성부(400)는 하드웨어 키, 뷰 정보를 캐쉬정보로 저장하고 있다가 접근성 이벤트가 발생하면, 이를 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시간의 뷰 정보를 새로 구성하고, 이를 주변정보와 함께 스크립트에 저장한다. 다시 말하면, 스크립트 생성부(400)는 접근성 이벤트가 발생하면, 이전 뷰 정보에서 접근성 이벤트가 발생한 좌표에 해당하는 동작이 수행된 즉, 접근성 이벤트가 발생한 시간의 뷰 정보를 새로 구성하고, 새로 구성된 뷰 정보를 스크립트에 포함한다. 이때, 스크립트 생성부(400)는 뷰 정보와 함께 주변정보를 스크립트에 포함시켜 생성할 수 있다.That is, since the accessibility event, the hardware key, and the view information are not processed at the same time, the script generating unit 400 stores the hardware key and the view information as cache information, and when an accessibility event occurs, And constructs view information of the time at which the accessibility event occurred, and stores it in the script along with the surrounding information. In other words, when the accessibility event occurs, the script generating unit 400 newly constructs the view information of the time when the action corresponding to the coordinates at which the accessibility event occurred in the previous view information, that is, the time at which the accessibility event occurred, Include information in the script. At this time, the script generating unit 400 can generate the surrounding information together with the view information by including it in the script.

저장부(500)에는 애플리케이션들이 저장되어 있다.The storage unit 500 stores applications.

일반적으로 제공되는 Hierarchy client는 속도도 느리고 Notification, Toast, 키 입력 등의 정보를 추출하기 어려운데, 본 발명의 스크립트 생성 장치는 이러한 단점을 보완하여 실행 시 보다 많은 양의 정보를 제공할 수 있는 스크립트(Script)를 제작할 수 있다. Generally, the Hierarchy client is slow in speed, and it is difficult to extract information such as Notification, Toast, and key input. The script generating device of the present invention compensates for the above disadvantages, and a script capable of providing a larger amount of information Script can be created.

도 2는 본 발명의 스크립트 생성 장치 내 접근성 이벤트 감지부(300)의 일 실시예를 나타낸 블록도이다.2 is a block diagram illustrating an embodiment of an accessibility event detection unit 300 in the script generation apparatus of the present invention.

본 발명의 접근성 이벤트 감지부(300)는 뷰(view) 정보 저장모듈(310), 좌표 검색 모듈(320), 이벤트 분석 모듈(330), 송신모듈(340)을 포함할 수 있다. The accessibility event sensing unit 300 may include a view information storage module 310, a coordinate search module 320, an event analysis module 330, and a transmission module 340.

뷰 정보 저장모듈(310)은 애플리케이션 구동에 따라 화면에 출력되는 뷰 정보를 시간 순서대로 저장 및 스크립트 생성부(400)로 전송한다. 이때, 뷰 정보 저장모듈(310)은 화면에 출력된 뷰의 해쉬코드와 스크린 좌표를 뷰 정보로 저장할 수 있다. 뷰 정보는 사용자가 눈으로 확인 가능한 화면상에 보이는 화면 정보일 수 있다. The view information storage module 310 stores the view information output on the screen in time sequence according to application driving and transmits the information to the script generator 400. At this time, the view information storage module 310 may store the hash code of the view output on the screen and the screen coordinates as view information. The view information may be screen information that is visible on the screen that the user can visually confirm.

또한, 뷰 정보 저장모듈(310)은 화면에 출력된 뷰의 트리 구조, 개별화면의 구성정보를 뷰 정보로 저장할 수도 있다. 이 경우, 뷰 정보 저장모듈(310)은 뷰 정보로부터 트리 구조를 추출한다. 여기서, 트리 구조란 화면을 구성하는 여러 개별 화면이 이루는 구조를 의미한다. 스크립트 생성 장치의 디스플레이로 어플리케이션 등이 표시될 때에는 여러 개의 개별 화면이 모여 하나의 화면을 구성하는데, 이 때 개별 화면 간의 상대적 배열 등에 따라 각각의 개별 화면이 모여 장치 화면을 형성하는 구조를 트리 구조라 한다. 뷰 정보 저장모듈(310)은 트리 구조를 추출한 이후 트리 구조를 형성하는 각 개별 화면의 구성 정보를 추출한다. 구성 정보란 각 개별 화면이 어떻게 구성되어 있는지에 대한 정보로서, 개별 화면의 크기, 위치, 형태, 개별 화면 내에 표시된 이미지, 텍스트 등을 포함하는 리소스 정보의 ID 등이 포함될 수 있다. 뷰 정보 저장모듈(310)은 추출된 트리 구조, 개별화면의 구성정보를 해쉬코드로 변환하고, 해쉬코드와 스크린 좌표를 뷰 정보로 저장한다. 해시코드란 해시함쉬(hash function)에 의해 만들어지는 결과 값의 일종으로, 임의의 데이터로부터 일종의 짧은 "전자 지문"을 만들어 내는 방법에 의해 구현되는 값이다. 해시함수는 데이터를 자르고 치환하거나 위치를 바꾸는 등의 방법을 사용해 해시코드를 생성한다.In addition, the view information storage module 310 may store the tree structure of the view output on the screen and the configuration information of the individual screen as the view information. In this case, the view information storage module 310 extracts the tree structure from the view information. Here, the tree structure means a structure formed by a plurality of individual screens constituting a screen. When an application or the like is displayed on the display of the script generating apparatus, a plurality of individual screens are gathered to form one screen. In this case, a structure in which each individual screen is gathered according to the relative arrangement of the individual screens to form a device screen is referred to as a tree structure . The view information storage module 310 extracts the tree structure and then extracts the configuration information of each individual screen forming the tree structure. The configuration information is information on how each individual screen is configured, and may include the size, location, and shape of the individual screen, the ID of the resource information including the image and text displayed in the individual screen, and the like. The view information storage module 310 converts the extracted tree structure and individual screen configuration information into a hash code, and stores the hash code and screen coordinates as view information. A hash code is a result value generated by a hash function, which is a value implemented by generating a short "electronic fingerprint" from arbitrary data. The hash function generates hash codes by truncating, substituting, or repositioning the data.

좌표 검색 모듈(320)은 접근성 이벤트 발생 시, 뷰 정보 저장모듈(310)에 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 검색한다. 예컨대, 사용자가 위젯(widget)을 터치 했을 때, 좌표 검색 모듈(320)은 저장된 뷰 정보에서 해당 위젯의 스크린 좌표를 구한다. When the accessibility event is generated, the coordinate search module 320 searches the view information stored in the view information storage module 310 for the coordinates at which the accessibility event occurred. For example, when the user touches a widget, the coordinate search module 320 obtains the screen coordinates of the widget from the stored view information.

이벤트 분석 모듈(330)은 접근성 이벤트를 분석하여 주변 정보를 추출한다. 즉, 이벤트 분석 모듈(330)은 접근성 이벤트가 발생하면, 접근성 이벤트가 발생한 시점의 단말정보를 비롯한 리소스 정보 등을 포함하는 주변 정보를 추출한다. 여기서, 리소스 정보는 CPU 사용량, 메모리 사용량, 네트워크 사용량 등을 포함할 수 있다. The event analysis module 330 analyzes accessibility events and extracts peripheral information. That is, when the accessibility event occurs, the event analysis module 330 extracts peripheral information including resource information including the terminal information at the time when the accessibility event occurred. Here, the resource information may include a CPU usage amount, a memory usage amount, a network usage amount, and the like.

송신 모듈(340)은 좌표 검색 모듈(320)에서 검색된 좌표, 이벤트 분석 모듈(330)에 획득된 주변 정보를 스크립트 생성부(400)로 전송한다. The transmitting module 340 transmits the coordinates of the coordinates retrieved from the coordinate retrieving module 320 and the peripheral information obtained in the event analysis module 330 to the script generating unit 400.

도 3은 본 발명의 스크립트 생성 방법의 일 실시예를 나타낸 순서도이다. 3 is a flowchart showing an embodiment of a script generation method of the present invention.

본 발명의 스크립트 생성 방법의 일 실시예에서 스크립트 생성 장치는 애플리케이션 구동에 따른 뷰 정보 및 하드웨어 키 정보를 캐쉬 정보로 저장한다(S310).In one embodiment of the script generation method of the present invention, the script generation device stores the view information and the hardware key information according to application driving as cache information (S310).

스크립트 생성 장치는 접근성 이벤트가 발생하면(S320), 기 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 구하고, 주변 정보를 획득한다(S330). 스크립트 생성 장치는 접근성 이벤트가 발생되면, 뷰 정보에서 접근성 이벤트가 발생한 좌표를 검색하고, 접근성 이벤트가 발생한 시점의 장치정보, 리소스 정보 등을 포함하는 주변정보를 획득할 수 있다. When the accessibility event occurs (S320), the script generating apparatus obtains the coordinates of the accessibility event from the previously stored view information and obtains the surrounding information (S330). When the accessibility event is generated, the script generating apparatus searches coordinates of the accessibility event in the view information, and acquires peripheral information including device information and resource information at the time when the accessibility event occurs.

스크립트 생성 장치는 구해진 좌표를 캐쉬 정보와 비교하여 뷰 정보를 새로 구성하고(S340), 구성된 뷰 정보를 주변정보와 함께 스크립트에 저장한다(S350). 스크립트 생성 장치는 애플리케이션의 Activity 구성 요소인 뷰(View) 정보를 시간 순서로 저장하여 Activity가 전환되었을 때 이전 Activity의 뷰(View) 정보를 구할 수 있으므로, 접근성 이벤트가 발생한 좌표와 캐쉬 정보에 포함된 화면 구성 정보를 비교하여, 접근성 이벤트가 발생한 시간의 뷰 정보를 새로 구성하고, 새로 구성된 뷰 정보와 주변 정보를 스크립트에 함께 저장한다.The script generating device compares the obtained coordinates with the cache information to newly construct the view information (S340), and stores the constructed view information together with the peripheral information in the script (S350). The script generation device can save the view information of the activity, which is an activity component of the application, in chronological order so that the view information of the previous activity can be obtained when the activity is switched. Therefore, Compares the screen configuration information, newly configures view information at the time when the accessibility event occurs, and stores the newly configured view information and the surrounding information together in the script.

이와 같은 과정을 통해 스크립트 생성 장치는 애플리케이션 자동검증을 위한 스크립트 제작(record)시 복합적 정보를 함께 저장할 수 있다. 이를 통해 자동검증용 스크립트를 다양한 테스트 단말에서 재생하더라도, 기준 단말에서 수행되던 환경과 유사한 환경으로 재생이 가능하여 동일한 환경에 대한 단말 특성을 파악할 수 있다. Through this process, the script generating device can store the complex information together with the script for the automatic verification of the application. Thus, even if the automatic verification script is reproduced by various test terminals, it is possible to reproduce the environment similar to the environment that was performed in the reference terminal, and the terminal characteristics for the same environment can be grasped.

지금까지 기술한 스크립트 생성 방법은 이를 실행하기 위한 프로그램이 수록된 컴퓨터로 판독 가능한 기록 매체의 형태에 의해 생산, 사용, 양도될 수 있다. 뿐만 아니라, 본 발명은 상기 프로그램을 온라인 상에서 송수신하는 방식에 의해 양도되는 경우, 송수신의 주체가 되는 장치 및 송수신 행위에 대해서도 권리 범위가 미친다고 봄이 당연하다. The script generation method described so far can be produced, used and transferred according to the form of a computer-readable recording medium containing a program for executing the script. In addition, when the program is transferred by a method of transmitting and receiving the program on-line, it goes without saying that the scope of the right and the device for transmission and reception and the transmission and reception of the program are also extended.

이와 같이, 본 발명이 속하는 기술분야의 당업자는 본 발명이 그 기술적 사상이나 필수적 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적인 것이 아닌 것으로서 이해해야만 한다. 본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 등가개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.
Thus, those skilled in the art will appreciate that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. It is therefore to be understood that the embodiments described above are to be considered in all respects only as illustrative and not restrictive. The scope of the present invention is defined by the appended claims rather than the detailed description and all changes or modifications derived from the meaning and scope of the claims and their equivalents are to be construed as being included within the scope of the present invention do.

본 발명은 스크립트 생성 장치, 방법 및 컴퓨터로 판독 가능한 기록매체를 제공함으로써, 타 단말에서 자동 검증 수행 시 기존 환경과 최대한 동일환경에서 수행될 수 있도록 하고, 자동 검증 오류 발생시 해당 오류에 대한 신뢰도 및 재현율을 높이고, 나아가 동일 스크립트에 대한 단말별 특성을 파악하는데 유용할 수 있다.
The present invention provides a script generating apparatus, a method, and a computer-readable recording medium so that the automatic verification can be performed in the same environment as the existing environment when the automatic verification is performed in the other terminal, And further, it can be useful for grasping the characteristics of each terminal for the same script.

100 사용자 인터페이스부 200 하드웨어 키 감지부
300 접근성 이벤트 감지부 310 뷰 정보 저장모듈
320 좌표 검색 모듈 330 이벤트 분석 모듈
340 송신 모듈 400 스크립트 생성부
500 저장부
100 user interface unit 200 hardware key detection unit
300 accessibility event detection unit 310 view information storage module
320 Coordinate Search Module 330 Event Analysis Module
340 Transmission module 400 Script generation section
500 storage unit

Claims (7)

하드웨어 키 입력 이벤트 발생시, 해당 하드웨어 키 정보를 스크립트 생성부로 전송하는 하드웨어 키 감지부;
애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 스크립트 생성부로 전송하고, 접근성 이벤트 발생 시, 접근성 이벤트가 발생한 좌표와 주변정보를 상기 스크립트 생성부로 전송하는 접근성 이벤트 감지부; 및
상기 하드웨어 키 정보 또는 뷰 정보를 캐쉬 정보로 저장하고, 상기 접근성 이벤트 감지부로부터 접근성 이벤트의 좌표 및 주변정보가 수신된 경우, 상기 좌표를 이용하여 그 시점의 뷰 정보를 구성하고, 이를 주변 정보와 함께 스크립트에 저장하는 스크립트 생성부;
를 포함하는 스크립트 생성 장치
A hardware key sensing unit for transmitting the hardware key information to the script generating unit when a hardware key input event occurs;
An accessibility event sensing unit for transmitting view information displayed on a screen according to an application running to a script generating unit and transmitting coordinates and surrounding information generated by an accessibility event to the script generating unit when an accessibility event occurs; And
And stores the hardware key information or the view information as cache information. When the coordinates of the accessibility event and the surrounding information are received from the accessibility event detection unit, the view information at that point is constructed using the coordinates, A script generation unit for storing the script together;
Lt; RTI ID = 0.0 >
청구항 1에 있어서, 상기 접근성 이벤트 감지부는
애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 시간 순서대로 저장 및 상기 스크립트 생성부로 전송하는 뷰 정보 저장모듈;
접근성 이벤트 발생 시, 상기 뷰 정보 저장모듈에서 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 검색하는 좌표 검색 모듈; 및
상기 접근성 이벤트가 발생한 시점의 장치정보, 리소스 정보를 포함하는 주변정보를 획득하는 이벤트 분석 모듈;
상기 좌표 검색 모듈에서 검색된 좌표, 상기 이벤트 분석 모듈에서 획득된 주변 정보를 상기 스크립트 생성부로 전송하는 송신 모듈;
을 포함하는 것을 특징으로 하는 스크립트 생성 장치
The method according to claim 1, wherein the accessibility event detection unit
A view information storage module for storing the view information displayed on the screen in time sequence according to application driving and transmitting the stored view information to the script generating unit;
A coordinate retrieval module for retrieving coordinates of an accessibility event in view information stored in the view information storage module when an accessibility event occurs; And
An event analysis module for acquiring peripheral information including device information and resource information at the time of the accessibility event;
A transmission module for transmitting the coordinates retrieved from the coordinate retrieval module and the peripheral information obtained from the event analysis module to the script generation module;
The script generating apparatus comprising:
청구항 2에 있어서, 상기 뷰 정보 저장모듈은
화면에 표시된 뷰로부터 트리 구조를 추출하고, 상기 트리 구조를 형성하는 개별 화면의 구성 정보를 추출한 후, 상기 트리 구조 또는 구성 정보를 해쉬 코드와 좌표로 저장하는 것을 특징으로 하는 스크립트 생성 장치
The apparatus of claim 2, wherein the view information storage module
Extracts the tree structure from the view displayed on the screen, extracts the configuration information of the individual screens forming the tree structure, and then stores the tree structure or the configuration information as a hash code and coordinates.
청구항 1에 있어서, 상기 뷰 정보는
화면에 표시된 뷰의 해쉬 코드와 좌표를 포함하는 것을 특징으로 하는 스크립트 생성 장치
The method of claim 1,
And a hash code and coordinates of the view displayed on the screen.
(a)애플리케이션 구동에 따른 뷰 정보 및 하드웨어 키 정보를 캐쉬 정보로 저장하는 단계;
(b)접근성 이벤트 발생 시, 기 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 구하고, 주변 정보를 획득하는 단계; 및
(c)상기 좌표를 상기 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시점의 뷰 정보를 새로 구성하고, 상기 새로 구성된 뷰 정보를 상기 주변정보와 함께 스크립트에 저장하는 단계;
를 포함하는 스크립트 생성 방법.
(a) storing view information and hardware key information according to application driving as cache information;
(b) obtaining coordinates of an accessibility event from pre-stored view information and obtaining peripheral information when an accessibility event occurs; And
(c) comparing the coordinates with the cache information to newly construct view information at a time when an accessibility event occurs, and storing the newly constructed view information together with the peripheral information in a script;
≪ / RTI >
청구항 5에 있어서, 상기 (b) 단계는
(b-1)애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 시간 순서대로 저장하는 단계;
(b-2)접근성 이벤트 발생 시, 상기 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 검색하는 단계; 및
(b-3)상기 접근성 이벤트가 발생한 시점의 장치정보, 리소스 정보를 포함하는 주변정보를 획득하는 단계;
를 포함하는 것을 특징으로 하는 스크립트 생성 방법
6. The method of claim 5, wherein step (b)
(b-1) storing view information displayed on the screen in time sequence in accordance with application running;
(b-2) when the accessibility event occurs, searching for the coordinates at which the accessibility event occurred in the stored view information; And
(b-3) acquiring peripheral information including device information and resource information at the time when the accessibility event occurs;
A script generation method comprising:
청구항 5 내지 6에 기재된 스크립트 생성 방법을 실행하기 위한 프로그램이 수록된 컴퓨터로 판독 가능한 기록 매체A computer-readable recording medium having recorded thereon a program for executing the method for generating a script according to any one of claims 5 to 6,
KR1020130101729A 2013-08-27 2013-08-27 Apparatus, method and computer-readable medium for recording script KR102114260B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020130101729A KR102114260B1 (en) 2013-08-27 2013-08-27 Apparatus, method and computer-readable medium for recording script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020130101729A KR102114260B1 (en) 2013-08-27 2013-08-27 Apparatus, method and computer-readable medium for recording script

Publications (2)

Publication Number Publication Date
KR20150024973A true KR20150024973A (en) 2015-03-10
KR102114260B1 KR102114260B1 (en) 2020-06-08

Family

ID=53021301

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130101729A KR102114260B1 (en) 2013-08-27 2013-08-27 Apparatus, method and computer-readable medium for recording script

Country Status (1)

Country Link
KR (1) KR102114260B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070042239A (en) * 2005-10-18 2007-04-23 현대자동차주식회사 Method for displaying and magnifying selected area on screen of navigation system
KR100856204B1 (en) 2007-01-08 2008-09-03 삼성전자주식회사 Apparatus and method for performing automatic test in verification device
KR20090124000A (en) * 2008-05-29 2009-12-03 주식회사 현대오토넷 Apparatus for controlling operation of electronic equipment using touch panel, and audio video navigation system for the use of a car comprising the apparatus
US20130135344A1 (en) * 2011-11-30 2013-05-30 Nokia Corporation Method and apparatus for web-based augmented reality application viewer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070042239A (en) * 2005-10-18 2007-04-23 현대자동차주식회사 Method for displaying and magnifying selected area on screen of navigation system
KR100856204B1 (en) 2007-01-08 2008-09-03 삼성전자주식회사 Apparatus and method for performing automatic test in verification device
KR20090124000A (en) * 2008-05-29 2009-12-03 주식회사 현대오토넷 Apparatus for controlling operation of electronic equipment using touch panel, and audio video navigation system for the use of a car comprising the apparatus
US20130135344A1 (en) * 2011-11-30 2013-05-30 Nokia Corporation Method and apparatus for web-based augmented reality application viewer

Also Published As

Publication number Publication date
KR102114260B1 (en) 2020-06-08

Similar Documents

Publication Publication Date Title
US10505981B2 (en) Techniques for detecting malicious behavior using an accomplice model
US9274934B2 (en) System and method for creating change-resilient scripts
RU2767143C2 (en) Decision-making control using machine learning in case of alerts coming from current control systems
CN103777967B (en) Page returning method, page generation method and device
CN105868096B (en) For showing the method, device and equipment of web page test result in a browser
US11503070B2 (en) Techniques for classifying a web page based upon functions used to render the web page
US9633049B2 (en) Searching apparatus, searching method, and searching system
JP2017504121A (en) Measuring device of user behavior and participation using user interface in terminal device
US20150121340A1 (en) Associating a visualization of user interface with source code
US20140129620A1 (en) Indicating coverage of web application testing
CN106649084A (en) Function call information obtaining method and apparatus, and test device
US10175954B2 (en) Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information
US11580294B2 (en) Techniques for web framework detection
CN104115117A (en) Automatic synthesis of unit tests for security testing
KR20160125401A (en) Inline and context aware query box
JP2012099106A (en) Electronic equipment, method and products for compressing state graph
US20140298107A1 (en) Dynamic Near Real-Time Diagnostic Data Capture
JP2011210233A (en) Method, apparatus and system for identifying gui element
JP7132999B2 (en) METHOD AND APPARATUS FOR VERIFYING OPERATIONAL STATE OF APPLICATION
US9501298B2 (en) Remotely executing operations of an application using a schema that provides for executable scripts in a nodal hierarchy
JP2012099103A (en) Method, products and electronic equipment for synchronizing state graph
US9201591B1 (en) Automated coverage monitoring of mobile applications
EP4156009A1 (en) Systematic identification and masking of private data for replaying user sessions
US11210453B2 (en) Host pair detection
US20170277722A1 (en) Search service providing apparatus, system, method, and computer program

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant