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

Source Code Analysis of QTP automatic example-- ClearMainWindow

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Overview:

This series of articles is mainly used to study and analyze the source code analysis of QTP automatic examples, and to learn its coding mode and code structure.

The Action involved is divided into three parts

1. Shared Action

two。 Functional Action, which generally calls the shared Action

3. Functional function

Action:FlightLib1

The following is a specific analysis of ClearMainWindow (functions and benefits, in case the previous window is open at run time, resulting in an error during the return visit, so that the code is more robust)

Purpose:This Action clears the main window and Does not save any information in the window

Input Params:None

Output Params:None

Line 8: 9, if the Open Order interface is already open, click cancel to close it

Line 12: 16, click new order to clear the records that may have been entered before

Line 18: 22, Checking to see if message window appears. If so, function presses "No" button and doesn't save the changes (such as the error message in the figure)

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