Web application test case automatic generation method and system based on reinforcement learning
The invention relates to a Web application test case automatic generation method and system based on reinforcement learning, and the method comprises the steps: extracting a state from a webpage, and outputting the extracted state; identifying an interactive element in the webpage, generating an act...
Gespeichert in:
Hauptverfasser: | , , , , , , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a Web application test case automatic generation method and system based on reinforcement learning, and the method comprises the steps: extracting a state from a webpage, and outputting the extracted state; identifying an interactive element in the webpage, generating an action of accessing the interactive element, and outputting the generated action; identifying whether the state is a known state or not, and constructing a state diagram which takes the state as a node and takes a transfer action between the states as an edge; calculating a reward according to the state and the action; and training an action selection strategy by utilizing a reinforcement learning algorithm, selecting an action according to the action selection strategy, executing the action on the Web application to enable the Web application to jump to another webpage, and storing an action sequence executed on the Web application as a test case. The test case can be automatically provided for the target Web applica |
---|