The invention relates to the technical field of
computer software testing, in particular to an AI-based webpage background
automatic testing method and
system.The method comprises the steps that a target webpage address, a login account and
test target description input by a user are obtained, a decryption
password corresponding to the login account is read from an
encryption database, and meanwhile a browser driver is initialized; accessing a target webpage, adjusting a view to ensure that the webpage is completely displayed, monitoring a loading state, and retrying or reporting an error if loading is overtime; detecting a webpage login area, automatically filling an account
password, and detecting a login state; matching functional navigation according to the
test target description, if the functional navigation is not found, rolling a navigation view to unfold hidden items, and skipping to a target page after a target menu is positioned; according to the method, the target page data is collected, the target page data is analyzed through the multi-mode AI model in combination with the
test target description, and the
test report is generated. The method does not need scripts, adapts to page changes, is high in flexibility, and reduces the test cost and improves the
test efficiency through AI visual judgment.