KR20130067959A - Method and appratus for processing error of application - Google Patents

Method and appratus for processing error of application Download PDF

Info

Publication number
KR20130067959A
KR20130067959A KR1020110135036A KR20110135036A KR20130067959A KR 20130067959 A KR20130067959 A KR 20130067959A KR 1020110135036 A KR1020110135036 A KR 1020110135036A KR 20110135036 A KR20110135036 A KR 20110135036A KR 20130067959 A KR20130067959 A KR 20130067959A
Authority
KR
South Korea
Prior art keywords
error
application
service
unit
recording
Prior art date
Application number
KR1020110135036A
Other languages
Korean (ko)
Other versions
KR101346835B1 (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 KR1020110135036A priority Critical patent/KR101346835B1/en
Publication of KR20130067959A publication Critical patent/KR20130067959A/en
Application granted granted Critical
Publication of KR101346835B1 publication Critical patent/KR101346835B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3086Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves the use of self describing data formats, i.e. metadata, markup languages, human readable formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Abstract

PURPOSE: An application error processing method and a device thereof are provided to easily confirm related script information and an exception and to accurately perform services and applications defined according to user definition. CONSTITUTION: A recording unit(710) records service state information during the application service performance of a client connected through a network. A monitoring unit(712) periodically monitors an error generation situation through the service state information. A control unit(718) sets an error by type according to the monitoring result and generates and stores the service state information as a file written with XML(Extensible Markup Language). The control unit renders the XML file to replay a thread having an error. [Reference numerals] (710) Recording unit; (712) Monitoring unit; (714) Replay unit; (716) Viewer interface unit; (718) Control unit; (720) Markup language file generating unit

Description

어플리케이션 오류 처리 방법 및 장치{METHOD AND APPRATUS FOR PROCESSING ERROR OF APPLICATION}METHOD AND APPRATUS FOR PROCESSING ERROR OF APPLICATION

본 발명은 HSF(Healthcare Software Framework) 베이스 프레임워크에 구비된 것으로, 어플리케이션 서버에서 발생된 예외를 레코딩하고 관련 스크립트를 저장 활용하여 예외 발생 현황을 재생하는 어플리케이션 오류 처리 방법 및 장치에 관한 것이다.The present invention relates to an HSF (Healthcare Software Framework) base framework, and relates to an application error processing method and apparatus for reproducing an exception occurrence status by recording and using an associated script generated by an application server.

종래에 있어서 네트워크 응용 및 서비스 성능 측정은 특정 포트나 단위 시스템에서 획득된 로그를 바탕으로 측정 및 분석하는 단순화된 방법으로서, 네트워크의 시스템 간 또는 응용 간에 이루어지는 유기적인 성능은 측정 및 시험이 불가능할 뿐만 아니라 서비스나 소프트웨어 개발 시에 사용이 부적합하고, 제품개발이 완료된 후 초기 운용이나 상용 서비스 이후에 에러를 찾아내는 방식이었다.In the past, network application and service performance measurement is a simplified method of measuring and analyzing based on logs acquired from a specific port or unit system. The organic performance between systems or applications in a network is not only impossible to measure and test. It was not suitable for service or software development, and after the product development was completed, errors were found after initial operation or commercial service.

특히 사람의 생명을 다루는 미션 크리티컬(Mission Critical)한 헬스케어 시스템을 운영하는 수요기관 다수에서 예외 발생에 대한 일반 정보 이외에 해당 예외를 즉각적으로 재현할 수 있는 기능이 부재함으로 인해 시스템의 신뢰성이 낮아지는 문제점이 있다.In particular, many demand organizations that operate mission-critical healthcare systems that deal with human life have a lower reliability because of the lack of the ability to immediately reproduce exceptions in addition to general information about exceptions. There is a problem.

또한, 예외 발생 시 일반 예외 정보는 존재하나 해당 예외 정보만으로는 정확한 장애 지점 파악이 힘들고 동일 예외 정보를 재현하기 어렵고, 장애 해결이 늦어질수록 사용자의 신뢰서 저하와 관련 유지보수 비용이 증가할 뿐만 아니라 예외의 탐지를 레코딩하여 즉시 재현을 통해 장애 해결의 신속성을 높이고자 하는 요구가 증대하고 있는 실정이다.In addition, when an exception occurs, general exception information exists, but it is difficult to identify the exact point of failure by the exception information alone, and it is difficult to reproduce the same exception information. There is an increasing demand for recording the detection of exceptions and reproducing them immediately for faster troubleshooting.

본 발명은 임의의 시스템의 응용이나 서비스의 성능을 시험하기 위하여 어플리케이션 서버에서 발생된 예외를 레코딩(recording)하고 관련 스크립트를 저장하여 예외 발생 현황을 재생함으로써 사용자 정의에 따라 다양하게 정의되는 서비스와 응용의 성능을 정확하게 수행하는 기술을 제공하고자 한다.The present invention records services and applications that are variously defined according to user definitions by recording exceptions generated by an application server and storing related scripts to reproduce the exception occurrence status in order to test the performance of an application or service of an arbitrary system. To provide a technique that performs exactly the performance of the.

또한, 본 발명은 발생된 예외의 즉각적인 재생을 통해 예외의 확인과 관련 스크립트 정보의 확인이 용이하고, 상기 예외 재현을 통해 신속한 버그 픽스와 장애 복구를 수행하는 기술을 제공하고자 한다.In addition, the present invention is to provide a technique for easily checking the exception and the associated script information through the immediate playback of the exception occurred, and to perform a quick bug fix and disaster recovery through the exception reproduction.

그리고 본 발명은 예외의 레코딩 정보를 지속적으로 관리할 수 있으므로 회귀 테스트 및 시스템 안정성 테스트에 재활용 가능한 기술을 제공하고자 한다.In addition, the present invention can continuously manage the recording information of the exception to provide a recyclable technology for regression test and system stability test.

본 발명의 일 견지에 따르면, 어플리케이션 오류 처리 방법에 있어서, 네트워크를 통해 연결된 적어도 하나 이상의 클라이언트에서 어플리케이션 서비스를 호출하는 과정과, 상기 클라이언트로 어플리케이션 서비스 수행 시 서비스 상태 정보를 레코딩(recording)하는 과정과, 상기 레코딩 시 어플리케이션의 에러발생 상황을 주기적으로 확인하여 상기 발생된 에러를 타입별로 설정하는 과정과, 상기 레코딩된 서비스 상태 정보를 마크업 언어(Extensible Markup Language: XML)로 기술되는 파일로 생성 및 저장하는 과정과, 상기 XML 파일을 렌더링하여 에러가 발생된 쓰레드를 리플레이(replay) 과정을 포함함을 특징으로 한다.According to an aspect of the present invention, in the application error processing method, calling an application service from at least one client connected through a network, and recording service state information when performing the application service to the client; Periodically checking the error occurrence state of the application during recording, setting the generated error by type, and generating the recorded service state information in a file described in an Extensible Markup Language (XML). Storing and replaying a thread in which an error occurs by rendering the XML file.

본 발명의 다른 견지에 따르면, 어플리케이션 오류 처리 장치에 있어서, 네트워크를 통해 연결된 클라이언트로 어플리케이션 서비스 수행 시 서비스 상태 정보를 레코딩하는 레코딩부와, 상기 레코딩부로부터 출력된 서비스 상태 정보를 통해 에러발생 상황을 주기적으로 모니터링하는 모니터링부와, 상기 모니터링 결과에 따라 타입별 에러를 설정하고, 상기 레코딩된 서비스 상태 정보를 마크업 언어(Extensible Markup Language: XML)로 기술되는 파일로 생성 및 저장하도록 제어하고, 상기 XML 파일을 렌더링하여 에러가 발생된 쓰레드를 리플레이하도록 제어하는 제어부를 포함함을 특징으로 한다.According to another aspect of the present invention, in the application error processing apparatus, the recording unit for recording the service state information when performing the application service to the client connected via the network, and the error occurrence situation through the service state information output from the recording unit A monitoring unit for periodically monitoring and setting an error for each type according to the monitoring result, and controlling to generate and store the recorded service state information in a file described in an Extensible Markup Language (XML); It is characterized in that it comprises a control unit for controlling to replay the thread in error by rendering the XML file.

본 발명은 사용자 정의에 따라 다양하게 정의되는 서비스와 응용의 성능을 정확하게 수행할 뿐만 아니라, 발생된 예외의 즉각적인 재생을 통해 예외의 확인과 관련 스크립트 정보의 확인이 용이하고, 상기 예외 재현을 통해 신속한 버그 픽스와 장애 복구를 수행하고, 예외의 레코딩 정보를 지속적으로 관리할 수 있으므로 회귀 테스트 및 시스템 안정성 테스트에 재활용 가능한 효과가 있다.The present invention not only accurately performs the performance of various defined services and applications according to the user definition, but also makes it easy to check exceptions and related script information through instant reproduction of generated exceptions, and to quickly reproduce the exceptions. Bug fixes, failovers, and ongoing management of exceptions can be reused for regression testing and system stability testing.

도 1은 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 방법에 대한 전체 흐름도.
도 2는 본 발명의 일 실시 예에 따른 소스레벨에서의 단위 테스트를 보인 화면 예시도.
도 3의 (a)는 본 발명의 일 실시 예에 따른 테스트 필터링 옵션에 관한 화면 예시도이고, (b)는 테스크 결과 디버깅을 보인 화면 예시도.
도 4는 본 발명의 일 실시 예에 따른 테스트 결과 TEST Class 만들기를 보인 화면 예시도.
도 5는 본 발명의 일 실시 예에 따른 저장소 관리-콘솔 기록에 있어서 환경 설정을 보인 화면 예시도.
도 6의 (a)는 본 발명의 일 실시 예에 따른 레코딩 및 리플레이에 사용되는 데이터 엔티티(Data Entity) 명세서의 표이고, (b)는 HSFServiceAccessStore의 표.
도 7은 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 장치에 관한 상세 블록도.
1 is a flowchart illustrating an application error processing method according to an embodiment of the present invention.
2 is an exemplary view showing a unit test at the source level according to an embodiment of the present invention.
Figure 3 (a) is an exemplary view showing a screen for the test filtering option according to an embodiment of the present invention, (b) is an illustration showing a screen debugging the test results.
Figure 4 is an exemplary view showing a test result TEST Class creation according to an embodiment of the present invention.
Figure 5 is an exemplary view showing the environment setting in the storage management-console recording according to an embodiment of the present invention.
FIG. 6A is a table of a data entity specification used for recording and replaying according to an embodiment of the present invention, and (b) is a table of an HSFServiceAccessStore.
7 is a detailed block diagram of an application error processing apparatus according to an embodiment of the present invention.

이하 본 발명에 따른 바람직한 실시 예를 첨부한 도면을 참조하여 상세히 설명한다. 하기 설명에서는 구체적인 구성 소자 등과 같은 특정 사항들이 나타나고 있는데 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐 이러한 특정 사항들이 본 발명의 범위 내에서 소정의 변형이나 혹은 변경이 이루어질 수 있음은 이 기술 분야에서 통상의 지식을 가진 자에게는 자명하다 할 것이다.
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. It will be appreciated that those skilled in the art will readily observe that certain changes in form and detail may be made therein without departing from the spirit and scope of the present invention as defined by the appended claims. To those of ordinary skill in the art.

본 발명은 HSF(Healthcare Software Framework) 베이스 프레임워크에 구비된 것으로, 더욱 상세하게는 다수의 시스템이 상호 연동되어 있고, 각 시스템에서 수행되는 응용들 간 메시지 패킷을 전달하여 소정 서비스를 제공하도록 된 네트워크에서 임의의 시스템의 응용이나 서비스의 성능을 시험하기 위하여 어플리케이션 서버에서 발생된 예외를 레코딩(recording)하고 관련 스크립트를 저장하여 예외 발생 현황을 재생함으로써 사용자 정의에 따라 다양하게 정의되는 서비스와 응용의 성능을 정확하게 수행할 뿐만 아니라, 발생된 예외의 즉각적인 재생을 통해 예외의 확인과 관련 스크립트 정보의 확인이 용이하고, 상기 예외 재현을 통해 신속한 버그 픽스와 장애 복구를 수행하고, 예외의 레코딩 정보를 지속적으로 관리할 수 있으므로 회귀 테스트 및 시스템 안정성 테스트에 재활용 가능한 기술을 제공하고자 한다
The present invention is provided in the Healthcare Software Framework (HSF) base framework, and more specifically, a plurality of systems interoperate with each other, and a network configured to provide a predetermined service by delivering a message packet between applications performed in each system. In order to test the performance of an application or service of any system, the performance of services and applications that are variously defined according to the user definition is recorded by recording exceptions generated from the application server and storing related scripts to play back the exception occurrence status. In addition to accurate execution of the exceptions, it is easy to check exceptions and related script information through instant replay of the exceptions generated, to perform bug fixes and disaster recovery quickly through the exceptions reproduced, and to continuously record the exceptions. Regression testing and system To provide a technology capable recycling gender test

이하, 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 방법에 관해 도 1을 참조하여 자세히 살펴보기로 한다.Hereinafter, an application error processing method according to an embodiment of the present invention will be described in detail with reference to FIG. 1.

도 1은 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 방법에 대한 전체 흐름도이다.1 is a flowchart illustrating an application error processing method according to an embodiment of the present invention.

도 1을 참조하면, 먼저 110 과정에서 네트워크를 통해 연결된 적어도 하나 이상의 클라이언트에서 어플리케이션 서비스를 호출한다. 이때, 상기 클라이언트는 동일 호스트 내 서로 다른 프로토콜을 사용하는 원격의 미들웨어 응용 컴포넌트이다. Referring to FIG. 1, first, an application service is called by at least one or more clients connected through a network in step 110. At this time, the client is a remote middleware application component using different protocols in the same host.

112 과정에서는 상기 클라이언트로 어플리케이션 서비스 수행 시 서비스 상태 정보를 레코딩한다. 상기 112 과정은 상기 원격의 클라이언트들에게 서비스를 제공하는 서버에 수행되는 동작으로 상기 서버의 물리 계층, MAC 계층, 제어 계층 및 스트림 계층을 포함하는 프로토콜 스택에 따라 유저 인터페이스(User Interface) 계층의 호출 시점부터 상기 서버로의 반환 시점까지의 어플리케이션 서비스 상태 정보의 레코딩을 수행한다.In step 112, the service state information is recorded when the application service is performed by the client. Step 112 is performed on a server providing a service to the remote clients. The user interface layer is called according to a protocol stack including a physical layer, a MAC layer, a control layer, and a stream layer of the server. Recording of the application service state information from the time point until the return time to the server is performed.

상기 레코딩은 해당 어플리케이션 서비스 재생에 필요한 정보를 의미하는 것으로, 상기 정보는 본 발명의 실시 예에서는 서비스의 동적 호출을 가능케하는 .NET 리플렉션(Reflection) 기술을 이용하고 있다.The recording refers to information necessary for reproducing the corresponding application service, and the information uses .NET reflection technology that enables dynamic invocation of a service.

상기 레코딩에 대한 동작을 수행은 먼저, TSS Manager를 통해 모든 서버의 서비스를 처리하는 Facade에게 오류 재생을 위한 해당 어플리케이션의 서비스 상태 정보에 대한 레코딩을 개시를 전달하고, 서버 Facade Manager는 전달받은 설정 값을 통해 서비스의 예외 발생과 관련한 필요 정보 레코딩을 준비한다.In performing the recording operation, first, the façade handling the service of all the servers is transmitted through the TSS Manager to start recording the service state information of the corresponding application for error reproduction, and the server facade manager receives the set value. Prepares the recording of necessary information regarding the occurrence of service exceptions.

이후, HSF 테스트 클라이언트 도구는 UI 클라이언트에서 서버 호출을 대행하는 HSF 콜 에이전트(Call Agent)를 모니터링하여 서버로 호출되는 서비스 이력에 대한 로깅을 수행한다. 상기 동작은 HSF 테스트 클라이언트의 옵션사항이며 예외 재생을 클라이언트 모듈에서 직접 수행할 경우에만 선택하는 것으로, 일반적으로 예외의 재생은 서버에서 수행하므로 필수 사항은 아니다.Afterwards, the HSF test client tool monitors the HSF call agent that handles the server call in the UI client and performs logging on the service history called by the server. The above operation is an option of the HSF test client and is selected only when the exception replay is performed directly by the client module. In general, the replay of the exception is not required because it is performed by the server.

계속해서 HSF 서비스 콜 에이전트는 WCF 호출 라이브러리를 이용하여 HSF 서버 Facade를 호출하며 서비스 호출에 필요한 런-타임 정보와 호출자 자신의 정보를 전달한다.Subsequently, the HSF Service Call Agent calls the HSF Server Facade using the WCF Call Library and delivers the run-time information and caller's own information required for the service call.

상기 HSF 서버 Facade는 접수된 서비스 리퀘스트 패킷 정보를 Log Publisher에게 전달하고, 지정된 서비스의 호출 도중 예외가 발생하였을 경우 해당 비즈니스 컴포넌트는 HSF의 예외 Bubbling 메커니즘에 따라 서버 Facade 메니저로 예외 호출 스택과 상세 정보를 전달한다.The HSF server facade sends the received service request packet information to the Log Publisher, and if an exception occurs during the invocation of the designated service, the business component sends the exception call stack and detailed information to the server facade manager according to the exception bubbling mechanism of the HSF. To pass.

상기 예외를 전달 받은 서버 Facade 메니저는 이전 호출에서 사용한 고유 컨텍스트 ID와 함께 Log Publisher에게 전달하고, 상기 Log Publisher은 COM + 이벤트 시스템에 해당 이벤트를 Publishing하고 상기 COM + 는 해당 이벤트를 큐잉하고, 예외 실패 이벤트를 비동기로 수신하기로 한 Log Subscriber는 COM +를 통해 해당 이벤트를 수신하고, 환경 설정 값에 따라 실시간일 경우 HSF 콘솔의 메모리에 저장되거나 비실시간일 경우 RDB에 저장된다.The server Facade manager that receives the exception passes to Log Publisher with the unique context ID used in the previous call, the Log Publisher publishes the event in the COM + event system, and the COM + queues the event, and the exception fails. Log Subscribers, which choose to receive events asynchronously, receive them through COM + and, depending on the configuration value, are stored in memory in the HSF console in real time or in RDB in non-real time.

114 과정에서 상기 레코딩 시 어플리케이션의 에러발생 상황을 주기적으로 확인하여 116 과정에서 상기 발생된 에러를 타입별로 설정한다.In step 114, the error occurrence state of the application during the recording is periodically checked, and in step 116, the generated error is set for each type.

상기 발생된 에러는 어플리케이션 서비스 수행 시 이상구문이 발생하거나 또는 예외 처리가 정상적으로 수행되지 못한 것이고, 상기 에러 타입은 해당 어플리케이션에 의해 수행되는 서비스 성능 및 품질의 기준이 되는 일반 예외 혹은 특정 예외를 포함하는 사용자 정의가 가능한 조건부 예외이다.The generated error may be an abnormal syntax or an exception processing may not be performed normally when the application service is executed, and the error type may include a general exception or a specific exception that is a standard of service performance and quality performed by the corresponding application. User definable conditional exception.

118 과정에서는 상기 레코딩된 서비스 상태 정보를 마크업 언어(Extensible Markup Language: XML)로 기술되는 파일로 생성 및 저장하고, 120 과정에서 상기 XML 파일을 렌더링한 후 122 과정에서 에러가 발생된 쓰레드를 리플레이 한다.In step 118, the recorded service state information is generated and stored in a file described in an Extensible Markup Language (XML). In step 120, the XML file is rendered, and in step 122, an error occurs. do.

여기서, 도 6을 참조하면, 도 6의 (a)는 레코딩 및 리플레이에 사용되는 데이터 엔티티(Data Entity) 명세서의 표이고, (b)는 HSFServiceAccessStore의 표이다.Here, referring to FIG. 6, FIG. 6A is a table of a data entity specification used for recording and replay, and (b) is a table of an HSFServiceAccessStore.

상기 XML 파일을 렌더링하여 해당 스크립트 내용에 따라 측정 파라미터를 변경하여 그 결과 발생하는 패킷을 획득하여 편집을 수행한다.Renders the XML file, changes measurement parameters according to the contents of the corresponding script, obtains the resulting packet, and performs editing.

124 과정에서는 상기 리플레이 완료를 체크하여 완료된 경우 126 과정으로 이동하여 상기 에러가 발생된 쓰레드의 로드 및 스크립트 언어(script language)를 이용하여 상기 리플레이 완료 시 에러에 대한 뷰어 인터페이스를 디스플레이한다.In step 124, if the replay is checked and completed, the process proceeds to step 126 to display a viewer interface for an error when the replay is completed using a load of a thread in which the error occurs and a script language.

또한, 상기 XML 파일의 실행을 위해 XML 파일에 동적으로 로딩하여 해당 어플리케이션이 시나리오 테스트 및 통합 테스트를 지원한다.In addition, by dynamically loading the XML file for execution of the XML file, the application supports scenario testing and integration testing.

여기서, 도 2를 참조하면, 소스레벨에서의 단위 테스트의 화면 예시도를 보인 것으로, 상기 테스트의 플랫폼은 테스트 기록, 테스트 재생, 테스트 편집 및 TSS의 테스트 기록 4가지 방법으로 단위 테스트 및 시나리오 테스트가 가능하다.Here, referring to FIG. 2, a screen example of unit testing at a source level is illustrated. The platform of the test includes unit test and scenario test in four ways: test recording, test reproduction, test editing, and test recording of TSS. It is possible.

상기와 같이 구성된 관리 Tool에서의 테스트 케이스 관리를 통해 서버에 접근되는 모든 Caller Service 기록이 가능하고, 해당 현황 및 결과를 조회할 수 있다.Through the test case management in the management tool configured as above, it is possible to record all Caller Service accessing the server, and to query the current status and results.

또한, 도 3의 (a)에 도시된 바와 같이 기록된 결과를 XML 파일로 저장하여 후에 통합 테스트 및 별도의 단위 테스트 자료로서 활용이 가능하다.In addition, as shown in (a) of FIG. 3, the recorded result may be stored as an XML file, and then used as an integrated test and separate unit test data.

도 3의 (b)는 본 발명의 일 실시 예에 따른 테스트 결과 디버깅을 보인 화면 예시도로서, 도 3의 (b)에 도시된 바와 같이 기록되어 XML 파일로 저장된 결과를 읽어 다시 실행 가능하며 시나리오 테스트 및 단위, 통합 테스트 지원이 가능하다.3 (b) is an exemplary view showing the debugging of the test result according to an embodiment of the present invention, as shown in (b) of FIG. Test, unit and integration test support is available.

또한, 클래스 파일로 생성하여 Nunit와 같은 테스트 프로젝트 생성이 가능하다.In addition, it is possible to create a test project such as Nunit by creating a class file.

도 4는 테스트 결과 TEST Class 만들기의 화면 예시도를 보인 것으로 상기 기록된 테스트 정보를 변환 및 파라미터를 추가 삭제하여 새로운 테스트 클래스로 생성할 수 있다.4 illustrates an example of a screen for creating a test result test class. The recorded test information may be generated as a new test class by converting and deleting a parameter.

이러한 테스트의 수행과 기록은 미들웨어를 통한 서비스 호출단위 기록, 재생 기능을 제공하며, 상기 기록된 정보는 호출 매개변수의 편집을 관련 매커니즘을 통해 허용하고, 테스트오브젝트 클래스로 변환 기능을 제공한다.Performing and recording such a test provides a function of recording and reproducing a service call unit through a middleware, and the recorded information allows editing of call parameters through a related mechanism and provides a function of converting to a test object class.

도 5는 본 발명의 일 실시 예에 따른 저장소 관리-콘솔 기록에 관한 환경 설정을 보인 화면 예시도로서, 도 5에 도시된 바와 같이 상기 환경 설정에서는 환경변수 중 TestSupportDBConnectionString 항목을 열어 TSS Database의 접속정보를 수정하고, [적용]을 눌러 반영한다. FIG. 5 is a diagram illustrating a configuration of a storage management-console recording according to an embodiment of the present invention. As shown in FIG. 5, in the configuration, the TSS database access information is opened by opening a TestSupportDBConnectionString item among environment variables. Modify and press [Apply] to reflect.

이때, 환경정보는 HSF.Tech2008.Product.Console.exe.config에서 관리 된다.At this time, environmental information is managed in HSF.Tech2008.Product.Console.exe.config.

상기 콘솔 기록은 ServiceEventClass로부터 ServiceEventPublisher를 통해 실행 내역 및 결과값을 Publisher()메서드를 통해 이벤트에 등록하고 ServiceSubscriber가 수신받아 처리된다.The console record registers the execution history and the result value with the Event through the Publisher () method from the ServiceEventClass through the ServiceEventPublisher and is processed by the ServiceSubscriber.

상기 저장소 관리-DBMS 기록은 ServiceEventClass로부터 ServiceEventPublisher를 통해 실행 내역 및 결과 값을 Publisher()메서드를 통해 이벤트에 등록하고 ServiceSubscriber 가 수신받아 DBMS 에 기록된다.The storage management-DBMS record registers the execution history and the result value with the Event (Service) method from the ServiceEventClass through the Publisher () method and receives the ServiceSubscriber and records it in the DBMS.

이때 실행 이벤트의 Start 내역은 수신하지 않으며 결과 정보만으로 TSS Listener 가 기록을 담당한다. 상기 기록된 TEST 정보를 기반으로 TestObject Class를 생성하여 예외처리 재수행 및 TEST Class를 생성관리 할 수 있다.
At this time, the start details of the execution event are not received and the TSS listener is responsible for recording only with the result information. By generating TestObject Class based on the recorded TEST information, exception processing can be re-executed and TEST Class can be managed.

이상 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 방법에 대해 살펴보았다.
The application error processing method according to an embodiment of the present invention has been described above.

이하에서는, 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 장치에 대해 도 7을 참조하여 살펴보기로 한다.Hereinafter, an application error processing apparatus according to an embodiment of the present invention will be described with reference to FIG. 7.

도 7은 본 발명의 일 실시 예에 따른 어플리케이션 오류 처리 장치에 관한 상세 블록도이다.7 is a detailed block diagram illustrating an application error processing apparatus according to an exemplary embodiment.

상기 어플리케이션 오류 처리 장치는 레코딩부(710), 모니터링부(712), 리플레이부(714), 뷰어 인터페이스부(716), 제어부(718) 및 마크업 언어 파일 생성부(720)를 포함한다.The application error processing apparatus includes a recording unit 710, a monitoring unit 712, a replay unit 714, a viewer interface unit 716, a control unit 718, and a markup language file generation unit 720.

상기 레코딩부(710)는 네트워크를 통해 연결된 클라이언트로 어플리케이션 서비스 수행 시 서비스 상태 정보를 레코딩한다.The recording unit 710 records service state information when performing an application service to a client connected through a network.

상기 모니터링부(712)는 상기 레코딩부(710)로부터 출력된 서비스 상태 정보를 통해 에러발생 상황을 주기적으로 모니터링한다.The monitoring unit 712 periodically monitors an error occurrence state through service state information output from the recording unit 710.

상기 제어부(718)는 상기 모니터링 결과에 따라 타입별 에러를 설정하고, 상기 레코딩된 서비스 상태 정보를 마크업 언어(Extensible Markup Language: XML)로 기술되는 파일로 생성 및 저장하도록 제어하고, 상기 XML 파일을 렌더링하여 에러가 발생된 쓰레드를 리플레이하도록 제어한다.The controller 718 sets an error for each type according to the monitoring result, controls to generate and store the recorded service state information in a file described in an Extensible Markup Language (XML), and the XML file. Render to control the replay of the thread where the error occurred.

상기 마크업 언어 파일 생성부(720)는 제어부(718)의 제어 하에 마크업 언어로 기술되는 파일을 생성한다.The markup language file generator 720 generates a file described in a markup language under the control of the controller 718.

상기 리플레이부(714)는 제어부(718)의 제어 하에 XML 파일에서 에러가 발생된 쓰레드를 리플레이 한다.The replay unit 714 replays a thread in which an error occurs in the XML file under the control of the control unit 718.

상기 뷰어 인터페이스부(716)는 제어부(718)의 제어 하에 상기 에러가 발생된 쓰레드의 로그(log) 및 스크립트 언어(script language)를 이용하여 상기 리플레이부(714)에서 리플레이 완료 시 에러에 대한 뷰어 인터페이스를 출력한다.
The viewer interface 716 is a viewer for an error when the replay is completed in the replay unit 714 using a log of a thread in which the error occurs and a script language under the control of the controller 718. Print the interface.

상기와 같이 본 발명에 따른 어플리케이션 오류 처리 장치 및 방법에 관한 동작이 이루어질 수 있으며, 한편 상기한 본 발명의 설명에서는 구체적인 실시 예에 관해 설명하였으나 여러 가지 변형이 본 발명의 범위를 벗어나지 않고 실시될 수 있다. 따라서 본 발명의 범위는 설명된 실시 예에 의하여 정할 것이 아니고 청구범위와 청구범위의 균등한 것에 의하여 정하여져야 할 것이다.As described above, an operation related to an apparatus and method for processing an error of an application according to the present invention can be performed. Meanwhile, the above-described description of the present invention has been described in detail. However, various modifications can be made without departing from the scope of the present invention. have. Accordingly, the scope of the present invention should not be limited by the illustrated embodiments, but should be determined by equivalents of the claims and the claims.

710: 레코딩부 712: 모니터링부
714: 리플레이부 716: 뷰어 인터페이스부
720: 마크업 언어 파일 생성부
710: recording unit 712: monitoring unit
714: replay unit 716: viewer interface unit
720: markup language file generation unit

Claims (8)

어플리케이션 오류 처리 방법에 있어서,
네트워크를 통해 연결된 적어도 하나 이상의 클라이언트에서 어플리케이션 서비스를 호출하는 과정과,
상기 클라이언트로 어플리케이션 서비스 수행 시 서비스 상태 정보를 레코딩(recording)하는 과정과,
상기 레코딩 시 어플리케이션의 에러발생 상황을 주기적으로 확인하여 상기 발생된 에러를 타입별로 설정하는 과정과,
상기 레코딩된 서비스 상태 정보를 마크업 언어(Extensible Markup Language: XML)로 기술되는 파일로 생성 및 저장하는 과정과,
상기 XML 파일을 렌더링하여 에러가 발생된 쓰레드를 리플레이(replay) 과정을 포함함을 특징으로 하는 어플리케이션 오류 처리 방법.
In the application error handling method,
Calling an application service from at least one client connected through a network;
Recording service state information when an application service is performed by the client;
Periodically checking an error occurrence situation of an application during the recording, and setting the generated error for each type;
Generating and storing the recorded service state information in a file described in an Extensible Markup Language (XML);
And replaying a thread in which an error occurs by rendering the XML file.
제1항에 있어서,
상기 에러가 발생된 쓰레드의 로그(log) 및 스크립트 언어(script language)를 이용하여 상기 리플레이 완료 시 에러에 대한 뷰어 인터페이스를 디스플레이 하는 과정을 더 포함함을 특징으로 하는 어플리케이션 오류 처리 방법.
The method of claim 1,
And displaying a viewer interface for an error upon completion of the replay by using a log of a thread in which the error occurred and a script language.
제1항에 있어서, 상기 발생된 에러는,
이상구문이 발생하거나 또는 예외(exception) 처리가 정상적으로 수행되지 못한 상태임을 특징으로 하는 어플리케이션 오류 처리 방법.
The method of claim 1, wherein the generated error is
Application error handling method characterized in that the abnormal syntax occurs or exception processing is not normally performed.
제1항에 있어서, 상기 에러 타입은,
상기 어플리케이션에 의해 수행되는 서비스 성능 및 품질의 기준이 되는 일반 예외 혹은 특정 예외를 포함하는 사용자 정의가 가능한 조건부 예외임을 특징으로 하는 어플리케이션 오류 처리 방법.
The method of claim 1, wherein the error type is
And a user-definable conditional exception including a general exception or a specific exception that is a criterion of service performance and quality performed by the application.
제1항에 있어서,
상기 XML 파일의 실행을 위해 XML 파일에 동적으로 로딩하여 해당 어플리케이션의 시나리오 테스트 및 통합 테스를 지원하는 과정을 더 포함함을 특징으로 하는 어플리케이션 오류 처리 방법.
The method of claim 1,
Dynamically loading the XML file for execution of the XML file, the application error processing method further comprising the step of supporting the scenario test and integration test of the application.
제1항에 있어서, 상기 레코딩은,
클라이언트로부터 UI 레이어 호출 시점부터 서버로의 반환시점까지 수행됨을 특징으로 하는 어플리케이션 오류 처리 방법.
The method of claim 1, wherein the recording,
Application error handling method, characterized in that performed from the time of the UI layer call from the client to the return to the server.
제1항에 있어서,
상기 XML 파일을 렌더링하여 해당 스크립트 내용에 따라 측정 파라미터를 변경하여 그 결과 발생하는 패킷을 획득하여 편집을 수행함을 특징으로 하는 어플리케이션 오류 처리 방법.
The method of claim 1,
And rendering the XML file, changing measurement parameters according to the contents of the corresponding script, acquiring and editing a packet generated as a result, and performing editing.
어플리케이션 오류 처리 장치에 있어서,
네트워크를 통해 연결된 클라이언트로 어플리케이션 서비스 수행 시 서비스 상태 정보를 레코딩하는 레코딩부와,
상기 레코딩부로부터 출력된 서비스 상태 정보를 통해 에러발생 상황을 주기적으로 모니터링하는 모니터링부와,
상기 모니터링 결과에 따라 타입별 에러를 설정하고, 상기 레코딩된 서비스 상태 정보를 마크업 언어(Extensible Markup Language: XML)로 기술되는 파일로 생성 및 저장하도록 제어하고, 상기 XML 파일을 렌더링하여 에러가 발생된 쓰레드를 리플레이하도록 제어하는 제어부를 포함함을 특징으로 하는 어플리케이션 오류 처리 장치.
In the application error processing apparatus,
A recording unit for recording service status information when performing an application service to a client connected through a network;
A monitoring unit periodically monitoring an error occurrence state through service state information output from the recording unit;
Set an error for each type according to the monitoring result, control to generate and store the recorded service state information in a file described in Extensible Markup Language (XML), and render the XML file to generate an error. And a control unit for controlling to replay the reserved thread.
KR1020110135036A 2011-12-15 2011-12-15 Method and appratus for processing error of application KR101346835B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020110135036A KR101346835B1 (en) 2011-12-15 2011-12-15 Method and appratus for processing error of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020110135036A KR101346835B1 (en) 2011-12-15 2011-12-15 Method and appratus for processing error of application

Publications (2)

Publication Number Publication Date
KR20130067959A true KR20130067959A (en) 2013-06-25
KR101346835B1 KR101346835B1 (en) 2014-01-06

Family

ID=48863685

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020110135036A KR101346835B1 (en) 2011-12-15 2011-12-15 Method and appratus for processing error of application

Country Status (1)

Country Link
KR (1) KR101346835B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102538156B1 (en) * 2022-08-26 2023-05-31 주식회사 스튜디오사월 Method for supporting scenario writing in electronic device and apparauts thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101526108B1 (en) * 2014-01-29 2015-06-04 경북대학교 산학협력단 Method and System for capturing events, method and system for replaying the recorded events
KR102618465B1 (en) * 2022-11-24 2023-12-28 쿠팡 주식회사 Operating method for electronic apparatus for providing information and electronic apparatus supporting thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101020132B1 (en) * 2008-01-04 2011-03-07 (주)인터넷커머스코리아 Automation test system and method for a financial work program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102538156B1 (en) * 2022-08-26 2023-05-31 주식회사 스튜디오사월 Method for supporting scenario writing in electronic device and apparauts thereof

Also Published As

Publication number Publication date
KR101346835B1 (en) 2014-01-06

Similar Documents

Publication Publication Date Title
US7788540B2 (en) Tracking down elusive intermittent failures
US8433733B2 (en) Web application record-replay system and method
US8234633B2 (en) Incident simulation support environment and business objects associated with the incident
US20150370691A1 (en) System testing of software programs executing on modular frameworks
CN109815119B (en) APP link channel testing method and device
CN111290951B (en) Test method, terminal, server, system and storage medium
CN110673993B (en) Fault injection method, platform and system
US7673178B2 (en) Break and optional hold on failure
US11294746B2 (en) Extracting moving image data from an error log included in an operational log of a terminal
CN112115038A (en) Application testing method and device and storage medium
CN111339118A (en) Kubernetes-based resource change history recording method and device
US9195562B2 (en) Recording external processes
KR101346835B1 (en) Method and appratus for processing error of application
CN106649000B (en) Fault recovery method of real-time processing engine and corresponding server
US11341030B2 (en) Scriptless software test automation
CN107451056B (en) Method and device for monitoring interface test result
JP5545761B2 (en) Failure analysis support system, failure analysis support method, and failure analysis support program
JP2014182646A (en) Apparatus for monitoring execution of software, method and program
CN110837467B (en) Software testing method, device and system
CN113094238A (en) Method and device for monitoring abnormity of business system
CN115658500A (en) Vue-based front-end error log uploading method and system in hybrid development
CN115190293A (en) Dial testing method and device, electronic equipment and computer storage medium
US20180203790A1 (en) Detection of software errors
CN115237889A (en) Database switching method and device, storage medium and computer equipment
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support

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
FPAY Annual fee payment

Payment date: 20161216

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20171220

Year of fee payment: 5