Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to automate wap page testing

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to automate the testing of wap pages. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Premise: the mobile phone has installed Google browser, can debug webview remotely through Google, and search for page elements.

Add api:

Main url: used for jump testing in the same place for each use case

Url: used for different use cases to jump from different web addresses

Action event: click,input-value,check

Prompt box: the prompt box of the alter solution web page, such as the Baidu prompt box in the following figure

For the permission prompt box, the wap page cannot be solved temporarily, as shown below.

Generally speaking, the wap pages we test generally do not get the relevant permissions, so there is basically no problem.

Use case configuration:

Before,action,looptimes,timespacing,actionGap,message, repeatTag,actionRepeat,count only need these parameters.

The use case test on the overall wap page is simple, and the details are as follows: (due to the one-page display, the format will be adjusted, it will be relatively irregular)

Running commands has also been streamlined.

Run the command:

Java-jar jar package-c script name-all-- chrome

-all represents the connected device-- chrome represents switching to browser mode

Currently, browser mode does not support traversal, but only use case testing. Currently, traversal of wap pages is of little significance to ensure that the function prevails.

So it can run. As shown below:

The above is the editor for you to share how to automate the testing of wap pages, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report