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-- OpenOrder

2025-01-18 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 OpenOrder

Purpose:This Action takes in as it's input parameter an order number.it opens a flight reservation

According to this number, open flight reservation via order number

Input Params:Parameter ("OrderNumber")

Output Params:None

Line 11: 16, when Flight Reservation is active state, get order no. Order no through the GetROProperty method. If empty, give 0

Code 19: 21, which converts the obtained value to an integer (I don't quite understand, why is it written here)?

Line 24, open open order

Line 28: 31, if the "Open Order" interface is already open (exist (1) script looks for one minute Open Order for 1 minute), check On.

Line 34: 35, enter the previously obtained value into Open Order num. In field

Code 344th 45 lines, if through Order No. The record of the query is not available and will be returned to the main interface.

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