WO2012014284A1 - テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム - Google Patents
テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム Download PDFInfo
- Publication number
- WO2012014284A1 WO2012014284A1 PCT/JP2010/062621 JP2010062621W WO2012014284A1 WO 2012014284 A1 WO2012014284 A1 WO 2012014284A1 JP 2010062621 W JP2010062621 W JP 2010062621W WO 2012014284 A1 WO2012014284 A1 WO 2012014284A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- web content
- test scenario
- test
- test case
- computer
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Definitions
- the present invention relates to a test scenario generation method, and more particularly to a method of generating a test scenario for testing Web content.
- Patent Document 1 discloses a technique for automatically operating and testing GUI software that operates on a certain OS, which is different from the GUI displayed on the Web browser. According to the technique disclosed in Patent Document 1, a file showing a GUI screen can be written in advance, and a script file that can automatically perform a test on the GUI screen can be created.
- Patent Document 1 has a problem that it can be applied to GUI software that directly operates on the OS, but cannot be applied to GUI that operates on a Web browser. There is also a problem that it is not possible to visually confirm what operation is being performed during the test.
- Patent Document 2 discloses a technique for recording and reproducing operations performed on a Web browser. According to the technology disclosed in Patent Document 2, an operation performed on a Web browser can be recorded and reproduced by inserting a program using JavaScript on the Web browser. However, it is necessary to execute the test for the GUI of the Web browser from the beginning, and the test result can be confirmed visually, but the test process cannot be shortened.
- the first problem is to shorten the test process when developing new Web content by using existing Web content that has already been released.
- a script file for automatic testing which was used when testing existing Web content, was re-edited by a human hand in order to test new Web content. Therefore, there is a problem that the test process for creating the script file takes a long time.
- the second challenge is to prevent missing tests on web content.
- Many elements for example, forms in the GUI
- the tester can combine one or at least two of normal, abnormal, and boundary value conditions for each element.
- a test case for Web content is generated. Then, the tester generates a script file corresponding to each generated test case.
- a test scenario generation method in a computer that holds Web content and a test scenario for operating the Web content in a storage medium, the computer including the storage A common part and a difference part of the first Web content before update and the second Web content after update are extracted on the medium, and the computer operates a first Web content for operating the first Web content.
- the test scenario corresponding to the common part is extracted from a storage medium in which the first test scenario is stored, and the computer includes a test scenario corresponding to the extracted common part;
- the second web content is To generate a second test scenario to work.
- FIG. 1A is a block diagram illustrating a configuration of a Web screen test case automatic generation system according to an embodiment of the present invention.
- the automatic test case generation system includes a client device 200, a server device 10, and a network 190.
- the client device 200 is a device used by a tester.
- the server device 10 automatically generates a web screen test case in accordance with a request sent from the client device 200.
- the client device 200 and the server device 10 are included in a computer system connected via a network 190.
- the client device 200 is connected to the network 190 via the communication interface 210, and the server device 10 is connected to the network 190 via the communication interface 180.
- the network 190 is a communication path through which data can be transferred, and may be a LAN (local area network) using TCP / IP, Ethernet, the Internet, a wireless communication network, or the like.
- the client device 200 is a computer including a CPU (Central Processing Unit) 220, a main storage device (memory) 240, an input / output device 230, a communication interface 210, and an auxiliary storage device 250. Each element provided in the client device 200 is connected by an internal bus.
- CPU Central Processing Unit
- main storage device main storage device
- input / output device a communication interface 210
- auxiliary storage device 250 an auxiliary storage device
- the CPU 220 is an arithmetic device that executes a program held in the main storage device 240.
- the auxiliary storage device 250 holds data generated when the program is executed or data used for the program.
- the input / output device 230 is a device such as a keyboard, a mouse, or a display device that provides a user interface.
- FIG. 1B is a block diagram illustrating a program included in the main storage device 240 of the client device 200 according to the embodiment of this invention.
- the main storage device 240 holds a Web browser (Web content display unit) 260, an operation recording / operation reproduction script unit 270, and a test case correction script unit 280.
- the CPU 220 is an arithmetic device that executes the programs of the Web browser 260, the operation recording / operation reproduction script unit 270, and the test case correction script unit 280 stored in the main storage device 240.
- FIG. 1C is a block diagram illustrating the auxiliary storage device 250 provided in the client device 200 according to the embodiment of this invention.
- the auxiliary storage device 250 is a storage device that holds the web content 290 and the operation log (script file) 300 described above.
- the Web browser 260 has a function of outputting content data transmitted from the server device 10 and received by the client device 200 to a display device.
- the received content data is stored in the Web content 290 held in the auxiliary storage device 250.
- the operation recording / operation reproduction script unit 270 is transmitted from the server device 10 and received by the client device 200 by the tester on the Web browser 260 when the tester executes the script file included in the content data. It has a function of recording and reproducing the performed operation and a function of acquiring and recording the operation log 300 from the server device 10.
- a Java script file is applied as the script file.
- the test case correction script unit 280 has a function of correcting an operation log 150 (described later) transmitted from the server device 10 and received by the client device 200.
- the test case correction script unit 280 has a function of storing the operation log 150 corrected by the test case correction script unit 280 in the operation log 300 held in the auxiliary storage device 250 and the operation log 300 to the server device 10. And a function to transmit.
- the server device 10 is a computer including a CPU 160, a main storage device 20, an auxiliary storage device 30, an auxiliary storage device 40, an input / output device 170, and a communication interface 180. Each element provided in the server device 10 is connected by an internal bus.
- the CPU 160 is an arithmetic device that executes a program held in the main storage device 20.
- FIG. 1D is a block diagram illustrating the main storage device 20 provided in the server device 10 according to the embodiment of this invention.
- the main storage device 20 holds programs such as an operation recording / operation reproduction script embedding unit 50, an automatic test case generation unit 60, an application server unit 70, and an HTTP server unit 80.
- the main storage device 20 has a storage area in which data can be temporarily stored.
- FIG. 1E is a block diagram illustrating the auxiliary storage device 30 provided in the server device 10 according to the embodiment of this invention.
- the auxiliary storage device 30 is a storage medium that holds the Web content 110, the operation recording script 120, the operation reproduction script 130, the test case correction script 90, and the test case definition file 100.
- the Web content 110 is a document file described in, for example, HTML (Hyper Text Markup Language).
- HTML Hyper Text Markup Language
- the operation recording script 120 is a document file described by a Java script, for example.
- the operation record script 120 has a function of storing operations performed on the Web browser 260 as an operation log 300 in the auxiliary storage device 250 of the client device 200.
- an operation performed on the web browser 260 is stored in the operation log 150 held in the auxiliary storage device 40 of the server device 10.
- the operation playback script 130 is a document file described by a Java script, for example.
- the operation playback script 130 has a function of playing back the content of the operation log 150 held by the auxiliary storage device 40 of the server device 10 in the Web browser 260 of the client device 200.
- the test case correction script 90 is a document file described by a Java script.
- the test case correction script 90 has a function of correcting the operation log 300 held by the auxiliary storage device 250 provided in the client device 200 or the operation log 150 sent by the server device 10.
- the operation log 300 or the operation log 150 that has been corrected is stored in the operation log 300 of the server device 10.
- FIG. 1F is a block diagram illustrating the auxiliary storage device 40 provided in the server device 10 according to the embodiment of this invention.
- the auxiliary storage device 40 is a storage medium that holds the Web content 140 and the operation log (script file) 150.
- the auxiliary storage device 40 of this embodiment holds data by a database.
- the web content 140 indicates web content in which operations in the web browser 260 are recorded.
- the Web content 140 is stored as character string information in the auxiliary storage device 40.
- the operation log 150 is information indicating an operation corresponding to the Web content 140.
- the operation log 150 is an executable script file.
- the web content 140 and the operation log 150 correspond to each other, and a unique identifier is added to the web content 140.
- the Web content 110 held in the auxiliary storage device 30 is an original and corresponds to the Web content 140 held in the auxiliary storage device 40.
- the tester may update the content of the Web content 110 and then record or test the updated Web content. For this reason, the Web content 140 stored in the auxiliary storage device 40 stores the Web content used for operation recording or testing in the client device 200.
- FIG. 2 is an explanatory diagram illustrating an example of the Web content 140 held in the auxiliary storage device 40 according to the embodiment of this invention.
- the web content 140 includes an identifier 1310, a URL 1320, and data 1330.
- the identifier 1310 is an identifier uniquely assigned to each Web content 140.
- the URL 1320 is a name indicating the Web content 140, and may include a character string indicating a resource (server, folder, etc.) storing the Web content 140.
- the data 1330 is the content of the Web content 140 and stores a specific script. Data 1330 illustrated in FIG. 2 is an example in the case where the Web content 140 is described in html.
- Web content 140 included in the server device 10 and the Web content 290 included in the client device 200 include the same content.
- FIG. 3 is an explanatory diagram showing the operation log 150 held in the auxiliary storage device 40 according to the embodiment of this invention.
- the operation log 150 includes an identifier 1310, an event 1340, and data 1350.
- An identifier 1310 included in the operation log 150 corresponds to 1310 included in the Web content 140.
- a row with the same identifier 1310 indicates an operation in the same Web content 140.
- the event 1340 indicates details of an operation performed on the form included in the web content 140 when the web content 140 is executed.
- the data 1350 includes a form that is a target of the event 1340 or a value that is input. For example, when the event 1340 of the operation log 150 is “onClick” and the data 1350 is “RadioButton”, this indicates that the operation log 150 is an operation of clicking a radio button.
- the form indicates an operation target such as a list box, a text box, or a dialog box included in the Web content when the Web content is created by HTML, for example.
- operation log 150 provided in the server device 10 and the operation log 300 provided in the client device 200 include the same contents.
- the HTTP server unit 80 receives an HTTP request sent by the client device 200 via the network 190. Thereafter, the request or data from the client device 200 included in the received HTTP request is extracted, and the extracted request or data is sent to the application server unit 70.
- the HTTP server unit 80 After the processing by the application server unit 70 is completed, the HTTP server unit 80 generates an HTTP response in which the processing result received from the application server unit 70 is inserted in response to the HTTP request sent from the client device 200. The generated HTTP response is sent to the client device 200 via the network 190.
- the application server unit 70 sends a request or data to the operation recording / operation reproduction script embedding unit 50 or the test case automatic generation unit 60 according to the content of the HTTP request (request) sent by the client device 200, Receive the result.
- the application server unit 70 records the operation recording / operation reproduction.
- a request is passed to the script embedding unit 50.
- the operation recording / operation playback script embedding unit 50 receives the Web content 110 from the auxiliary storage device 30.
- the operation record script 120 is acquired.
- the operation recording / operation reproduction script embedding unit 50 performs processing described later, and then sends the Web content 110 and the operation recording script 120 to the application server unit 70 as a result of the processing.
- the operation recording / operation reproduction script embedding unit 50 is held in the auxiliary storage device 30 when the request transmitted from the client device 200 is a request for reproducing the operation on the Web browser 260 in the client device 200.
- the operation reproduction script 130 and the Web content 140 and the operation log 150 held in the auxiliary storage device 40 are acquired.
- the operation recording / operation reproduction script embedding unit 50 performs processing described later, and then sends the acquired operation reproduction script 130, Web content 140, and operation log 150 to the application server unit 70 as a result of the processing. .
- the application server unit 70 sends the request to the test case automatic generating unit 60.
- the test case automatic generation unit 60 receives a request from the application server unit 70, the test case automatic generation unit 60 acquires the Web content 140 and the operation log 150 held in the auxiliary storage device 40.
- the test case automatic generation unit 60 performs the processing described later, and then sends the acquired Web content 140 and operation log 150 to the application server unit 70 as a result of the processing. Furthermore, the application server unit 70 sends the acquired Web content 140 and operation log 150 to the client device 200 via the HTTP server unit 80.
- the application server unit 70 and the HTTP server unit 80 of the present embodiment always send a request transmitted from the client device 200 to the operation recording / operation reproduction script embedding unit 50 or the test case automatic generation unit 60.
- the result from the operation recording / operation reproduction script embedding unit 50 or the test case automatic generation unit 60 is sent to the client device 200.
- the system In order to automatically generate a test case, the system according to the present embodiment records an operation log 300 relating to a test performed by a tester when the Web content 290 is executed on the client device 200, and Pre-held in the auxiliary storage device 40.
- the server apparatus 10 when the client apparatus 200 transmits a request for generating a test case of the updated Web content 290 to the server apparatus 10, the server apparatus 10 according to the present embodiment is based on the operation log 150 held in advance. A new test case is generated and further sent to the client device 200. The client device 200 corrects the sent test case as necessary, and sends a request to the server device 10 to register the corrected test case and the corresponding Web content 290 (Web content 140).
- the client device 200 requests the server device 10 to automatically reproduce the operation.
- the server device 10 transmits an operation log 150 corresponding to the Web content 140 (Web content 290) to the client device 200 in accordance with a request from the client device 200.
- the client device 200 automatically reproduces the Web content 290 based on the operation log 150 transmitted by the server device 10.
- the system of the present embodiment can execute the automatically generated test case.
- FIG. 4 is a sequence diagram illustrating a process for recording an operation performed in the Web browser 260 according to the embodiment of the present invention and a process for storing a recording result in the server device 10.
- the tester When generating a test case for a specific Web content, the tester first records an operation when the Web content is executed in the Web browser 260. The tester uses the client device 200 to send a specific Web content and a request for recording the operation to the server device 10 (310).
- the client device 200 in sequence 310, indicates information (file name, Identifier or the like) may be sent to the server device 10.
- the Web content to be recorded for the operation is not stored in the auxiliary storage device 250 of the client device 200, the Web content to be recorded for the operation in the sequence 310 may be stored in the auxiliary storage device 250.
- the server device 10 receives the specific Web content or information indicating the Web content and the request for recording the operation from the client device 200 by the HTTP server unit 80 and the application server unit 70 as described above. Since the request transmitted from the client device 200 is a request for recording an operation, the application server unit 70 sends the received request or the like to the operation recording / operation reproduction script embedding unit 50.
- the operation recording / operation reproduction script embedding unit 50 when the Web content 110 corresponding to the sent Web content is held in the auxiliary storage device 30, the Web content or Web sent from the client device 200 Web content 110 corresponding to the information indicating the content is acquired (330).
- the operation recording / operation reproduction script embedding unit 50 of the server device 10 acquires the operation recording script 120 held in the auxiliary storage device 30 (340).
- the operation recording / operation reproduction script embedding unit 50 acquires the Web content 110 in which the operation is recorded and the operation recording script 120, and then acquires the Web content 110 acquired by the operation recording / operation reproduction script embedding unit 50.
- the operation record script 120 is added to the above.
- the operation recording / operation reproduction script embedding unit 50 assigns a unique identifier to the Web content transmitted from the client device 200 or the Web content 110 acquired from the auxiliary storage device 30, and the Web of the auxiliary storage device 40. It is stored in the content 140 (350).
- the identifier given in the sequence 350 may be uniquely given to the Web content 140 having the same file name.
- the identifier may be uniquely assigned to the Web content 140 having the same name although the version is different, or may be provided for each version of the Web content 140.
- the version of the Web content 140 to be sent to the client device 200 is preset in the server device 10 by the administrator or the like.
- the server apparatus 10 is set in advance so as to always transmit the latest version of the Web content 140 to the client apparatus 200.
- the server device 10 can transmit the Web content 140 in which the operation is recorded and the operation recording script 120 to the client device 200 together.
- the server device 10 transmits the Web content 140 in which the operation is recorded, the operation recording script 120, and an identifier that uniquely indicates the Web content 140 to the client device 200. As described above, the server device 10 transmits the Web content 140 or the like in which the operation is recorded to the client device 200 via the application server unit 70 and the HTTP server unit 80.
- the client device 200 receives the Web content 140, the operation recording script 120, and the identifier uniquely indicating the Web content 140 from the server device 10, and then receives the Web content 140 sent from the server device 10 together with the received identifier. And stored in the Web content 290 of the auxiliary storage device 250.
- the client device 200 executes the Web content 290 whose operation is recorded by the Web browser 260 (360).
- the operation recording / operation reproduction script unit 270 records the operation performed when the tester tests the Web content 290 by executing the operation recording script 120 (370).
- the client device 200 stores the operation log acquired in the sequence 370 in the operation log 300.
- the client apparatus 200 transmits the operation log 300 acquired in the sequence 370, the identifier of the Web content 290, and the request for storing the operation log 300 to the server apparatus 10 (380).
- the server apparatus 10 receives the operation log 300, the identifier of the Web content 290, and the request for storing the operation log 300 from the client apparatus 200 via the application server unit 70 and the HTTP server unit 80 as described above. Thereafter (390), the operation recording / reproduction script embedding unit 50 stores the received operation log 300 in the operation log 150 of the auxiliary storage device 40 based on the received identifier of the Web content 290 (400). . Specifically, the received operation log 300 is stored in the operation log 150 corresponding to the Web content 140 indicated by the identifier of the received Web content 290.
- the server device 10 transmits the processing result to the client device 200.
- the processing result includes the identifier of the Web content 290 in which the operation is recorded and the fact that the operation log 300 is stored.
- the Web content 290 and operation log 300 in the auxiliary storage device 250 are synchronized with the Web content 140 and operation log 150 in the auxiliary storage device 40.
- the tester when the tester creates a new test case of the updated Web content by acquiring the operation log 150 of the Web content before the update in advance, the client device 200 The operation log 150 can be acquired.
- FIG. 5 is a flowchart showing processing for acquiring Web content for operation recording according to the embodiment of the present invention.
- FIG. 5 is a flowchart showing step 320 shown in FIG. According to the process shown in FIG. 5, the operation recording script 120 can be added to the Web content 140 requested to be recorded by the client device 200.
- the operation recording / operation reproduction script embedding unit 50 of the server device 10. After the sequence 310 shown in FIG. 4, after receiving a specific Web content or information indicating the Web content and a request to record the operation from the client device 200, the operation recording / operation reproduction script embedding unit 50 of the server device 10. Starts the process shown in FIG. 5 (610).
- the operation recording / operation reproduction script embedding unit 50 uses the Web content sent from the client device 200 or information indicating the Web content, out of the Web content 110 held in the auxiliary storage device 30, the client device 200. Web content 110 corresponding to the Web content requested by the user is acquired (620).
- the operation recording / operation reproduction script embedding unit 50 adds the operation recording script 120 acquired from the auxiliary storage device 30 to the acquired Web content 110 (630). Then, the operation recording / operation reproduction script embedding unit 50 assigns a unique identifier to the Web content 110 in which the operation is recorded (640). Then, the operation recording / operation reproduction script embedding unit 50 stores the Web content 110 assigned with the identifier in the Web content 140 held in the auxiliary storage device 40 (650).
- step 650 the server device 10 sends the Web content 110 whose operation is recorded to the client device 200, and ends the processing (660).
- FIG. 6 is a flowchart showing a process of recording an operation when executing the Web content 290 according to the embodiment of this invention.
- FIG. 6 is a flowchart showing the sequence 370 shown in FIG. Here, a process of recording the operation log 300 corresponding to the operation performed by the tester in the Web content executed in the Web browser 260 is shown.
- the process shown in FIG. 6 is started (670).
- the tester operates the executed Web content 290 (680)
- the operation recording / operation reproduction script unit 270 executes the operation recording script 120, whereby the operation content is stored in the operation log (script file) 300. Record (690).
- the operation recording / operation reproduction script unit 270 determines whether or not the web content 290 is being operated while the web content 290 is being executed by the operation recording script 120. When the Web content 290 is operated, the operation recording / operation reproduction script unit 270 records the operation in the operation log 300.
- the operation recording / operation reproduction script unit 270 records the operation content in the operation log 300 as an executable script file. This is because the operation content can be reproduced by the client device 200 executing the operation log 300 recorded by the operation recording / operation reproduction script unit 270.
- the tester determines whether or not the operation to the Web content 290 has been completed (700). If the operation has not been completed, the tester returns to Step 680. When the operation is finished, the process is finished (710).
- FIG. 7 is an explanatory diagram showing the relationship between the operation and the operation log 300 according to the embodiment of this invention.
- the operation recording / operation reproduction script unit 270 records, in the operation log 300, the operation performed by the tester on the Web browser 260 in which the Web content 290 is executed in the sequence 370 illustrated in FIG.
- FIG. 7 shows a screen displayed on the web browser 260 by the web content.
- the screen displayed on the Web browser 260 shown in FIG. 7 includes a name area 1281, a gender area 1282, an occupation area 1283, and a registration area 1284.
- the name area 1281 is a text box form
- the gender area 1282 is a radio button form
- the occupation area 1283 is a list box area
- the registration area 1284 is a button form.
- the operation record / operation playback script unit 270 records “changed” in the event 1340 of the operation log 300.
- “TextBox # 1: JOHN SMITH” is recorded in data 1350.
- the operation recording / operation reproduction script unit 270 when the tester moves the cursor to “male” among the radio buttons in the gender area 1282 and selects “male” (operation B), the operation recording / operation reproduction script unit 270 generates an event 1340. “onClick” is recorded, and “RadioButton” is recorded in the data 1350. In operation B, “changed” is recorded in event 1340 and “RadioButton # 1: check” is recorded in data 1350.
- FIG. 8 is a flowchart showing processing for storing the operation log in the server device 10 according to the embodiment of this invention.
- FIG. 8 shows the processing shown in the sequence 390 of FIG.
- the operation log 300 sent by the client device 200 is stored in the operation log 150 held in the auxiliary storage device 40.
- the server apparatus 10 After receiving the operation log 300, the identifier indicating the Web content 290, and the request for storing the operation log 300 by the client apparatus 200, the server apparatus 10 starts the process illustrated in FIG. 8 (720). After 720, the operation recording / operation reproduction script embedding unit 50 included in the server device 10 acquires the operation log 300 sent from the client device 200 and the identifier indicating the Web content 290 (730, 740), and acquires The operation log 300 is stored in the operation log 150 so as to correspond to the Web content 140 corresponding to the identifier.
- Test case automatic generation process (Overview)
- the tester transmits a request for automatic test case generation and information (ID or the like) indicating the Web content to be tested to the server device 10 via the Web browser 260 provided in the client device 200.
- the HTTP server unit 80 of the server device 10 receives the request sent from the tester and information indicating the Web content.
- the test case automatic generation unit 60 After the request sent from the tester is sent from the HTTP server unit 80 to the application server unit 70 and further sent from the application server unit 70 to the test case automatic generation unit 60, the test case automatic generation unit 60 Then, the Web content 140 and the operation log 150 held in the auxiliary storage device 40 are acquired. Then, the test case automatic generation unit 60 automatically generates a test case based on the acquired Web content 140 and operation log 150, and further generates a script file corresponding to each test case. Then, the generated script file is transmitted to the client device 200.
- the tester modifies the script file corresponding to each test case sent from the server device 10 using the Web browser 260 of the client device 200. Then, the client device 200 transmits a script file (operation log 300) corrected by the tester to the server device 10 and requests to store the transmitted operation log 300 in the auxiliary storage device 40 included in the server device 10. Send.
- a script file operation log 300
- the server device 10 receives the script file (operation log 300) registration request sent to the auxiliary storage device 40 sent by the client device 200, and the test case automatic generation unit 60 sends the script file (operation log 300) to the auxiliary storage device.
- the operation log 150 is stored in the operation log 150.
- the Web content 110 in which the test case is automatically generated by the test case automatic generation unit 60 is stored in the Web content 140 held in the auxiliary storage device 40.
- FIG. 9 is a sequence diagram showing a process for automatically generating a test case for the updated Web content according to the embodiment of the present invention. Details will be described below.
- the tester selects Web content for which a test case is to be generated, selects the selected Web content and information indicating the Web content, and a request to automatically generate (automatically generate) a test case for the selected Web content.
- Input to the client device 200 (480).
- the client device 200 transmits Web content, information indicating the input Web content, and a request for automatically generating a test case to the server device 10 (490).
- the information indicating the Web content may be any of a file name, a URL name, or an identifier indicating the Web content. That is, in the content analysis processing 500 described later, when the latest Web content 140 before update is always extracted, the information indicating the Web content may be a file name or a URL name. In the content analysis processing 500 described later, when a specific version of the Web content 140 is extracted from the Web content 140 before being updated, an identifier may be used as information indicating the Web content.
- the server device 10 sends the Web content for automatically generating a test case, the information indicating the Web content, and the request for automatically generating the test case sent by the client device 200 to the HTTP server unit 80 and the application. This is received via the server unit 70. Thereafter, the test case automatic generation unit 60 of the server device 10 executes the content analysis process 500.
- processing of the sequences 510, 520, 530, and 550 shown below is executed when Web content for which a test case is generated by the server device 10 is stored in advance. That is, when a test case is generated for new Web content, it is not executed.
- the server device 10 executes the content analysis processing 500 by the test case automatic generation unit 60.
- the test case automatic generation unit 60 acquires the Web content 140 before the update of the sent Web content from the Web content 140 based on the information indicating the sent Web content ( 520).
- the server device 10 acquires an operation log as a reference in order to generate an operation log of each test case corresponding to the updated Web content, so that the operation log 150 corresponding to the Web content 140 acquired in the sequence 420 is acquired. Is acquired (550).
- the updated Web content is compared with the Web content 140 before the update, and a difference is extracted (510). Then, a part of the updated Web content that has been changed or added from the Web content 140 before the update is extracted and generated as a Web content (530).
- the server device 10 assigns a unique identifier to the web content sent from the client device, that is, the updated web content. To do.
- the test case automatic generation unit 60 of the server device 10 uses the result of comparison between the Web content 140 acquired in the content analysis processing 500 and the Web content 140 and the operation log, and updates the updated Web content. Generate a test case. Further, an operation log for each test case is generated (540). Further, in the sequence 540, the test case automatic generation unit 60 acquires the test case correction script 90 held in the auxiliary storage device 30 (555).
- test case of the present embodiment is information indicating a value input in the test on each form displayed on the Web browser 260 by the Web content 290.
- Test cases include values that can be obtained as normal results when entered in each form (normal values), values that can be obtained as abnormal results (abnormal values), boundary values between normal values and abnormal values, or , Values before and after the boundary value are included.
- the operation log is a script file indicating an operation on each form displayed by the Web content on the Web browser 260 as described above. That is, the operation log of the present embodiment is a script file that is executed in a test when it is created based on a test case.
- the operation log is generated by a test case and Web content. That is, the test case and operation log hold the same test scenario contents. Therefore, a test case is stored in the auxiliary storage device 40 and the auxiliary storage device 250 in place of the operation log 150 and the operation log 300, and an operation log is generated from the test case when performing a test or an operation reproduction. May be.
- test case automatic generation unit 60 of the server device 10 adds a test case correction script 90 and information indicating Web content such as an identifier generated in the content analysis processing 500 to the generated test case.
- the data is transmitted to the client device 200 via the application server unit 70 and the HTTP server unit 80.
- the server apparatus 10 may send the generated operation log to the client apparatus 200 together with the test case or instead of the test case. That is, when the operation log is sent to the client device 200, the client device 200 may extract a test case included in the sent operation log and modify the extracted test case in a sequence 560 described later.
- the client device 200 After the client device 200 receives the generated test case, the test case correction script 90, and the information indicating the Web content, the client device 200 causes the test case correction script unit 280 to execute the test case correction script 90.
- the test case correction script unit 280 uses the Web browser 260 to display a screen for correcting the test case, thereby allowing the tester to confirm and correct the test case sent from the server device 10. (560).
- the test executor arbitrarily changes the test case sent from the server device 10, whereby the system according to the present embodiment can generate an appropriate test case according to the environment in which the test is performed. .
- the client apparatus 200 transmits the confirmed and modified test case and information indicating the Web content corresponding to the test case to the server apparatus 10 (570). .
- the test case automatic generation unit 60 is modified. Generate operation logs from test cases. Then, the generated operation log is stored in the operation log 150 of the auxiliary storage device 40 (590). Then, the updated web content received in the content analysis processing 500 is stored in the web content 140 held in the auxiliary storage device 40 (600).
- the operation log and the Web content are stored in the auxiliary storage device 40 using the identifier indicating the Web content as a key in sequences 590 and 600.
- the server apparatus 10 may transmit an operation log generated from the modified test case to the client apparatus 200.
- the client apparatus 200 further includes an operation log sent from the server apparatus 10 and
- the updated Web content and an identifier indicating the Web content may be stored in the auxiliary storage device 250.
- FIG. 10 is an explanatory view showing a screen for inputting the Web content for generating the test case according to the embodiment of the present invention to the client device 200.
- the screen shown in FIG. 10 includes a Web content designation area 1200, a reference button 1210, an identifier designation area 1220, a generation button 1230, and a cancel button 1240.
- the tester describes the name of the Web content for automatically generating the test case in the Web content designation area 1200.
- a folder name is acquired by a reference button 1210.
- the tester may input the identifier of the Web content before the update in 1220.
- the tester refers to the identifier 1310 included in the Web content 290 held in the auxiliary storage device 250 as the Web content identifier. This is because the identifier 1310 included in the web content 290 is synchronized with the identifier of the web content 140 held in the auxiliary storage device 40 when the identifier of the web content is sent from the server device 10 such as the processing shown in FIG. This is because.
- the tester inputs a value in the Web content designation area 1200 or the identifier designation area 1220 and operates the generation button 1230. As a result, the sequence 480 shown in FIG. 9 is executed.
- the generation button 1230 is operated by clicking or the like.
- FIG. 11 is a flowchart showing the content analysis processing 500 according to the embodiment of the present invention.
- FIG. 11 shows the content analysis processing 500 of FIG.
- test case automatic generation unit 60 provided in the server device 10 determines whether or not the pre-update Web content 140 corresponding to the Web content sent from the client device 200 is stored in the auxiliary storage device 40 (900). . If the pre-update web content 140 is not stored in the auxiliary storage device 40, the web content sent by the client device 200 is a new web content, so the test case automatic generation unit 60 proceeds to step 960. To do.
- test case automatic generation unit 60 acquires the pre-update Web content 140 held in the auxiliary storage device 40 (910). Further, the operation log 150 corresponding to the version of the Web content 140 before being updated, which is held in the auxiliary storage device 40, is acquired (920).
- steps 910 and 920 correspond to sequences 520 and 550 shown in FIG.
- the test case automatic generation unit 60 extracts the difference between the updated web content sent by the client device 200 and the web content 140 acquired in step 910, that is, the web content before the update ( 930). In step 930, the test case automatic generation unit 60 deletes the part of the updated web content that has been added or changed from the web content before the update and the web content before the update, and the updated web content. The parts that are not present are extracted as differences.
- the test case automatic generation unit 60 acquires a common part between the Web content before update and the Web content after update, and corresponds to the common part based on the operation log 150 acquired in step 920.
- An operation log is generated (940). This is because if the Web content is common, the corresponding operation log is also common. Note that the test case automatic generation unit 60 stores the generated operation log corresponding to the common part in a temporary storage area or the like provided in the main storage device 20 or the like.
- the test case automatic generation unit 60 After Step 940, the test case automatic generation unit 60 generates, as the Web content to be added to the common part, the part added or changed from the Web content before the update among the differences extracted in Step 930 (950). . This is to generate Web content that needs to generate a new operation log by updating. The part deleted from the Web content before the update in Steps 940 and 950 is not included in the Web content that needs to generate a new operation log.
- test case automatic generation unit 60 extracts a form included in the Web content to be added in order to generate an operation log corresponding to the Web content to be added (960).
- test case automatic generation unit 60 extracts a form from the new Web content sent by the client device 200 in step 960.
- the test case automatic generation unit 60 extracts a form from the Web content generated in step 950 and added to the common part in step 960.
- step 960 the test case automatic generation unit 60 can divide each form for generating the operation log. After step 960, the test case automatic generation unit 60 ends the content analysis process 500 (970).
- step 930 shown in FIG. 11 corresponds to the sequence 510 shown in FIG. 9, and the processes of steps 940 and 950 shown in FIG. 11 correspond to the sequence 530 shown in FIG.
- FIG. 12A is a flowchart showing a process for generating a test case according to the embodiment of the present invention.
- FIG. 12A is a flowchart showing the sequence 540 of FIG.
- the test case automatic generation unit 60 starts the process shown in FIG. 12A after completing the process shown in FIG. 11 (980). Then, the test case automatic generation unit 60 acquires one form among the forms extracted in Step 960 (990).
- the test case automatic generation unit 60 generates a test case corresponding to one form acquired in step 990 based on the test case definition file 100 (1000). Details of the test case definition file 100 will be described later with reference to FIG.
- test case automatic generation unit 60 determines whether there is a form that has not been processed in step 1000 among the forms extracted in step 960 (1080). If there is a form for which the process of step 1000 has not been executed, the test case automatic generation unit 60 returns to step 990.
- step 1080 a test case corresponding to the Web content updated by addition or change is generated.
- test case automatic generation unit 60 determines whether or not an operation log corresponding to a common part between the pre-update web content and the post-update web content is stored in the temporary storage area of the main storage device 20. Determine. That is, it is determined whether or not it has been generated in step 940 shown in FIG.
- test case automatic generation unit 60 If it is determined in step 1090 that the operation log corresponding to the common part between the pre-update web content and the post-update web content is not stored in the temporary storage area, all the updated web content is added or Since the Web content has been changed, the test case automatic generation unit 60 generates only an operation log corresponding to the test case generated in Step 1000, and as a result, acquires an operation log corresponding to the updated Web content. (1110).
- test case automatic generation unit 60 Is acquired from a temporary storage area provided in the main storage device 20 or the like (1100).
- test case automatic generation unit 60 After step 1100, the test case automatic generation unit 60 generates an operation log corresponding to the test case generated in step 1000. Then, the generated operation log is combined with the operation log corresponding to the common part, that is, added or inserted to generate an operation log corresponding to the updated Web content (1120).
- the test case automatic generation unit 60 extracts a test case corresponding to the generated operation log, and transmits the extracted test case to the client device 200 (1125).
- the test case automatic generation unit 60 acquires the test case correction script 90 from the auxiliary storage device 30. Then, the test case correction script 90 and information indicating the Web content are added to the test case and transmitted to the client device 200.
- step 1125 the process shown in FIG. 12A is terminated (1130).
- the process shown in FIG. 12A can generate a test case and an operation log corresponding to the updated Web content.
- FIG. 12B is a flowchart showing processing for generating a test case according to the embodiment of the present invention.
- FIG. 12B corresponds to step 1000 in FIG. 12A.
- the test case automatic generation unit 60 starts the process shown in FIG. 12B after Step 990 (1001).
- the test case automatic generation unit 60 first determines the type of one form acquired in step 990 (1005).
- the test case automatic generation unit 60 when the form type is a text box, the test case automatic generation unit 60 generates a test case in which a normal value is input in the text box (1010). Further, a test case in which an abnormal value is input in the text box is generated (1040), and a test case in which a boundary value is input in the text box is generated (1070).
- the test case automatic generation unit 60 when the form type is a radio button, the test case automatic generation unit 60 generates a test case in which a normal value is input to the radio button (1020), and a test case in which an abnormal value is input to the radio button. Is generated (1050).
- the test case automatic generation unit 60 when the form type is a button, the test case automatic generation unit 60 generates a test case in which a normal value is input to the button (1030), and generates a test case in which an abnormal value is input to the button. (1060).
- test case automatic generation unit 60 When the test case automatic generation unit 60 generates a test case corresponding to each form, the test case automatic generation unit 60 ends the process illustrated in FIG. 12B (1075), and proceeds to step 1080 illustrated in FIG. 12A.
- the server device 10 holds the test case definition file 100 for generating a test case corresponding to each form in the auxiliary storage device 30.
- test cases to be generated are described in advance according to the type of form.
- the test case automatic generation unit 60 refers to the test case definition file 100 to generate a test case for each form.
- FIG. 13 is an explanatory diagram showing the test case definition file 100 according to the embodiment of this invention.
- the test case definition file 100 includes a form 101, a condition 102, and a value 103.
- the test case definition file 100 is created in advance by a tester or an administrator.
- the created test case definition file 100 is stored in the server device 10.
- Form 101 indicates the type of form, for example, a text box, a radio button, a list box, or a button.
- the condition 102 indicates the type of value that can be input when an operation is performed on each form 101. For example, when the form 101 is a text box, a value that can be input to the text box is one of a normal value, an abnormal value, and a boundary value.
- the value 103 is a specific value corresponding to each condition 102 of each form 101. For example, in the text box of this embodiment, up to 1024 half-width characters can be input. Therefore, when the form 101 is a text box and the condition 102 is a normal value, the value 103 describes the value of the number of characters of 1023 characters or less.
- the value 103 stores values of 1024 characters and 1,025 characters. In addition, a value of 1026 characters or more is stored in the value 103 in which the condition 102 is an abnormal value.
- the radio button of this embodiment outputs an error when no radio button is specified and the radio button indicates “Off”. Therefore, when the form 101 is a radio button and the condition 102 is a normal value, “On” is stored in the value 103, and when the condition 102 is an abnormal value, “Off” is stored in the value 103. Stored.
- the list box of the present embodiment outputs an error when a value other than a predetermined list value (list # 1, list # 2) is designated. Therefore, when the form 101 is a list box and the condition 102 is a normal value, “list # 1” or “list # 2” is stored in the value 103, and the condition 102 is an abnormal value.
- a certain value 103 stores character strings other than “list # 1” and “list # 2”.
- the test case automatic generation unit 60 uses the test case definition file 100 to enumerate values 103 corresponding to each form, thereby generating a test case.
- FIG. 14 is an explanatory diagram showing a screen 1190 for correcting the test case according to the embodiment of the present invention.
- FIG. 14 shows a screen 1190 displayed on the Web browser 260 in order to make the tester confirm each test case sent by the server device 10.
- Screen 1190 is displayed in sequence 560 shown in FIG.
- the Web browser 260 displays the test conditions generated in the sequence 550 shown in FIG. 9 to the test performer by displaying each condition of each form on the icon 1250 shown in FIG.
- CASE 1 shown in FIG. 14 is a test case in which a normal value is input into a text box form, a normal value is input into a button form, and then the process ends.
- CASEn shown in FIG. 14 inputs normal values to the text box form, normal values to the radio button form, normal values to the list box form, and normal values to the button form. After the test case is finished.
- the tester When there is a test case to be corrected among the test cases, the tester operates the icon 1250 indicating the form of the test case to be corrected to correct the test case. Then, after the test case is corrected, the tester operates the registration button 1260 so that the client apparatus 200 transmits the corrected test case and a request for storing the corrected test case to the server apparatus 10 ( This corresponds to the sequence 570 shown in FIG. Note that the icon 1250 and the registration button 1260 are operated by clicking or the like.
- FIG. 15 is an explanatory view showing a screen 1280 for correcting the value of the test case according to the embodiment of the present invention.
- FIG. 15 shows a screen 1280 displayed on the Web browser 260 for the tester to correct the value of each test case sent by the server device 10.
- the tester When the tester wants to correct the value related to the CASE1 text box form on the screen 1190 shown in FIG. 14, the tester operates the icon 1250 indicating the CASE1 text box form. Thereafter, a screen 1280 shown in FIG. 15 is displayed by the Web browser 260.
- a screen 1290 for correcting a value for testing the text box is displayed.
- the tester corrects the value corresponding to each condition and operates the OK button 1300 to determine the content to be corrected.
- the OK button 1300 is operated by clicking or the like.
- the screen 1190 and the screen 1280 for correcting the test case are not limited to the display methods of FIGS. 14 and 15, and any method can be used as long as it can be uniquely specified for each test case form and the value can be changed.
- the display method may be used.
- FIG. 16 is a flowchart showing processing for storing a test case and an operation log corrected by the client device 200 according to the embodiment of this invention.
- FIG. 16 shows a process of storing the modified test case and operation log 300 in the server apparatus 10 by the Web browser 260 and the test case modification script unit 280 provided in the client apparatus 200.
- the process shown in FIG. 16 corresponds to the sequence 580 shown in FIG.
- the server apparatus 10 When the server apparatus 10 receives the request for storing the test case modified by the client apparatus 200, the server apparatus 10 starts the process shown in FIG. 16 (1150). The server device 10 assigns a unique identifier to the test case received from the client device 200 and the operation log generated from the test case (1160).
- the server device 10 stores the operation log sent from the client device 200 in the operation log 150 of the auxiliary storage device 40 (1170). Thereafter, the server device 10 ends the process shown in FIG.
- FIG. 17 is a sequence diagram illustrating processing for reproducing, in the client device 200, the Web content 140 held in the server device 10 according to the embodiment of the present invention and the operation log 150 corresponding to the Web content 140.
- the client apparatus 200 transmits a request for reproducing the operation of the Web content to the server apparatus 10 (410).
- the client apparatus 200 transmits a request for reproducing the operation of the Web content and information indicating the Web content 140 corresponding to the requested Web content.
- Information indicating the Web content 140 is held in advance by the client apparatus 200 by the processing illustrated in FIGS. 4 and 9.
- the server apparatus 10 sends a request for reproducing an operation of a specific Web content and information indicating the Web content 140 corresponding to the requested Web content via the HTTP server unit 80 and the application server unit 70.
- the operation recording / operation reproduction script embedding unit 50 acquires the operation reproduction script 130 held in the auxiliary storage device 30 (425).
- the operation recording / operation reproduction script embedding unit 50 of the server device 10 acquires the Web content 140 held in the auxiliary storage device 40 and the operation log 150 corresponding to the Web content 140 based on the received information. (430, 440). Then, the acquired operation playback script 130, Web content 140, and operation log 150 are transmitted to the client device 200 via the application server unit 70 and the HTTP server unit 80.
- the operation recording / operation reproduction script embedding unit 50 stores the Web content 140 and the operation log 150 based on the identifier. get.
- the operation recording / operation reproduction script embedding unit 50 uses a Web version of a version predetermined by an administrator or the like such as the latest version. The content 140 and the operation log 150 are acquired.
- the client device 200 After the operation playback script 130, the Web content 140, and the operation log 150 are transmitted from the server device 10, the client device 200 stores the transmitted Web content 140 in the Web content 290 and operates the transmitted operation log 150. Store in the log 300. Then, the newly stored Web content 290 is executed by the operation recording / operation reproduction script unit 270 (460). The operation recording / operation reproduction script unit 270 reproduces the operation by executing the newly stored Web content 290 and sequentially executing the newly stored operation log 300 by the operation reproduction script 130 (470).
- FIG. 18 is a flowchart showing an information acquisition process for reproducing the operation according to the embodiment of the present invention.
- the process shown in FIG. 18 is the process shown in the sequence 420 of FIG. FIG. 18 shows a process of acquiring the Web content 140 to be reproduced as an operation requested by the client device 200 and the operation log 150 corresponding to the Web content 140 from the auxiliary storage device 40 and transmitting the operation log 150 to the client device 200. .
- the server device 10 After the request for reproducing the operation of the Web content and the identifier indicating the Web content 140 corresponding to the Web content are transmitted from the client device 200, the server device 10 starts the process shown in FIG. 18 (770). .
- the operation recording / operation reproduction script embedding unit 50 refers to the auxiliary storage device 40 by the information indicating the Web content 140 transmitted from the client device 200, and corresponds to the Web content 140 and the Web content 140.
- the operation log 150 is acquired (780, 790).
- the operation recording / operation reproduction script embedding unit 50 acquires the operation reproduction script 130 held in the auxiliary storage device 30 in order to reproduce the Web content 140 on the client device 200, and the Web content 140 acquired in Step 780. (800). Then, the operation recording / operation reproduction script embedding unit 50 transmits the Web content 140 and the operation log 150 to the client device 200 (810), and ends the processing.
- steps 780 and 790 correspond to sequences 430 and 440 shown in FIG.
- FIG. 19 is a flowchart showing processing for reproducing an operation according to the embodiment of the present invention.
- FIG. 19 shows the processing of the sequence 470 in FIG. FIG. 19 shows processing for reproducing the Web content 140 acquired by the server device 10 and the operation log 150 corresponding to the Web content 140 on the client device 200.
- the client device 200 executes the Web content 140 sent from the server device 10 by the operation recording / operation playback script unit 270, and displays the screen of the Web content 140 on the Web browser 260 (840). Then, the operation recording / operation replay script unit 270 acquires data indicating one operation from the operation log 150 sent from the server device 10 (850), and the acquired operation is inserted into the Web content 140. It is executed by the operation reproduction script 130 (860).
- the operation recording / operation reproduction script unit 270 determines whether or not an unexecuted operation log is included in the operation log 150 sent from the server device 10 (870). If an operation log is included, the process returns to step 850. If the unexecuted operation log is not included and all the operation logs 150 are executed, the server device 10 ends the process of reproducing the operation (880).
- the operation log and the test case are distinguished from each other, but the client device 200 and the server device 10 may hold either the operation log or the test case.
- the server device 10 may extract a test case from the operation log 300 sent from the client device 200 in the sequence 390 of FIG. 4 and hold the extracted test case. Then, in the sequence 540 of FIG. 9, the test case corresponding to the common part of the Web content before and after the update is extracted, and the test case corresponding to the common part and the test case corresponding to the difference part may be combined. Good.
- a test case for testing Web content can be automatically generated based on an operation log (script file) used by a past test or the like. Tests can be automatically replayed, reducing test man-hours. Moreover, since the test case is automatically generated based on the test case definition file created in advance, it is possible to prevent the test case from being leaked. As a result, it is possible to improve the quality of Web contents.
- the present invention can be applied to a system for developing a Web application.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
クライアント装置200は、CPU(中央処理演算装置)220、主記憶装置(メモリ)240、入出力装置230、通信インタフェース210及び補助記憶装置250を備える計算機である。クライアント装置200に備わる各要素は、内部バスによって接続される。
サーバ装置10は、CPU160、主記憶装置20、補助記憶装置30、補助記憶装置40、入出力装置170及び通信インタフェース180を備える計算機である。サーバ装置10が備える各要素は、内部バスによって接続される。CPU160は、主記憶装置20に保持されるプログラムを実行する演算装置である。
図2は、本発明の実施形態の補助記憶装置40に保持されるWebコンテンツ140の例を示す説明図である。
HTTPサーバ部80は、ネットワーク190を介してクライアント装置200によって送られたHTTPリクエストを受信する。その後、受信したHTTPリクエストに含まれるクライアント装置200からの要求又はデータを抽出し、抽出された要求又はデータをアプリケーションサーバ部70へ送る。
以下に、本実施形態のシステムのテストケース自動生成処理の概要を示す。
以下に、本実施形態のシステムのWebブラウザ260における操作を記録する処理を示す。
(概要)
テスト実施者は、クライアント装置200に備わるWebブラウザ260を介して、テストケースの自動生成の要求、及び、テストをするWebコンテンツを示す情報(IDなど)をサーバ装置10に送信する。サーバ装置10のHTTPサーバ部80は、テスト実施者から送られた要求及びWebコンテンツを示す情報を受信する。
図17は、本発明の実施形態のサーバ装置10に保持されるWebコンテンツ140及びWebコンテンツ140に対応する操作ログ150を、クライアント装置200において再生する処理を示すシーケンス図である。
Claims (14)
- Webコンテンツと、前記Webコンテンツを操作するためのテストシナリオとを、記憶媒体に保持する計算機における、テストシナリオ生成方法であって、
前記計算機が、前記記憶媒体に保持される更新前の第1のWebコンテンツと、更新後の第2のWebコンテンツとの共通部分と差部分とを抽出し、
前記計算機が、前記第1のWebコンテンツを操作するための第1の前記テストシナリオのうち、前記共通部分に対応する前記テストシナリオを、前記第1のテストシナリオが格納される前記記憶媒体から抽出し、
前記計算機が、前記抽出された共通部分に対応するテストシナリオと、前記抽出された差部分に対応する新たに生成されたテストシナリオとを結合することによって、前記第2のWebコンテンツを操作するための第2のテストシナリオを生成することを特徴とするテストケース生成方法。 - 前記方法は、
前記計算機が、前記第2のWebコンテンツのうち、前記第1のWebコンテンツに追加されたWebコンテンツを、前記差部分に含め、
前記計算機が、前記第1のWebコンテンツのうち、前記第2のWebコンテンツに含まれていないWebコンテンツを、前記差部分に含めないことを特徴とする請求項1に記載のテストシナリオ生成方法。 - 前記方法は、
前記計算機が、前記第2のWebコンテンツを取得し、
前記計算機が、前記取得された第2のWebコンテンツに基づいて、前記記憶媒体によって保持されるWebコンテンツのうち、前記第1のWebコンテンツと、前記第1のWebコンテンツを操作するための第1のテストシナリオとを、抽出することを特徴とする請求項1又は2に記載のテストシナリオ生成方法。 - 前記方法は、
前記計算機が、前記第1のWebコンテンツと前記第2のWebコンテンツとの前記共通部分が抽出されるか否かを判定し、
前記共通部分が抽出されない場合、前記計算機が、前記抽出された差部分に対応するテストシナリオを、前記第2のテストシナリオとして新たに生成し、
前記共通部分が抽出された場合、前記計算機が、前記抽出された共通部分に対応する前記テストシナリオと、前記差部分に対応する新たに生成されたテストシナリオとを結合することによって、前記第2のテストシナリオを生成することを特徴とする請求項1から3のいずれか一項に記載のテストシナリオ生成方法。 - 前記テストシナリオは、少なくとも一つのテストケースを含み、
前記計算機は、前記Webコンテンツに含まれるフォームに対応する前記テストケースを保持し、
前記方法は、
前記計算機が、前記差部分に含まれるフォームに対応する前記テストケースを取得し、
前記計算機が、前記取得されたテストケースを含む前記テストシナリオを生成することによって、前記差部分に対応するテストシナリオを生成することを特徴とする請求項1から4のいずれか一項に記載のテストシナリオ生成方法。 - 前記計算機は、前記Webコンテンツを前記テストシナリオを用いて操作するための指示ファイルを保持し、
前記方法は、
前記計算機が、前記操作するための指示ファイルを、前記Webコンテンツに付加し、
前記計算機が、前記操作するための指示ファイルを付加された第2のWebコンテンツと前記第2のWebコンテンツを操作するためのテストシナリオとを送信することを特徴とする請求項1から5のいずれか一項に記載のテストシナリオ生成方法。 - 前記方法は、
前記計算機が、前記テストシナリオを修正するための画面を表示するためのデータを提供し、
前記計算機が、前記画面によって修正されたテストシナリオを取得し、
前記計算機が、前記画面によって修正されたテストシナリオを保持することを特徴とする請求項1から6のいずれか一項に記載のテストシナリオ生成方法。 - 前記計算機は、前記テストシナリオを修正するための指示ファイルを保持し、
前記方法は、
前記計算機が、前記修正するための指示ファイルと前記テストシナリオとを、前記第2のWebコンテンツに付加し、
前記計算機が、前記修正するための指示ファイルを付加された第2のWebコンテンツと前記第2のWebコンテンツを操作するためのテストシナリオとを送信することを特徴とする請求項1から7のいずれか一項に記載のテストシナリオ生成方法。 - Webコンテンツと前記Webコンテンツを操作するためのテストシナリオとを保持するサーバを備えるテストシナリオ生成システムであって、
前記サーバは、
更新前の第1のWebコンテンツと更新後の第2のWebコンテンツとの共通部分と差部分とを抽出し、
前記第1のWebコンテンツを操作するための第1の前記テストシナリオのうち、前記共通部分に対応する前記テストシナリオを抽出し、
前記抽出された共通部分に対応するテストシナリオと、前記抽出された差部分に対応する新たに生成されたテストシナリオとを結合することによって、前記第2のWebコンテンツを操作するための第2のテストシナリオを生成することを特徴とするテストシナリオ生成システム。 - 前記サーバは、
前記第2のWebコンテンツのうち、前記第1のWebコンテンツに追加されたWebコンテンツを、前記差部分に含め、
前記第1のWebコンテンツのうち、前記第2のWebコンテンツに含まれていないWebコンテンツを、前記差部分に含めないことを特徴とする請求項9に記載のテストシナリオ生成システム。 - 前記サーバは、
前記Webコンテンツを実行するクライアントと接続され、
前記第2のWebコンテンツを、前記クライアントから取得し、
前記取得された第2のWebコンテンツに基づいて、前記サーバによって保持されるWebコンテンツのうち、前記第1のWebコンテンツと、前記第1のWebコンテンツを操作するための第1のテストシナリオとを、抽出することを特徴とする請求項9又は10に記載のテストシナリオ生成システム。 - 前記サーバは、
前記第1のWebコンテンツと前記第2のWebコンテンツとの前記共通部分が抽出されるか否かを判定し、
前記共通部分が抽出されない場合、前記抽出された差部分に対応するテストシナリオを、前記第2のテストシナリオとして新たに生成し、
前記共通部分が抽出された場合、前記抽出された共通部分に対応する前記テストシナリオと、前記差部分に対応する新たに生成されたテストシナリオとを結合することによって、前記第2のテストシナリオを生成することを特徴とする請求項9から11のいずれか一項に記載のテストシナリオ生成システム。 - 前記テストシナリオは、少なくとも一つのテストケースを含み、
前記サーバは、前記Webコンテンツに含まれるフォームに対応する前記テストケースを保持し、
前記差部分に含まれるフォームに対応する前記テストケースを取得し、
前記取得されたテストケースを含む前記テストシナリオを生成することによって、前記差部分に対応するテストシナリオを生成することを特徴とする請求項9から12のいずれか一項に記載のテストシナリオ生成システム。 - Webコンテンツと、前記Webコンテンツを操作するためのテストシナリオとを保持する計算機によって実行されるテストシナリオ生成プログラムであって、
前記プログラムは、
前記計算機に、更新前の第1のWebコンテンツと更新後の第2のWebコンテンツとの共通部分と差部分とを抽出させ、
前記計算機に、前記第1のWebコンテンツを操作するための第1の前記テストシナリオのうち、前記共通部分に対応する前記テストシナリオを抽出させ、
前記計算機に、前記抽出された共通部分に対応するテストシナリオと、前記抽出された差部分に対応する新たに生成された前記テストシナリオとを結合することによって、前記第2のWebコンテンツを操作するための第2の前記テストシナリオを生成させることを特徴とするテストシナリオ生成プログラム。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012526233A JPWO2012014284A1 (ja) | 2010-07-27 | 2010-07-27 | テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム |
US13/811,756 US20130191814A1 (en) | 2010-07-27 | 2010-07-27 | Test scenario generation method, test scenario generation system, and test scenario generation program |
PCT/JP2010/062621 WO2012014284A1 (ja) | 2010-07-27 | 2010-07-27 | テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2010/062621 WO2012014284A1 (ja) | 2010-07-27 | 2010-07-27 | テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012014284A1 true WO2012014284A1 (ja) | 2012-02-02 |
Family
ID=45529531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2010/062621 WO2012014284A1 (ja) | 2010-07-27 | 2010-07-27 | テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム |
Country Status (3)
Country | Link |
---|---|
US (1) | US20130191814A1 (ja) |
JP (1) | JPWO2012014284A1 (ja) |
WO (1) | WO2012014284A1 (ja) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015035216A (ja) * | 2013-08-07 | 2015-02-19 | 飛捜股▲ふん▼有限公司 | アプリケーションプログラムサーチの方法及びそのシステム |
JP2017010180A (ja) * | 2015-06-19 | 2017-01-12 | 株式会社日立製作所 | テスト支援システムおよびテスト支援方法 |
JP2017207959A (ja) * | 2016-05-19 | 2017-11-24 | 富士通株式会社 | テストケース生成方法、テストケース生成プログラムおよびテストケース生成装置 |
WO2024176363A1 (ja) * | 2023-02-21 | 2024-08-29 | オーティファイ株式会社 | テスト支援システム、テスト支援方法及びプログラム |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9454464B2 (en) * | 2012-08-08 | 2016-09-27 | Cbs Interactive Inc. | Application development center testing system |
KR20150029184A (ko) * | 2013-09-09 | 2015-03-18 | 삼성에스디에스 주식회사 | 애플리케이션을 테스트하는 기법 |
US9304891B1 (en) * | 2013-11-04 | 2016-04-05 | Intuit Inc. | Load-test generator |
US9237204B1 (en) * | 2014-07-30 | 2016-01-12 | Iboss, Inc. | Web redirection for caching |
US10715687B2 (en) * | 2017-05-29 | 2020-07-14 | Ricoh Company, Ltd. | Information processing system, information processing apparatus, and information processing method for testing a series of processes of one or more applications |
US10409711B2 (en) * | 2017-06-12 | 2019-09-10 | International Business Machines Corporation | Automatically running tests against WEB APIs based on specifications |
US10838850B2 (en) | 2017-11-27 | 2020-11-17 | Accenture Global Solutions Limited | Robotic regression testing for smart devices |
CN109634866A (zh) * | 2018-12-14 | 2019-04-16 | 泰康保险集团股份有限公司 | 数据测试方法、装置、介质及电子设备 |
FR3090928B1 (fr) * | 2018-12-21 | 2021-07-23 | Amadeus Sas | Systeme de gestion de donnes synchronise et procede |
CN109739758B (zh) * | 2018-12-28 | 2022-02-01 | 北京云测信息技术有限公司 | 测试用例转换方法和装置 |
US11354228B1 (en) * | 2021-03-09 | 2022-06-07 | Sap Se | Automated exploratory testing using machine learning |
CN116304399B (zh) * | 2023-05-19 | 2023-08-11 | 建信金融科技有限责任公司 | 测试案例的可视化处理方法、装置及系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000112784A (ja) * | 1998-09-30 | 2000-04-21 | Hitachi Software Eng Co Ltd | プログラムテスト支援装置及びプログラムテスト支援プログラムを記録した記録媒体 |
JP2003044318A (ja) * | 2001-08-02 | 2003-02-14 | Fujitsu Ltd | テスト支援プログラムおよびテスト支援方法 |
JP2003091431A (ja) * | 2001-09-19 | 2003-03-28 | Hitachi Ltd | テストシナリオ選択実行システム、方法、およびプログラム |
JP2004118403A (ja) * | 2002-09-25 | 2004-04-15 | Fujitsu Ltd | ソフトウェア機能テストデータ生成プログラムおよびソフトウェア機能テストデータ生成方法 |
JP2009075921A (ja) * | 2007-09-21 | 2009-04-09 | Hitachi Software Eng Co Ltd | Webページテスト自動化装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102511037A (zh) * | 2010-08-10 | 2012-06-20 | 国际商业机器公司 | 用于自动测试web应用的方法和系统 |
-
2010
- 2010-07-27 US US13/811,756 patent/US20130191814A1/en not_active Abandoned
- 2010-07-27 WO PCT/JP2010/062621 patent/WO2012014284A1/ja active Application Filing
- 2010-07-27 JP JP2012526233A patent/JPWO2012014284A1/ja active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000112784A (ja) * | 1998-09-30 | 2000-04-21 | Hitachi Software Eng Co Ltd | プログラムテスト支援装置及びプログラムテスト支援プログラムを記録した記録媒体 |
JP2003044318A (ja) * | 2001-08-02 | 2003-02-14 | Fujitsu Ltd | テスト支援プログラムおよびテスト支援方法 |
JP2003091431A (ja) * | 2001-09-19 | 2003-03-28 | Hitachi Ltd | テストシナリオ選択実行システム、方法、およびプログラム |
JP2004118403A (ja) * | 2002-09-25 | 2004-04-15 | Fujitsu Ltd | ソフトウェア機能テストデータ生成プログラムおよびソフトウェア機能テストデータ生成方法 |
JP2009075921A (ja) * | 2007-09-21 | 2009-04-09 | Hitachi Software Eng Co Ltd | Webページテスト自動化装置 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015035216A (ja) * | 2013-08-07 | 2015-02-19 | 飛捜股▲ふん▼有限公司 | アプリケーションプログラムサーチの方法及びそのシステム |
JP2017010180A (ja) * | 2015-06-19 | 2017-01-12 | 株式会社日立製作所 | テスト支援システムおよびテスト支援方法 |
JP2017207959A (ja) * | 2016-05-19 | 2017-11-24 | 富士通株式会社 | テストケース生成方法、テストケース生成プログラムおよびテストケース生成装置 |
WO2024176363A1 (ja) * | 2023-02-21 | 2024-08-29 | オーティファイ株式会社 | テスト支援システム、テスト支援方法及びプログラム |
Also Published As
Publication number | Publication date |
---|---|
US20130191814A1 (en) | 2013-07-25 |
JPWO2012014284A1 (ja) | 2013-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012014284A1 (ja) | テストシナリオ生成方法、テストシナリオ生成システム、及び、テストシナリオ生成プログラム | |
US7334220B2 (en) | Data driven test automation of web sites and web services | |
US9118549B2 (en) | Systems and methods for context management | |
JP4845153B2 (ja) | 複数のクライアントを用いた分散環境で更新作業のコンフリクトを回避するシステム、方法、サーバ及びコンピュータプログラム | |
US8839107B2 (en) | Context based script generation | |
US11635974B2 (en) | Providing a different configuration of added functionality for each of the stages of predeployment, deployment, and post deployment using a layer of abstraction | |
US8301720B1 (en) | Method and system to collect and communicate problem context in XML-based distributed applications | |
US20060265475A9 (en) | Testing web services as components | |
JP2008117093A (ja) | ユーザ操作記録・再現方法及び装置 | |
US20080126390A1 (en) | Efficient stress testing of a service oriented architecture based application | |
US20070168971A1 (en) | Multi-tiered model-based application testing | |
JP5794107B2 (ja) | 分散型コンピュータシステム、インタラクティブ型クライアント−サーバ・アプリケーションのベリファイ方法、及び製品 | |
US20070073724A1 (en) | System and method for automatic or semi-automatic software integration | |
JP5622647B2 (ja) | シナリオ生成装置およびシナリオ生成プログラム | |
JP4023803B2 (ja) | ウェブアプリケーション開発支援装置、データ処理方法及びプログラム | |
JP2012104108A (ja) | 対話的クライアント‐サーバー・アプリケーションのステートレスな分散式並列クロール技法 | |
JP5463717B2 (ja) | アプリケーションテスト生成プログラム、アプリケーションテスト生成方法及びアプリケーションテスト装置 | |
US20130198333A1 (en) | Method and device for recording and reproducing web operation | |
US20220229767A1 (en) | Test script generation apparatus, test script generation method and program | |
JP4672532B2 (ja) | オペレータ擬似システムおよびオペレータ擬似方法 | |
WO2020088087A1 (zh) | 用于应用程序接口api测试的方法和设备 | |
US9374437B2 (en) | Schema validation proxy | |
JP2008293382A (ja) | テスト仕様自動生成方式 | |
US20220244975A1 (en) | Method and system for generating natural language content from recordings of actions performed to execute workflows in an application | |
US12001324B2 (en) | Operation pattern generation apparatus, operation pattern generation method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 10855294 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2012526233 Country of ref document: JP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 13811756 Country of ref document: US |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 10855294 Country of ref document: EP Kind code of ref document: A1 |