Exploratory test response method and device, computer equipment, storage medium
An exploratory, computer program technology, applied in the computer field, can solve problems such as undiscovered solutions, unguaranteed test quality, and easy fatigue, so as to reduce the possibility of duplication of labor and improve the effect of test coverage
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer, a server, or a similar computing device. Take running on a computer as an example,figure 1 It is a block diagram of the hardware structure of an exploratory test response computer in the embodiment of the present invention. Such as figure 1 As shown, computer 10 may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data. Optionally, the above-mentioned computer can also be A transmission device 106 for communication functions and an input and output device 108 are included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and it does not limit the structure of the above-mentioned compute...
Embodiment 2
[0087]在本实施例中还提供了一种探索性测试的响应装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语"模块”可以实现预定功能的软件和 / 或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
[0088]图6是根据本发明实施例的探索性测试的响应装置的结构框图,如图6所示,该装置包括:
[0089]获取模块60,用于获取测试对象的界面元素信息,并将所述界面元素信息存储在本地数据库;
[0090]生成模块62,用于响应针对界面元素的探索性测试操作,生成所述界面元素的测试记录;
[0091]显示模块64,用于根据所述测试记录显示所述测试对象的测试状态信息。
[0092]可选的,所述获取模块包括:解析单元,用于解析所述测试对象的超文本标记语言HTML源码;爬取单元,用于爬取所述HTML源码中的页面元素,生成元素信息表和元素关系表。
[0093]可选的,所述爬取单元包括:第一遍历子单元,用于使用广度优先搜索算法遍历所述HTML源码中主页面的第一元素信息;第二遍历子单元,用于在探索到所述主页面还包括关联页面时,遍历所述关联页面上的第二元素信息,其中,所述关联页面包括子页面和兄弟页面。
[0094]可选的,所述生成模块包括:记录单元,用于监测针对目标界面元素的探索性测试操作,记录所述探索性测试操作的测试信息,其中,所述测试信息包括:测试状态标识和至少以下之一:测试时间、累计测试次数、关联元素的元素名称、测试账号、测试结果,其中,所述测试状态标识用于表征所述目标界面元素是否已经执行过探索性测试;更新单元,用于在所述目标界面元素的测试记录中更新所述测试信息。
[0095]可选的,所述生成模块包括:选择单元,用于根据用户指令选择待测试的测试对象,其中,所述测试对象包括界面元素和与所述界面元素相关的关联代码;读取单元,用于读取所述测试对象;测试单元,用于将所述测试对象转移到沙箱环境中进行测试,得到测试结果;或者,在所述测试对象的全局代码中删除所述测试对象之外的代码,并对所述测试对象进行测试,得到测试结果;生成单元,用于根据所述测试结果生成所述界面元素的测试记录。
[0096]可选的,所述显示模块包括:读取单元,用于响应驻留在一个或多个指定界面元素的悬停操作,读取所述指定界面元素的测试记录中的测试信...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com