Font Size: a A A

Behavior Analysis In Scripting Of Web Function Test Based On Selenium Script

Posted on:2022-02-05Degree:MasterType:Thesis
Country:ChinaCandidate:R PanFull Text:PDF
GTID:2518306557968319Subject:Computer technology
Abstract/Summary:PDF Full Text Request
As one of the recommended standards of W3C,the Selenium tool has become the mainstream tool for Web application testing.People can call API in Selenium when developing Web automation test code.The National Undergraduate Software Testing Competitions includes Web application testing competition.Since 2018,players need to perform Web functional testing by using Selenium.Up to this moment,we have collected 833 functional test codes submitted by contestants.After automated analysis and manual review of the competition data in 2018 and 2019,we found that many player lost points in Web function testing.It means that the Selenium tool is difficult to use.Therefore,we extracted and analyzed the Web function test code submitted by the players in the competition.The research results can help participating students,instructors and relevant testers to improve the stability and efficiency of the code in the Selenium-based Web functional testing.The research results of this paper mainly include:? This paper summarizes the main reasons of losing points in selenium test code submitted by contestants.It is found that frame switching errors,insufficient waiting time,and page element positioning errors are the main reasons for the failure of the Selenium-based Web function test code.? This paper analyzes the error distribution of high and low segments.Statistics show that the main errors of high-segment players are insufficient waiting time of WebDriver and nested positioning failure;the main errors of low-segment contestants are frame switching positioning failure and inaccurate element positioning method.? This paper analyzes the page element locator used by the contestants in the Selenium test code,summarizes the bad usage style of the page element locator,and found that the Xpath locator is often abused.This paper analyzes the waiting method used by contestants in the Selenium test code,summarized the bad use style of the waiting method,and finds that forced waiting is often abused.? This paper analyzes the correlation between Xpath locator and forced waiting and performance.The correlation coefficient indicates that the two bad styles are only moderately or weakly correlated with the performance of contestants most of the time,which indicates that there is still a lot of room for contestants to improve their ability to use Selenium.
Keywords/Search Tags:Web testing, functional testing, Selenium script, Xpath locator, forced wait
PDF Full Text Request
Related items