CN105550102B - A kind of Weather information test method and system - Google Patents

A kind of Weather information test method and system Download PDF

Info

Publication number
CN105550102B
CN105550102B CN201510882696.XA CN201510882696A CN105550102B CN 105550102 B CN105550102 B CN 105550102B CN 201510882696 A CN201510882696 A CN 201510882696A CN 105550102 B CN105550102 B CN 105550102B
Authority
CN
China
Prior art keywords
test
weather
information
test data
data file
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.)
Active
Application number
CN201510882696.XA
Other languages
Chinese (zh)
Other versions
CN105550102A (en
Inventor
曾梦良
曾智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510882696.XA priority Critical patent/CN105550102B/en
Publication of CN105550102A publication Critical patent/CN105550102A/en
Application granted granted Critical
Publication of CN105550102B publication Critical patent/CN105550102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of Weather information test method and systems, wherein test data file includes more than two area informations that need to be tested this method comprises: obtaining preset test data file;According to the area information in preset order read test data file, and read corresponding Weather information;The reading result of Weather information is tested, corresponding test result is generated and is saved, the step of executing according to preset order reading area information is triggered, until area information whole read test, and test result is saved in test data file.The embodiment of the present invention is configured in advance due to the data of required test, therefore the area information in test data file can be read out automatically, so as to which the corresponding Weather information of area information is read out and is tested, test process is fully automated, it is not required to manual intervention, the accuracy rate and testing efficiency of test are improved, and test result can be directly presented in test data file, be simple and efficient.

Description

A kind of Weather information test method and system
Technical field
The invention belongs to field of communication technology more particularly to a kind of Weather information test methods and system.
Background technique
With the rapid development of internet, electronic communication, the application type in terminal (such as mobile phone) is also more and more, Song application and instant messaging application are listened in such as game application, bring many convenience to people's life.
Weather class App (application program, Application) is one of application indispensable in mobile phone at present, in consideration of it, The weather application of oneself built-in manufacturer is generally all understood by cell phone manufacturer.Because user using built-in weather application occur obtaining less than The case where weather data, can seriously affect brand image, therefore that weather application can be all tested before factory is alive for general mobile phone Can most of place within the scope of boundary get weather data.The test mode taken at present is tester manually by needs The city of test is input in weather application, then updates weather data, sees the weather data that whether can get the ground.
In the research and practice process to the prior art, it was found by the inventors of the present invention that needing city to be tested due to working as When city is more, input operation is taken time and effort, and testing efficiency is not high, and the city manually entered is difficult comprehensively, to lead Cause the accuracy rate of test not high.
Summary of the invention
The purpose of the present invention is to provide a kind of Weather information test method and systems, it is intended to it is quasi- to improve Weather information test True rate and testing efficiency.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
A kind of Weather information test method, including:
Preset test data file is obtained, the test data file includes more than two area informations that need to be tested;
The area information in the test data file is read according to preset order;
Read the corresponding Weather information got according to the area information;
The reading result of Weather information is tested, corresponding test result is generated and is saved, is pressed described in triggering execution The step of reading the area information in the test data file according to preset order, until the region in the test data file Information whole read test, and corresponding test result is saved in the test data file.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of Weather information test macro, including:
Acquiring unit, for obtaining preset test data file, the test data file includes that two or more needs to survey The area information of examination;
Reading unit is read for reading the area information in the test data file according to preset order according to institute State the corresponding Weather information that area information is got;
Test cell is tested for the reading result to Weather information, is generated corresponding test result and is saved;
Trigger unit is read in the test data file for triggering the reading unit execution according to preset order The step of area information, until the area information whole read test in the test data file, and knot will be tested accordingly Fruit is saved in the test data file.
Compared with the existing technology, the embodiment of the present invention, the area information tested needed for collecting constitute test data file, from Area information in dynamic read test data file, and the corresponding Weather information got according to the area information is read, it is right The reading result of Weather information is tested, and is written in the test report of test data file, until test data text Area information whole read test in part;It, can be automatically to test number since the data of required test are configured in advance It is read out according to the area information in file, so as to which the corresponding Weather information of area information is read out and is tested, surveys Examination process is fully automated, and is not required to manual intervention, is improved the accuracy rate and testing efficiency of test, and test result can be direct It presents, is simple and efficient in test data file.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And other beneficial effects are apparent.
Fig. 1 is the flow diagram for the Weather information test method that first embodiment of the invention provides;
Fig. 2 is the flow diagram for the Weather information test method that second embodiment of the invention provides;
Fig. 3 a is the structural schematic diagram for the Weather information test macro that third embodiment of the invention provides;
Fig. 3 b is another structural schematic diagram for the Weather information test macro that third embodiment of the invention provides.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the step as performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
Term as used herein " module " can regard the software object to execute in the arithmetic system as.It is as described herein Different components, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And system as described herein and side Method is preferably implemented in the form of software, can also be implemented on hardware certainly, within that scope of the present invention.
It will be described in detail respectively below.
First embodiment
In the present embodiment, it will be described from the angle of Weather information test macro, Weather information test macro tool Body can integrate in the terminal, which can have storage element and be equipped with for notebook computer, tablet PC, mobile phone etc. Microprocessor and with operational capability terminating machine.
A kind of Weather information test method, comprising: obtain preset test data file, test data file includes two The area information of test is needed above;According to the area information in preset order read test data file;Reading is believed according to region The corresponding Weather information got is ceased, the reading result of Weather information is tested, corresponding test result is generated and protects It deposits, the step of triggering is executed according to area information in preset order read test data file, until in test data file Area information whole read test, and corresponding test result is saved in test data file.
Referring to Fig. 1, Fig. 1 is the flow diagram for the Weather information test method that first embodiment of the invention provides.Institute The method of stating includes:
In step s101, preset test data file is obtained, test data file includes that two or more need to test Area information.
In step s 102, according to the area information in preset order read test data file.
In step s 103, the corresponding Weather information got according to area information is read.
Wherein, the step S101 to step S103 can specifically:
In the embodiment of the present invention, before obtaining preset test data file, test data file need to be pre-established, it can It is specific as follows:
(1) collecting zone information;
(2) area information is saved according to default preservation format, generates test data file.
That is, need to area information to be tested be collected in advance, be actually needed test when, from test data Reading area information in file has accordingly to realize to obtain to whether there is using (may be simply referred to as weather APP) to preset weather Weather information tested.
It is understood that the area information may include city name, longitude information and latitude information, wherein city City's name saves format respective stored with longitude information, latitude information with default, for example, can be in the form of Table List to the area Domain information save, etc..
Further, it after getting test data file, needs to read the test data file according to preset order Interior area information, for example, can be successively read according to the sequence of list, it can also be according to the first alphabetical sequencing of city name Read, etc., it is not especially limited herein.
Wherein, it before reading area information, can also specifically include:
The test data file is downloaded in terminal storage;
Based on this, the area information (step S102) in the test data file is read according to preset order specifically: According to the area information in test data file in the storage of preset order reading terminals.
Further, after according to the area information in preset order read test data file, can also include:
By preset interface, the area information is sent to preset weather and obtains application, so that weather acquisition is answered Corresponding Weather information is obtained on default website with according to the area information, and saves to the weather data for obtaining application In library.
That is, the area informations such as city name are sent to weather APP, weather APP by preset interface by test APP It according to the area information received, is obtained in preset weather and collects corresponding Weather information on website, and result will be collected and protected It is stored in the database of weather APP.
Based on this, reading the corresponding Weather information (step S103) got according to the area information specifically can be with Are as follows: it is obtained in application database from the preset weather and reads corresponding Weather information.
In step S104, the reading result of Weather information is tested, corresponding test result is generated and saves.
In step s105, the step of triggering is executed according to area information in preset order read test data file, Until the area information whole read test in test data file, and corresponding test result is saved in test data file In.
Wherein, the step S104 and step S105 can specifically:
In the embodiment of the present invention, the reading result of Weather information is tested, corresponding test result is generated and saves It can be specific as follows:
It obtains in the database of application if a, testing to the weather there are the Weather information, generates test accordingly It as a result is to pass through;
If b, testing to the weather to obtain and not having the Weather information in the database of application, corresponding test is generated It as a result is not pass through;
C, the test result is saved to the test data file.
For example, test APP tests the reading result of Weather information, the database that the weather obtains application is tested In with the presence or absence of there is Weather information, if having read, represent and have the corresponding Weather information of the area information in weather APP, It is believed that the test result passes through, e.g., generates one and pass through mark.
On the contrary, being represented when testing in the database that APP test is applied to weather acquisition without the Weather information There is not the corresponding Weather information of the area information in weather APP, it is believed that the test result is not pass through, and e.g., is produced One by mark, finally, test result is saved in test data file together.
It is understood that testing APP according to the area information in preset order read test data file, when according to one The corresponding Weather information that a area information is got, and after testing the reading result of the Weather information, it is suitable according to this Sequence continues next area information in read test data file, likewise, getting Weather information, and to the Weather information It reads result to be tested, until the area information whole read test in test data file, and by corresponding test result It is saved in test data file, then it is believed that being completed to the Weather information of weather APP.
It can be seen from the above, Weather information test method provided in this embodiment, the area information tested needed for collecting is constituted Test data file, the area information in automatic read test data file, and read the phase got according to the area information The Weather information answered is tested the reading result of Weather information, and is written in the test report of test data file, until Area information whole read test in the test data file;Since the data of required test are configured in advance, Automatically the area information in test data file can be read out, so as to be carried out to the corresponding Weather information of area information It reads and test, test process is fully automated, is not required to manual intervention, improves the accuracy rate and testing efficiency of test, and Test result can be directly presented in test data file, be simple and efficient.
Second embodiment
Citing, is described in further detail by described method according to first embodiment below.
Weather information test method of the embodiment of the present invention, (test data includes city name, warp to test data needed for collecting Degree, latitude etc.), and it is saved to obtain test data file according to specified format, read survey automatically by automated procedures The middle data of data file are tried, and data are transmitted to preset day by the test interface by making an appointment with preset weather application Gas application, weather application inquire weather data to appointed website by test data, test data file are written in returned data Test report in.
Referring to Fig. 2, Fig. 2 is the flow diagram for the Weather information test method that second embodiment of the invention provides.Institute The method of stating includes:
In step s 201, automatic test app collects test data.
In the present embodiment, test data can be specially area information, including city name, longitude information and latitude information Deng, for example, can by the area information of test in need be written in Excel table and save stand-by, save format such as the following table 1 institute Show, wherein test data can accomplish once to collect, and repeatedly and entry reuses.
City name Longitude Latitude
Amsterdam 4.895168 52.37022
Rotterdam 4.481111 51.92167
Table 1
In step S202, start automatic test app.
Installation automatic test app (can referred to as test app) is simultaneously opened, the step that test app will be packaged in app The test data collected in S201 from copied in app mobile phone storage in.
It is understood that the test data collected in Excel is built in automatic test app, but for tool Scalability, need to by Excel table from copied in app mobile phone storage (sdcard) specified folder in.
Wherein, when Tool Extensions refer to that every wheel is tested in automatic test course, test app is specified from mobile phone storage Read test data in file, under this mode, if there is new test data needs to test (for example, needing to test some All cities of country), new test data need to be only added in test Excel, and imported into specified folder, be restarted Newest test Excel can be loaded into test app by test app, new without the publication of built-in testing Excel again Test app, thus enhance test app scalability.
In step S203, automatic test app presses row read test data from mobile phone storage specified folder.
For example, automatic test app gets test Excel, is then based on above-mentioned from mobile phone storage specified folder The format of table 1 reads one of test data (i.e. city name, longitude information and latitude letter by row according to the sequence of default Breath etc.).
In step S204, automatic test app is passed test data by the interface set with preset weather app Give weather app.
In step S205, weather app obtains Weather information according to test data and saves.
Wherein, the step S204 and step S205 can specifically:
For example, test app is by the interface arranged with preset weather app, by the test data read (such as certain city Longitude and latitude) weather app is transmitted to parametric form.
Further, weather app obtains corresponding Weather information to appointed website according to receiving parameter, and weather is believed Breath is written in the specified table of weather app database.
In step S206, automatic test app reads Weather information.
In step S207, automatic test app is tested result is read, and saves test result.
Wherein, the step S204 and step S205 can specifically:
For example, test app read weather app this positioned by longitude and latitude, the Weather information that is got from appointed website, It tests result is read, as judged to read in result whether there is Weather information.
Further, e.g., judge in weather APP database specify ranks data whether be null, if, be not for Null, then representing to read has Weather information in result, test result Pass, otherwise, test result Fail is completed Afterwards, test knot is written in fruit Excel.
In step S208, automatic test app judges whether that test terminates.
It can be specifically, if all testing datas in test Excel table have all been read by automatic test app It completes, then can determine that test terminates, step S209 can be performed.
Opposite, if the testing data in test Excel table does not read completion, step S203 is repeated to step S207。
In step S209, automatic test app exports test report.
To sum up, Weather information test method provided by the invention can accomplish once to collect, and multiple, entry is reused, And scalability is strong, is directly placed directly in test excel, is not needed again according to formulation format if any new test data Publication test app.Test process is fully automated, and is not required to manual intervention, and testing efficiency is high.Test result is directly in Excel It presents, Fail/Pass is very clear, is simple and efficient.
It is understood that there is no the part being described in detail in the embodiment, may refer to above with respect to Weather information test side The detailed description of method, details are not described herein again.
It can be seen from the above, Weather information test method provided in this embodiment, the area information tested needed for collecting is constituted Test data file, the area information in automatic read test data file, and read the phase got according to the area information The Weather information answered is tested the reading result of Weather information, and is written in the test report of test data file, until Area information whole read test in the test data file;Since the data of required test are configured in advance, Automatically the area information in test data file can be read out, so as to be carried out to the corresponding Weather information of area information It reads and test, test process is fully automated, is not required to manual intervention, improves the accuracy rate and testing efficiency of test, and Test result can be directly presented in test data file, be simple and efficient.
3rd embodiment
For convenient for better implementation Weather information test method provided in an embodiment of the present invention, the embodiment of the present invention is also provided A kind of system based on above-mentioned Weather information test method.Phase in the method that wherein meaning of noun is tested with above-mentioned Weather information Together, specific implementation details can be with reference to the explanation in embodiment of the method.
Fig. 3 a is please referred to, Fig. 3 a is the structural schematic diagram of Weather information test macro provided in an embodiment of the present invention, wherein The Weather information test macro can integrate in the terminal.
Weather information test macro of the present invention may include request unit 301, reading unit 302, test list Member 303 and trigger unit 304.
Wherein, acquiring unit 301, for obtaining preset test data file, the test data file includes two The area information of test is needed above;Reading unit 302, for reading the region in the test data file according to preset order Information, and read the corresponding Weather information got according to the area information.
It is understood that the area information may include city name, longitude information and latitude information, wherein city City's name saves format respective stored with longitude information, latitude information with default, for example, can be in the form of Table List to the area Domain information save, etc..
Further, it after getting test data file, needs to read the test data file according to preset order Interior area information, for example, can be successively read according to the sequence of list, it can also be according to the first alphabetical sequencing of city name Read, etc., it is not especially limited herein.
Test cell 303 is tested for the reading result to Weather information, is generated corresponding test result and is protected It deposits;Trigger unit 304 executes the area read in the test data file according to preset order for triggering the reading unit The step of domain information, until the area information whole read test in the test data file, and by corresponding test result It is saved in the test data file.
It is understood that testing APP according to the area information in preset order read test data file, when according to one The corresponding Weather information that a area information is got, and after testing the reading result of the Weather information, it is suitable according to this Sequence continues next area information in read test data file, likewise, getting Weather information, and to the Weather information It reads result to be tested, until the area information whole read test in test data file, and by corresponding test result It is saved in test data file, then it is believed that being completed to the Weather information of weather APP.
It is another structural schematic diagram of Weather information test macro provided in an embodiment of the present invention please also refer to Fig. 3 b, In the embodiment of the present invention, before obtaining preset test data file, test data file need to be pre-established, such as Fig. 3 b institute Show, the system can also include:
(1) collector unit 305 are used for collecting zone information, and the area information includes city name, longitude information and latitude Spend information;
(2) generation unit 306 generate test number for saving according to default preservation format to the area information According to file.
That is, need to area information to be tested be collected in advance, be actually needed test when, from test data Reading area information in file has accordingly to realize to obtain to whether there is using (may be simply referred to as weather APP) to preset weather Weather information tested.
Wherein, before reading area information, the system can also include: downloading storage unit 307, and being used for will be described Test data file downloads in terminal storage;
Based on this, the reading unit 302 is specifically used for according to test data file in the storage of preset order reading terminals Interior area information.
Further, after according to the area information in preset order read test data file, the system is also May include:
Transmission unit, for the area information being sent to preset weather and obtains application by preset interface, so that The weather obtains application and obtains corresponding Weather information on default website according to the area information, and saves to the day Gas obtains in application database.
That is, the area informations such as city name are sent to weather APP, weather APP by preset interface by test APP It according to the area information received, is obtained in preset weather and collects corresponding Weather information on website, and result will be collected and protected It is stored in the database of weather APP.
Based on this, the reading unit 302 can be specifically used for obtaining in application database from the weather reading accordingly Weather information.
Preferably, it in the embodiment of the present invention, is tested in the reading result of Weather information, generates corresponding test result And in the realization saved, the test cell 303 obtains in the database of application if can be specifically used for test to the weather There are the Weather informations, then generating corresponding test result is to pass through;If test obtains the database of application to the weather In do not have the Weather information, then generate corresponding test result be do not pass through, the test result is saved to the test Data file.
For example, test APP tests the reading result of Weather information, the database that the weather obtains application is tested In with the presence or absence of there is Weather information, if having read, represent and have the corresponding Weather information of the area information in weather APP, It is believed that the test result passes through, e.g., generates one and pass through mark.
On the contrary, being represented when testing in the database that APP test is applied to weather acquisition without the Weather information There is not the corresponding Weather information of the area information in weather APP, it is believed that the test result is not pass through, and e.g., is produced One by mark, finally, test result is saved in test data file together.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The Weather information test macro specifically can integrate in the terminal, which can be notebook computer, plate PC, mobile phone etc. have storage element and are equipped with microprocessor and the terminating machine with operational capability.
It can be seen from the above, Weather information test macro provided in this embodiment, the area information tested needed for collecting is constituted Test data file, the area information in automatic read test data file, and read the phase got according to the area information The Weather information answered is tested the reading result of Weather information, and is written in the test report of test data file, until Area information whole read test in the test data file;Since the data of required test are configured in advance, Automatically the area information in test data file can be read out, so as to be carried out to the corresponding Weather information of area information It reads and test, test process is fully automated, is not required to manual intervention, improves the accuracy rate and testing efficiency of test, and Test result can be directly presented in test data file, be simple and efficient.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to Weather information test method, details are not described herein again.
The Weather information test macro provided in an embodiment of the present invention is for example computer, tablet computer, has touch Weather information test method in mobile phone of function etc., the Weather information test macro and foregoing embodiments belongs to same structure Think, either offer in the Weather information test method embodiment can be provided in the Weather information test macro Method, specific implementation process are detailed in the Weather information test method embodiment, and details are not described herein again.
It should be noted that for Weather information test method of the present invention, this field common test personnel can be with Understand all or part of the process for realizing Weather information test method described in the embodiment of the present invention, is that can pass through computer program It is completed to control relevant hardware, the computer program can be stored in a computer-readable storage medium, such as store It is executed in the memory of terminal, and by least one processor in the terminal, in the process of implementation may include such as the day The process of the embodiment of gas information test method.Wherein, the storage medium can for magnetic disk, CD, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the Weather information test macro of the embodiment of the present invention, each functional module be can integrate at one It manages in chip, is also possible to modules and physically exists alone, a module can also be integrated in two or more modules In.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.Institute If stating integrated module to realize in the form of software function module and when sold or used as an independent product, can also deposit In a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc. for storage.
It is provided for the embodiments of the invention a kind of Weather information test method above and system is described in detail, this Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to It facilitates the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this The limitation of invention.

Claims (9)

1. a kind of Weather information test method characterized by comprising
Automatic test app is by the test data collected in advance from the specified folder for copying mobile phone storage in the app to; If there is new test data needs to test, new test data is added in table, and is imported into specified folder, is restarted Newest test data is loaded into the app by the app;
Automatic test app obtains preset test data file, the test data text from mobile phone storage specified folder Part includes more than two area informations that need to be tested;
Automatic test app reads the area information in the test data file according to preset order;
Test data is transmitted to weather app, so that weather by the interface set with preset weather app by automatic test app App obtains Weather information according to test data and saves;
Automatic test app reads the corresponding Weather information got according to the area information;
Automatic test app tests the reading result of Weather information, generates corresponding test result and saves, triggering is held The step of reading the area information in the test data file according to preset order described in row, until the test data file In area information whole read test, and corresponding test result is saved in the test data file.
2. Weather information test method according to claim 1, which is characterized in that described to obtain preset test data text Before part, further includes:
Collecting zone information, the area information include city name, longitude information and latitude information;
The area information is saved according to default preservation format, generates test data file.
3. Weather information test method according to claim 1 or 2, which is characterized in that described to be read according to preset order After area information in the test data file, further includes:
By preset interface, the area information is sent to preset weather and obtains application, so that the weather obtains application Corresponding Weather information is obtained on default website according to the area information, and saves to the weather data for obtaining application In library;
It is described to read the corresponding Weather information got according to the area information specifically: to obtain application from the weather Corresponding Weather information is read in database.
4. Weather information test method according to claim 3, which is characterized in that the reading result to Weather information It is tested, generate corresponding test result and is saved, comprising:
It obtains in the database of application if testing to the weather there are the Weather information, generating corresponding test result is Pass through;
If testing to the weather to obtain and not having the Weather information in the database of application, generating corresponding test result is Do not pass through;
The test result is saved to the test data file.
5. a kind of Weather information test macro characterized by comprising
Download storage unit, for by the test data collected in advance from copied in app mobile phone store specified folder in; If there is new test data needs to test, new test data is added in table, and is imported into specified folder, is restarted Newest test data is loaded into the app by the app;
Acquiring unit, for obtaining preset test data file, the test data text from mobile phone storage specified folder Part includes more than two area informations that need to be tested;
Test data is transmitted to weather app, so that weather for the interface by setting with preset weather app by transmission unit App obtains Weather information according to test data and saves;
Reading unit is read for reading the area information in the test data file according to preset order according to the area The corresponding Weather information that domain information is got;
Test cell is tested for the reading result to Weather information, is generated corresponding test result and is saved;
Trigger unit executes the region read in the test data file according to preset order for triggering the reading unit The step of information, until the area information whole read test in the test data file, and corresponding test result is protected It is stored in the test data file.
6. Weather information test macro according to claim 5, which is characterized in that the system also includes:
Collector unit is used for collecting zone information, and the area information includes city name, longitude information and latitude information;
Generation unit generates test data file for saving according to default preservation format to the area information.
7. Weather information test macro according to claim 5 or 6, which is characterized in that the system also includes:
Transmission unit, for the area information being sent to preset weather and obtains application, so that described by preset interface Weather obtains application and obtains corresponding Weather information on default website according to the area information, and saves to the weather and obtain It takes in the database of application;
The reading unit, specifically for reading corresponding Weather information from the database that the weather obtains application.
8. Weather information test macro according to claim 7, which is characterized in that the test cell, if being specifically used for It tests the weather and obtains in the database of application that there are the Weather informations, then generating corresponding test result is to pass through; If testing to the weather to obtain and not having the Weather information in the database of application, it is obstructed for generating corresponding test result It crosses, the test result is saved to the test data file.
9. a kind of storage medium, is stored with computer program, wherein the computer program makes computer execute such as right It is required that 1 to 4 described in any item methods.
CN201510882696.XA 2015-12-02 2015-12-02 A kind of Weather information test method and system Active CN105550102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510882696.XA CN105550102B (en) 2015-12-02 2015-12-02 A kind of Weather information test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510882696.XA CN105550102B (en) 2015-12-02 2015-12-02 A kind of Weather information test method and system

Publications (2)

Publication Number Publication Date
CN105550102A CN105550102A (en) 2016-05-04
CN105550102B true CN105550102B (en) 2018-12-11

Family

ID=55829296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510882696.XA Active CN105550102B (en) 2015-12-02 2015-12-02 A kind of Weather information test method and system

Country Status (1)

Country Link
CN (1) CN105550102B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108195401A (en) * 2017-12-25 2018-06-22 惠州市德赛西威汽车电子股份有限公司 A kind of test system and method for simulating real-time weather variation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN102486749A (en) * 2010-12-03 2012-06-06 中兴通讯股份有限公司 Method and system for data driving test

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189648A1 (en) * 2012-12-27 2014-07-03 Nvidia Corporation Facilitated quality testing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN102486749A (en) * 2010-12-03 2012-06-06 中兴通讯股份有限公司 Method and system for data driving test

Also Published As

Publication number Publication date
CN105550102A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
US9268665B2 (en) System and method for identifying fault prone computer code files
CN106980573B (en) Method, device and system for constructing test case request object
CN110489699B (en) Asynchronous data acquisition method and system
CN101645037B (en) Integrated test coverage analysis method of foundational software platform application program interface
CN104252481A (en) Dynamic check method and device for consistency of main and salve databases
CN109635300B (en) Data verification method and device
CN103123605B (en) A kind of Android platform automatic integration test method and device
WO2014206024A1 (en) Method and device for realizing embedded application, and computer storage medium
CN202339542U (en) Software product test system
CN111966760B (en) Test data generation method and device based on Hive data warehouse
CN105677148A (en) Terminal application searching method and device
CN113032252A (en) Method and device for collecting buried point data, client device and storage medium
CN111324510B (en) Log processing method and device and electronic equipment
CN105550102B (en) A kind of Weather information test method and system
CN108304322A (en) A kind of method for testing pressure and terminal device
CN110837471A (en) Test method, test device, server and storage medium
CN112667934A (en) Dynamic simulation diagram display method and device, electronic equipment and computer readable medium
CN105339974B (en) Analog sensor
CN105786990A (en) Database data storing and quick querying method and device
CN102567425A (en) Method and device for processing data
CN109471799A (en) A kind of dispositions method of demand environment, device, storage medium and terminal
CN105426541B (en) A kind of storage method and device of general data
CN106909499A (en) Method of testing and device
CN111367976B (en) Method and device for exporting EXCEL file data based on JAVA reflection mechanism
Radio et al. Manifestations of metadata structures in research datasets and their ontic implications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.

CP01 Change in the name or title of a patent holder