CN109460360A - A method of enhancing IOS automatic test input stability and compatibility - Google Patents
A method of enhancing IOS automatic test input stability and compatibility Download PDFInfo
- Publication number
- CN109460360A CN109460360A CN201811274036.3A CN201811274036A CN109460360A CN 109460360 A CN109460360 A CN 109460360A CN 201811274036 A CN201811274036 A CN 201811274036A CN 109460360 A CN109460360 A CN 109460360A
- Authority
- CN
- China
- Prior art keywords
- input
- input frame
- frame
- ios
- emptied
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses the methods of a kind of enhancing IOS automatic test input stability and compatibility, in method, IOS system version is first judged when starting input, judge that IOS system version is above or is equal to 10.3,10.3 are also less than, different according to system version are operated using different method progress null clear operations and input automatically, it is ensured that no matter which kind of type IOS input frame is, the input operation in automatic test can be stably accomplished, thus the IOS system of compatible various different editions.
Description
Technical field
This application involves cell phone system the field of test technology more particularly to a kind of input of enhancing IOS automatic test to stablize
Property and compatibility method.
Background technique
In IOS automatic test course, input operation is inevitable, however because of the difference of IOS system version,
The type of app input frame is different (such as having primary, web, regular length, telescopic), will cause input it is invalid or
Person empties the failure of input frame content, and IOS itself API can not be solved these problems, and exploitation is a set of to can effectively solve the problem that this is asked
The method program of topic is very necessary.
Summary of the invention
In view of the deficiencies of the prior art, the present invention is intended to provide a kind of enhancing IOS automatic test input stability and simultaneous
The method of capacitive, it is ensured that no matter which kind of type IOS input frame is, can be stably accomplished automatic in automatic test
Input operation, thus the IOS system of compatible various different editions.
To achieve the goals above, the present invention adopts the following technical scheme:
A method of enhancing IOS automatic test input stability and compatibility include the following steps:
S1, IOS system version is first judged when starting input, judge that IOS system version is above or is equal to 10.3, still
Lower than 10.3;
S2, when the version of IOS system be greater than or equal to 10.3 when: empty the content of input frame if necessary, then directly lead to
It crosses the mode to set property and empties input frame, then text input to input frame directly by way of setting property
In;If you do not need to empty the content of input frame, then directly by way of setting property text input into input frame;
When the version of IOS system is lower than 10.3: emptying the content of input frame if necessary, need by inputting cancel (CANCL)
The mode of symbol is emptied, and judges whether input frame has emptied after emptying every time, if do not emptied, again by input
The mode for deleting character is emptied and judges whether input frame has emptied, and so circulation is until input frame empties or reaches clear
The upper limit of do-nothing operation number, input frame are entered text into using the mode of single character into input frame after emptying;Such as
Fruit does not need to empty the content of input frame, and the mode for the single character that then be used directly is entered text into input frame.
Further, in step S2, in the input frame null clear operation when the version of IOS system is lower than 10.3, when each
Judgement discovery input frame does not empty after emptying, primary with regard to counting;When number is more than or equal to 2 times and when less than 4 times, input
3/4 position that the click location of frame can be moved to input frame is emptied again;When number is more than or equal to 4 times and is less than or equal to 6
When secondary, it will click on position if finding input frame by coordinate by the position that coordinate searches input frame and be moved to input
The end of frame is emptied again, if searched by coordinate less than input frame, is searched input frame by focus, is such as passed through coke
Point finds input frame, will click on position and is moved to the end of input frame and is emptied again, if by focus lookup less than
Input frame then inputs failure and terminates to input;When number is greater than 6 times, input failure simultaneously terminates to input.
The beneficial effects of the present invention are: automated input methodology program of the invention is used in IOS automatic test, it can
To guarantee that no matter which kind of type IOS input frame is, can stably accomplish in automatic test and automatically enter operation, thus
The IOS system of compatible various different editions.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram in the embodiment of the present invention.
Specific embodiment
Below with reference to attached drawing, the invention will be further described, it should be noted that following embodiment is with this technology
Premised on scheme, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to this
Embodiment.
As shown in Figure 1, a kind of method of enhancing IOS automatic test input stability and compatibility, includes the following steps:
S1, IOS system version is first judged when starting input, judge that IOS system version is above or is equal to 10.3, still
Lower than 10.3;
S2, when the version of IOS system be greater than or equal to 10.3 when: empty the content of input frame if necessary, then directly lead to
It crosses the mode to set property and empties input frame, then text input to input frame directly by way of setting property
In;If you do not need to empty the content of input frame, then directly by way of setting property text input into input frame;
When the version of IOS system is lower than 10.3: emptying the content of input frame if necessary, need by inputting cancel (CANCL)
The mode of symbol is emptied, and judges whether input frame has emptied after emptying every time, if do not emptied, again by input
The mode for deleting character is emptied and judges whether input frame has emptied, and so circulation is until input frame empties or reaches clear
The upper limit of do-nothing operation number, input frame are entered text into using the mode of single character into input frame after emptying;Such as
Fruit does not need to empty the content of input frame, and the mode for the single character that then be used directly is entered text into input frame.Input is deleted
Emptying mode and may not once be emptied when text is more in input frame except character, it is therefore desirable to move in circles
It is multiple progress to guarantee that input frame has emptied really.
Further, in step S2, in the input frame null clear operation when the version of IOS system is lower than 10.3, when each
Judgement discovery input frame does not empty after emptying, primary with regard to counting;When number is more than or equal to 2 times and when less than 4 times, input
3/4 position that the click location of frame can be moved to input frame is emptied again;When number is more than or equal to 4 times and is less than or equal to 6
When secondary, it will click on position if finding input frame by coordinate by the position that coordinate searches input frame and be moved to input
The end of frame is emptied again, if searched by coordinate less than input frame, is searched input frame by focus, is such as passed through coke
Point finds input frame, will click on position and is moved to the end of input frame and is emptied again, if by focus lookup less than
Input frame then inputs failure and terminates to input;When number is greater than 6 times, input failure simultaneously terminates to input.
For those skilled in the art, it can be provided various corresponding according to above technical solution and design
Change and modification, and all these change and modification, should be construed as being included within the scope of protection of the claims of the present invention.
Claims (2)
1. a kind of method of enhancing IOS automatic test input stability and compatibility, which comprises the steps of:
S1, IOS system version is first judged when starting input, judge that IOS system version is above or is equal to 10.3, again below
10.3;
S2, when the version of IOS system is greater than or equal to 10.3: empty the content of input frame if necessary, then directly by setting
The mode for setting attribute value empties input frame, then directly by way of setting property text input into input frame;Such as
Fruit does not need to empty the content of input frame, then directly by way of setting property text input into input frame;
When the version of IOS system is lower than 10.3: emptying the content of input frame if necessary, need to delete character by input
Mode is emptied, and judges whether input frame has emptied after emptying every time, if do not emptied, is deleted again by input
The mode of character is emptied and judges whether input frame has emptied, and so circulation is until input frame empties or reaches and empties behaviour
Make the upper limit of number, input frame is entered text into using the mode of single character into input frame after emptying;If no
The mode of the content for needing to empty input frame, the single character that then be used directly is entered text into input frame.
2. the method for enhancing IOS automatic test input stability and compatibility according to claim 1, feature exist
In, in step S2, in the input frame null clear operation when the version of IOS system is lower than 10.3, judgement discovery after emptying every time
Input frame does not empty, primary with regard to counting;When number is more than or equal to 2 times and when less than 4 times, the click location meeting of input frame
3/4 position for being moved to input frame is emptied again;When number is more than or equal to 4 times and is less than or equal to 6 times, looked by coordinate
Look for the position of input frame, if finding input frame by coordinate, will click on position be moved to the end of input frame again into
Row empties, if searched by coordinate less than input frame, searches input frame by focus, such as finds input by focus
Frame, will click on position and is moved to the end of input frame and emptied again, if searched by focus less than input frame, input
Fail and terminates to input;When number is greater than 6 times, input failure simultaneously terminates to input.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811274036.3A CN109460360B (en) | 2018-10-29 | 2018-10-29 | Method for enhancing input stability and compatibility of IOS (input operating System) automatic test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811274036.3A CN109460360B (en) | 2018-10-29 | 2018-10-29 | Method for enhancing input stability and compatibility of IOS (input operating System) automatic test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109460360A true CN109460360A (en) | 2019-03-12 |
CN109460360B CN109460360B (en) | 2021-10-15 |
Family
ID=65608820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811274036.3A Active CN109460360B (en) | 2018-10-29 | 2018-10-29 | Method for enhancing input stability and compatibility of IOS (input operating System) automatic test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109460360B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113325984A (en) * | 2021-06-30 | 2021-08-31 | 中国平安人寿保险股份有限公司 | Method and device for adapting mobile terminal page layout and computer equipment |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100042637A1 (en) * | 1993-11-16 | 2010-02-18 | Masashi Tsuchida | Method and system of database divisional management for parallel database system |
CN101673199A (en) * | 2009-08-10 | 2010-03-17 | 厦门敏讯信息技术股份有限公司 | Terminal parameter configuration server and automatic generating method of software interface thereof |
CN103399815A (en) * | 2013-07-16 | 2013-11-20 | 广东欧珀移动通信有限公司 | Automated testing method and automated testing device |
CN103902057A (en) * | 2014-03-31 | 2014-07-02 | 北京搜狗科技发展有限公司 | Webpage input method and device for mobile terminal device |
CN104063306A (en) * | 2013-03-18 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Automatic login method, device and system in intelligent terminal software testing |
US20140316813A1 (en) * | 2013-04-23 | 2014-10-23 | James D. Bauer | Healthcare Toolkit |
CN104346068A (en) * | 2014-02-20 | 2015-02-11 | 北京齐尔布莱特科技有限公司 | Digital input method and digital input control part |
CN104571589A (en) * | 2014-12-31 | 2015-04-29 | 广东欧珀移动通信有限公司 | Input method based data processing method and device |
CN104932980A (en) * | 2015-06-30 | 2015-09-23 | 北京奇虎科技有限公司 | Automatic software test method and device |
EP3043258A1 (en) * | 2013-09-05 | 2016-07-13 | Peking University Founder Group Co., Ltd | iOS APPLICATION AUTOMATIC COMPILATION METHOD AND SYSTEM |
CN105844180A (en) * | 2016-03-15 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Starting method and device of input method keyboard |
CN106873862A (en) * | 2016-08-23 | 2017-06-20 | 阿里巴巴集团控股有限公司 | A kind of data inputting method and device |
CN107632829A (en) * | 2017-08-03 | 2018-01-26 | 大唐网络有限公司 | A kind of App automation continuous integration systems and method based under iOS system |
CN108388428A (en) * | 2018-01-23 | 2018-08-10 | 北京五八信息技术有限公司 | Switch method, apparatus, electronic equipment and the storage medium of application software icon |
-
2018
- 2018-10-29 CN CN201811274036.3A patent/CN109460360B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100042637A1 (en) * | 1993-11-16 | 2010-02-18 | Masashi Tsuchida | Method and system of database divisional management for parallel database system |
CN101673199A (en) * | 2009-08-10 | 2010-03-17 | 厦门敏讯信息技术股份有限公司 | Terminal parameter configuration server and automatic generating method of software interface thereof |
CN104063306A (en) * | 2013-03-18 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Automatic login method, device and system in intelligent terminal software testing |
US20140316813A1 (en) * | 2013-04-23 | 2014-10-23 | James D. Bauer | Healthcare Toolkit |
CN103399815A (en) * | 2013-07-16 | 2013-11-20 | 广东欧珀移动通信有限公司 | Automated testing method and automated testing device |
EP3043258A1 (en) * | 2013-09-05 | 2016-07-13 | Peking University Founder Group Co., Ltd | iOS APPLICATION AUTOMATIC COMPILATION METHOD AND SYSTEM |
CN104346068A (en) * | 2014-02-20 | 2015-02-11 | 北京齐尔布莱特科技有限公司 | Digital input method and digital input control part |
CN103902057A (en) * | 2014-03-31 | 2014-07-02 | 北京搜狗科技发展有限公司 | Webpage input method and device for mobile terminal device |
CN104571589A (en) * | 2014-12-31 | 2015-04-29 | 广东欧珀移动通信有限公司 | Input method based data processing method and device |
CN104932980A (en) * | 2015-06-30 | 2015-09-23 | 北京奇虎科技有限公司 | Automatic software test method and device |
CN105844180A (en) * | 2016-03-15 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Starting method and device of input method keyboard |
CN106873862A (en) * | 2016-08-23 | 2017-06-20 | 阿里巴巴集团控股有限公司 | A kind of data inputting method and device |
CN107632829A (en) * | 2017-08-03 | 2018-01-26 | 大唐网络有限公司 | A kind of App automation continuous integration systems and method based under iOS system |
CN108388428A (en) * | 2018-01-23 | 2018-08-10 | 北京五八信息技术有限公司 | Switch method, apparatus, electronic equipment and the storage medium of application software icon |
Non-Patent Citations (2)
Title |
---|
HPING、兔SIR等: ""IOS input输入框按删除键删除字符,删除最后一个字符时,概率性出现光标前面多余一个字符"", 《HTTPS://SEGMENTFAULT.COM/Q/1010000008029491》 * |
二的拾次方: "iOS 输入框一键清空内容", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_13228CCB00102X5WY.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113325984A (en) * | 2021-06-30 | 2021-08-31 | 中国平安人寿保险股份有限公司 | Method and device for adapting mobile terminal page layout and computer equipment |
CN113325984B (en) * | 2021-06-30 | 2022-11-25 | 中国平安人寿保险股份有限公司 | Mobile terminal page layout adapting method and device and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109460360B (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106033393B (en) | A kind of applied program testing method and system and mobile terminal | |
CN104317624B (en) | Data assembly method based on plug-in unit treatment | |
CN103425771B (en) | The method for digging of a kind of data regular expression and device | |
CN106126543B (en) | The model conversion and data migration method of a kind of relevant database to MongoDB | |
CN107800562B (en) | A kind of method for configuring route and device of view file | |
CN103019691B (en) | The method for transformation of a kind of ETL job relations figure and realize system | |
CN109033598B (en) | Method for setting elevations in batches based on Revit | |
CN105681134A (en) | General multiple serial port communication protocol detection and identification method | |
KR101394874B1 (en) | Device and method implementing for particular function based on writing | |
CN103984806B (en) | Imaging generation method for input virtual terminal of intelligent substation SCD (System Configuration Description) | |
CN106484892A (en) | Data manipulation method and device | |
US20190005057A1 (en) | Methods and Devices for File Folder Path Identification and File Folder Cleaning | |
CN104090669A (en) | Input method editing method and device | |
CN109460360A (en) | A method of enhancing IOS automatic test input stability and compatibility | |
CN102945113A (en) | Method for replacing character by input method and client | |
CN105138329B (en) | A kind of method for changing in-orbit task | |
CN108694242A (en) | Node checks method, equipment, storage medium and device based on DOM | |
CN105808748A (en) | MIB (Management Information Base) version contrast method and device | |
CN103246426B (en) | It is a kind of to realize the method and device handled multiple icons | |
CN105786939A (en) | Memory database optimization method and apparatus | |
CN115328366B (en) | Tens of millions of tree node searching and displaying method and system based on full path calculation | |
CN103024092B (en) | Method, system and device for blocking domain | |
CN108399093B (en) | Node processing method and device and electronic equipment | |
CN104239047B (en) | The method and its device of a kind of information gathering | |
CN109684770A (en) | The inspection method and relevant apparatus of difference through hole in a kind of PCB |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |