KR102114260B1 - 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
KR102114260B1
KR102114260B1 KR1020130101729A KR20130101729A KR102114260B1 KR 102114260 B1 KR102114260 B1 KR 102114260B1 KR 1020130101729 A KR1020130101729 A KR 1020130101729A KR 20130101729 A KR20130101729 A KR 20130101729A KR 102114260 B1 KR102114260 B1 KR 102114260B1
Authority
KR
South Korea
Prior art keywords
information
script
accessibility event
coordinates
hardware key
Prior art date
Application number
KR1020130101729A
Other languages
Korean (ko)
Other versions
KR20150024973A (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

본 발명은 스크립트 생성 장치, 방법 및 컴퓨터로 판독 가능한 기록매체에 관한 것으로, 보다 상세하게는 하드웨어 키 입력 이벤트 발생시, 해당 하드웨어 키 정보를 스크립트 생성부로 전송하는 하드웨어 키 감지부, 애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 스크립트 생성부로 전송하고, 접근성 이벤트 발생 시, 접근성 이벤트가 발생한 좌표와 주변정보를 상기 스크립트 생성부로 전송하는 접근성 이벤트 감지부, 상기 하드웨어 키 정보 또는 뷰 정보를 캐쉬 정보로 저장하고, 상기 접근성 이벤트 감지부로부터 접근성 이벤트의 좌표 및 주변정보가 수신된 경우, 상기 좌표를 이용하여 그 시점의 뷰 정보를 구성하고, 이를 주변 정보와 함께 스크립트에 저장하는 스크립트 생성부를 포함하는 스크립트 생성 장치 및 이러한 방법에 관한 것이다. The present invention relates to a script generation device, a method, and a computer-readable recording medium, and more particularly, when a hardware key input event occurs, a hardware key detection unit that transmits the corresponding hardware key information to the script generation unit, and displays it on a screen according to application operation. Accessibility event detection unit that transmits the displayed view information to the script generation unit and, when an accessibility event occurs, transmits the coordinates and surrounding information of the accessibility event to the script generation unit, and stores the hardware key information or view information as cache information. And, when the coordinates and the surrounding information of the accessibility event is received from the accessibility event detection unit, using the coordinates to configure the view information at the time, and generates a script including a script generator that stores it in the script with the surrounding information It relates to a device and such a method.

Description

스크립트 생성 장치, 방법 및 컴퓨터로 판독 가능한 기록매체{Apparatus, method and computer-readable medium for recording script}Apparatus, method and computer-readable medium for recording script

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

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

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

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

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

본 발명은 상술한 종래의 문제점을 해결하기 위한 것으로, 애플리케이션 자동검증을 위한 스크립트 제작(record)시 복합적 정보를 함께 저장하여, 타 단말에서 자동 검증 수행 시 기존 환경과 최대한 동일환경에서 수행될 수 있도록 하는 것을 목적으로 한다.The present invention is to solve the above-mentioned conventional problems, and when storing scripts for automatic application verification, record complex information together so that it can be performed in the same environment as possible when performing automatic verification at other terminals. It aims to do.

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

상술한 과제를 해결하기 위한 본 발명의 스크립트 생성 장치는 하드웨어 키 입력 이벤트 발생시, 해당 하드웨어 키 정보를 스크립트 생성부로 전송하는 하드웨어 키 감지부, 애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 스크립트 생성부로 전송하고, 접근성 이벤트 발생 시, 접근성 이벤트가 발생한 좌표와 주변정보를 상기 스크립트 생성부로 전송하는 접근성 이벤트 감지부, 상기 하드웨어 키 정보 또는 뷰 정보를 캐쉬 정보로 저장하고, 상기 접근성 이벤트 감지부로부터 접근성 이벤트의 좌표 및 주변정보가 수신된 경우, 상기 좌표를 이용하여 그 시점의 뷰 정보를 구성하고, 이를 주변 정보와 함께 스크립트에 저장하는 스크립트 생성부를 포함할 수 있다. The script generating device of the present invention for solving the above-mentioned problems, when a hardware key input event occurs, a hardware key detection unit that transmits the corresponding hardware key information to the script generation unit, and generates a view information displayed on the screen according to an application driving the script When an accessibility event occurs, an accessibility event detection unit that transmits the coordinates and surrounding information where the accessibility event occurred to the script generator, stores the hardware key information or view information as cache information, and accessibility from the accessibility event detection unit When the coordinates of the event and the surrounding information are received, a script generator configured to configure view information at the time using the coordinates and store the information in the script together with the surrounding information may be included.

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

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

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

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

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

본 발명에서 다양한 실시예로 기재된 스크립트 생성 방법은 이를 실행하기 위한 프로그램이 수록된 컴퓨터로 판독 가능한 기록 매체에 수록되어 실시될 수 있다.
The script generation method described in various embodiments of the present invention may be carried out by being recorded on 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 (record), complex information is stored together so that when performing automatic verification in another terminal, it can be performed in the same environment as the existing environment. It is useful to increase the reliability and reproducibility of the system, and further to identify characteristics of each terminal for the same script.

또한, 하드웨어 키 정보, 뷰 정보를 캐쉬정보로 저장하고 있다가 접근성 이벤트가 발생하면, 이를 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시간의 뷰 정보를 구성하고 이를 주변정보와 함께 스크립트에 저장함으로써, 자동검증용 스크립트를 다양한 테스트 단말에서 재생하더라도, 기준 단말에서 수행되던 환경과 유사한 환경으로 재생이 가능하여 동일한 환경에 대한 단말 특성을 파악할 수 있다.
In addition, when hardware key information and view information are stored as cache information and an accessibility event occurs, it is compared with the cache information to compose the view information of the time when the accessibility event occurred and store it in the script together with the surrounding information. Even if the verification script is reproduced in various test terminals, it can be reproduced in an environment similar to that performed in the reference terminal, so that 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 device of the present invention.
2 is a block diagram showing an embodiment of the accessibility event detection unit 300 in the script generation device of the present invention.
Figure 3 is a flow chart showing an embodiment of the script generation method of the present invention.

본 발명의 전술한 목적과 기술적 구성 및 그에 따른 작용 효과에 관한 자세한 사항은 본 발명의 명세서에 첨부된 도면에 의거한 이하 상세한 설명에 의해 보다 명확하게 이해될 것이다.The details of the above-described object and technical configuration of the present invention and the effects of the effects thereof will be more clearly understood by the following detailed description based on the accompanying drawings in the specification of the present invention.

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

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

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

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

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

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

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

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

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

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

저장부(500)에는 애플리케이션들이 저장되어 있다.Applications are stored in the storage unit 500.

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

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

본 발명의 접근성 이벤트 감지부(300)는 뷰(view) 정보 저장모듈(310), 좌표 검색 모듈(320), 이벤트 분석 모듈(330), 송신모듈(340)을 포함할 수 있다. The accessibility event detection unit 300 of the present invention 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 accordance with the driving of the application and transmits the view information to the script generator 400 in chronological order. At this time, the view information storage module 310 may store the hash code and screen coordinates of the view output on the screen as view information. The view information may be screen information that is visible on a screen that is visible to the user.

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

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

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

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

도 3은 본 발명의 스크립트 생성 방법의 일 실시예를 나타낸 순서도이다. Figure 3 is a flow chart showing an embodiment of the 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 view information and hardware key information according to application driving as cache information (S310).

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

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

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

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

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

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

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

Claims (7)

하드웨어 키 입력 이벤트 발생시, 해당 하드웨어 키 정보를 스크립트 생성부로 전송하는 하드웨어 키 감지부;
애플리케이션 구동에 따라 화면에 표시된 뷰(view) 정보를 스크립트 생성부로 전송하고, 접근성 이벤트 발생 시, 접근성 이벤트가 발생한 좌표와 주변정보를 상기 스크립트 생성부로 전송하는 접근성 이벤트 감지부; 및
상기 하드웨어 키 정보 또는 뷰 정보를 캐쉬 정보로 저장하고, 상기 접근성 이벤트 감지부로부터 접근성 이벤트의 좌표 및 주변정보가 수신된 경우, 상기 좌표를 이용하여 그 시점의 뷰 정보를 구성하고, 이를 주변 정보와 함께 스크립트에 저장하는 스크립트 생성부;
를 포함하고,
상기 스크립트는
상기 애플리케이션 구동에 대한 자동 검증을 수행하기 위한 검증 시나리오에 상응하고, 기준 단말과 다른 종류의 테스트 단말에서도 상기 기준 단말과 유사한 환경으로 재생될 수 있도록 단말정보 및 리소스 정보를 포함하는 상기 주변 정보를 포함하는 것을 특징으로 하는 스크립트 생성 장치
A hardware key detection unit that, when a hardware key input event occurs, transmits corresponding hardware key information to a script generation unit;
An accessibility event detection unit that transmits view information displayed on the screen to the script generation unit according to the driving of the application and, when an accessibility event occurs, transmits coordinates and surrounding information of the accessibility event to the script generation unit; And
The hardware key information or view information is stored as cache information, and when coordinates and surrounding information of an accessibility event are received from the accessibility event detection unit, view information at that time is configured using the coordinates, and the surrounding information and A script generator that stores the script together;
Including,
The above script
Corresponds to a verification scenario for performing automatic verification for the application driving, and includes the surrounding information including terminal information and resource information so that a test terminal of a different type from the reference terminal can be reproduced in an environment similar to the reference terminal. Script generation device characterized in that
삭제delete 삭제delete 삭제delete (a)애플리케이션 구동에 따른 뷰 정보 및 하드웨어 키 정보를 캐쉬 정보로 저장하는 단계;
(b)접근성 이벤트 발생 시, 기 저장된 뷰 정보에서 접근성 이벤트가 발생한 좌표를 구하고, 주변 정보를 획득하는 단계; 및
(c)상기 좌표를 상기 캐쉬 정보와 비교하여 접근성 이벤트가 발생한 시점의 뷰 정보를 새로 구성하고, 상기 새로 구성된 뷰 정보를 상기 주변정보와 함께 스크립트에 저장하는 단계;
를 포함하고,
상기 스크립트는
상기 애플리케이션 구동에 대한 자동 검증을 수행하기 위한 검증 시나리오에 상응하고, 기준 단말과 다른 종류의 테스트 단말에서도 상기 기준 단말과 유사한 환경으로 재생될 수 있도록 단말정보 및 리소스 정보를 포함하는 상기 주변 정보를 포함하는 스크립트 생성 방법.
(a) storing view information and hardware key information according to application driving as cache information;
(b) when an accessibility event occurs, obtaining coordinates of an accessibility event from pre-stored view information and obtaining surrounding information; 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 surrounding information in a script;
Including,
The above script
Corresponds to a verification scenario for performing automatic verification for the application driving, and includes the surrounding information including terminal information and resource information so that a test terminal of a different type from the reference terminal can be reproduced in an environment similar to the reference terminal. How to create a script.
삭제delete 삭제delete
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 KR20150024973A (en) 2015-03-10
KR102114260B1 true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130135344A1 (en) 2011-11-30 2013-05-30 Nokia Corporation Method and apparatus for web-based augmented reality application viewer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100716337B1 (en) * 2005-10-18 2007-05-11 현대자동차주식회사 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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
KR20150024973A (en) 2015-03-10

Similar Documents

Publication Publication Date Title
US10003671B2 (en) Capturing and replaying application sessions using resource files
US9727407B2 (en) Log analytics for problem diagnosis
US10642608B2 (en) Associating a visualization of user interface with source code
CN102272757B (en) Method for server-side logging of client browser state through markup language
US9015666B2 (en) Updating product documentation using automated test scripts
US9003235B2 (en) Indicating coverage of web application testing
US11503070B2 (en) Techniques for classifying a web page based upon functions used to render the web page
JP2017504121A (en) Measuring device of user behavior and participation using user interface in terminal device
US11580294B2 (en) Techniques for web framework detection
CN104115117A (en) Automatic synthesis of unit tests for security testing
JP7385740B2 (en) Improving the process of retrieving GUI elements using user input
US11436133B2 (en) Comparable user interface object identifications
JP7132999B2 (en) METHOD AND APPARATUS FOR VERIFYING OPERATIONAL STATE OF APPLICATION
US20140298107A1 (en) Dynamic Near Real-Time Diagnostic Data Capture
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
JP6238221B2 (en) Apparatus, method and program for monitoring execution of software
KR20150025106A (en) Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result
EP4156009A1 (en) Systematic identification and masking of private data for replaying user sessions
US11210453B2 (en) Host pair detection
KR102114260B1 (en) Apparatus, method and computer-readable medium for recording script
KR101415270B1 (en) Network system monitoring application installed on computing device
KR20150027865A (en) Terminal device, apparatus, system, method and computer-readable medium for verifying application

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