CN103164317B - A kind of method and apparatus for detecting renewal - Google Patents
A kind of method and apparatus for detecting renewal Download PDFInfo
- Publication number
- CN103164317B CN103164317B CN201110405674.6A CN201110405674A CN103164317B CN 103164317 B CN103164317 B CN 103164317B CN 201110405674 A CN201110405674 A CN 201110405674A CN 103164317 B CN103164317 B CN 103164317B
- Authority
- CN
- China
- Prior art keywords
- data
- renewal
- desktop
- terminal
- news
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and apparatus for detecting renewal, belong to internet arena.Methods described includes:When the timing time of timer is equal to default renewal time section, judge whether terminal have sent the data renewal request of desktop news to server;If it is, generating and showing the first monitored data, user is set to confirm that the data of the desktop news in the terminal are updated successfully according to first monitored data.Data renewal request of the present invention by whether have sent to server desktop news to terminal judges whether the renewal of desktop news succeeds, and saves testing time and test manpower.
Description
Technical field
The present invention relates to internet arena, more particularly to a kind of method and apparatus for detecting renewal.
Background technology
Widget (application window widget) is small application view, can be embedded in other application journey
(such as desktop) and reception periodically renewal in sequence.
The existing test to desktop news widget automatically updating functions, all it is manual test.Assuming that news widget is certainly
Dynamic renewal is arranged to 6 hours, then tester will record the initial time of setting, and check desktop when 6 hours
Whether news widget news and picture automatically updates.
The shortcomings that prior art:It is respectively 3,6,12 hours, it is necessary to which tester records in detail to automatically update the time
At time point, see whether new news in brief and picture, or refresh button rotate automatically after renewal time is reached,
Testing time is grown, and loses time and manpower.
The content of the invention
For the problems of the prior art, the embodiments of the invention provide a kind of method and apparatus for detecting renewal.It is described
Technical scheme is as follows:
On the one hand, there is provided a kind of method for detecting renewal, methods described include:
When the timing time of timer is equal to default renewal time section, judge whether terminal to server have sent table
The data renewal request of face news;
If it is, generating and showing the first monitored data, user is set to confirm the end according to first monitored data
The data of desktop news on end are updated successfully, and first monitored data is updated successfully for expression.
The default renewal time section includes the period that the data of the desktop news update.
Methods described also includes:
If the data that the terminal does not send desktop news to the server update request, generate and show second
Monitored data, make the user confirmed according to second monitored data data renewals of desktop news in the terminal not into
Work(.
The Boolean of first monitored data is true, and the Boolean of second monitored data is false.
On the other hand, there is provided a kind of device for detecting renewal, described device include:
Judge module, for when the timing time of timer is equal to default renewal time section, judge terminal whether to
Server have sent the data renewal request of desktop news;
Generation module, if the judged result for the judge module is yes, generates and show the first monitored data,
User is set to confirm that the data of the desktop news in the terminal are updated successfully according to first monitored data.
The default renewal time section includes the period that the data of the desktop news update.
The generation module is additionally operable to if it is determined that module judges that the terminal is new to server transmission desktop
The data renewal request of news, then generate and show the second monitored data, the user is confirmed according to second monitored data
The data renewal of desktop news in the terminal is failed, and first monitored data is updated successfully for expression.
The Boolean of first monitored data is true, and the Boolean of second monitored data is false.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:Preset when the timing time of timer is equal to
Renewal time when, judge terminal whether to server have sent desktop news data update request, if it is, generation simultaneously
The first monitored data is shown, user is confirmed that the data of the desktop news in the terminal update according to first monitored data
Success, testing staff's manual test is not needed so, it is only necessary to check that the monitored data of detection means generation is just able to know that more
Newly whether succeed, save testing time and test manpower, and by judging whether terminal to server have sent desktop news
Data renewal please confirm desktop news whether updated, rather than according to desktop news data whether change come
Judge, more can accurately verify whether desktop news are updated successfully.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart of the method for detection renewal provided in the embodiment of the present invention 1;
Fig. 2 is a kind of flow chart of the method for detection renewal provided in the embodiment of the present invention 2;
Fig. 3 is a kind of schematic diagram of the device of detection renewal provided in the embodiment of the present invention 3.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment 1
A kind of method updated referring to detection is provided in Fig. 1 the present embodiment, including:
101:When the timing time of timer is equal to default renewal time section, judge whether terminal sends to server
The data renewal request of desktop news;
102:If it is, generating and showing the first monitored data, user is set to confirm institute according to first monitored data
The data for stating the desktop news in terminal are updated successfully.
In the present embodiment, the default renewal time section includes the period that the data of the desktop news update.
Wherein, methods described also includes:
If the data that the terminal does not send desktop news to the server update request, generate and show second
Monitored data, make the user confirmed according to second monitored data data renewals of desktop news in the terminal not into
Work(.
Alternatively, in the present embodiment, the Boolean of first monitored data is true, the boolean of second monitored data
Value is false.
The beneficial effect of embodiment of the method provided by the invention is:When the timing time of timer is equal to default renewal
Between when, judge whether terminal have sent the data of desktop news to server and update request, if it is, generating and showing first
Monitored data, user is set to confirm that the data of the desktop news in the terminal are updated successfully according to first monitored data, this
Sample do not need testing staff's manual test, it is only necessary to check detection means generation monitored data be just able to know that renewal whether into
Work(, testing time and test manpower are saved, and by judging whether terminal to server have sent the data of desktop news more
It is new please confirm whether desktop news are updated, rather than judge according to whether desktop news data change, more
It can accurately verify whether desktop news are updated successfully.
Embodiment 2
Referring to Fig. 2, a kind of method for detecting renewal is provided in the present embodiment, including:
201:Set desktop news automatically updates the period.
In the present embodiment, start desktop news widget, first set desktop news automatically updates the time, such as sets automatic
Renewal time is 3 hours, 6 hours, or 12 hours, this present embodiment is not specifically limited.As terminal desktop on install
Weather forecast, the renewal time for setting the weather forecast are 12 hours, then terminal needs every 12 hours to update desktop
On weather forecast.
202:When terminal starts desktop news, start timer.
In the present embodiment, while automatically updating time success of desktop news is being set, added in test program
Add a monitor A and timer B, and start timer B, timing of starting from scratch, or automatically update duration from desktop news
Start countdown, specific clocking method the present embodiment is not specifically limited.For example, the renewal time of the desktop news set is
6 hours, then the timing time of timer being arranged to 6 hours, timer is started from scratch timing after desktop news are updated,
When the cumulative time of timer reaching 6 hours, then stop timing.
Wherein, monitor A is used for the refresh activity for monitoring widget.
203:When the timing time of timer is equal to default renewal time section, judge whether terminal sends to server
The data renewal request of desktop news, if it is generates and shows the first monitored data, makes user according to the described first prison
The data of the desktop news described in data validation in terminal are listened to be updated successfully;If otherwise generating the second monitored data, make described
It is failed that user confirms that the data of the desktop news in the terminal update according to second monitored data.
In the present embodiment, the desktop news that default renewal time includes setting in the present embodiment automatically update the time,
Certain default renewal time can also be the integral multiple for automatically updating the time of desktop news, i.e. monitor can be optionally
Monitored in any cycle for automatically updating the time of desktop news, this present embodiment is not specifically limited.Work as timer
Timing time reach default renewal time after, monitor judge terminal whether to server have sent data renewal please
Ask, if it is generate and show the first monitored data, user is confirmed according to first monitored data in the terminal
The data of desktop news are updated successfully, and are otherwise generated and are shown the second monitored data, make user according to second monitored data
Confirm that the data renewal of the desktop news in the terminal is failed.User in the present embodiment can specifically refer to desktop news
Testing staff.
In the present embodiment, when automatically updating, terminal to server end sends the data renewal request of desktop news, if service
The substantial renewal within this time of device end, then return to new synopsis to terminal, desktop widget occurs new interior
Hold summary;But if server end sleazy renewal within this time, desktop widget will continue to show original new
Hear summary.Asked so monitor needs monitor terminal whether to have sent renewal to server end, if terminal to server end is sent out
Send renewal to ask, indicated that desktop has refresh activity, be updated successfully.In the present embodiment, do not carried in server end to terminal
For new news in brief so that desktop widget can only continue to go in the case of showing original news in brief, renewal and into
Work(, because terminal to server end have sent renewal request, perform refresh activity.For example, terminal will be updated on desktop
Weather forecast, renewal request is sent to server, server receives the renewal request of terminal, judges whether weather forecast has newly
Content need to update, if so, then return to the new weather forecast content of terminal, if it is not, be not desired to terminal send it is new
Weather forecast content, desktop continues to show original weather forecast content.
In the present embodiment, alternatively, the monitored data of generation can be a Boolean type variable FLAG, if monitor A is supervised
Hear there is refresh activity, then Boolean FLAG=TRUE, print log, export FLAG value, enable testing staff according to
FLAG value judges to automatically update whether come into force:FLAG=FALSE, show to automatically update failure;FLAG=TRUE, show automatic
It is updated successfully.The first monitored data can be Boolean FLAG=TRUE in the present embodiment, and the second monitored data can be FLAG
=FALSE.Wherein, the monitored data of generation can also show otherwise is updated successfully or fails, and such as generates number
Represent to be updated successfully according to for ' 1 ', generation data are ' 0 ' expression renewal failure, are not specifically limited this present embodiment.
The beneficial effect of embodiment of the method provided by the invention is:When the timing time of timer is equal to default renewal
Between when, judge whether terminal have sent the data of desktop news to server and update request, if it is, generating and showing first
Monitored data, testing staff is set to confirm that the data of the desktop news in the terminal are updated to according to first monitored data
Work(, testing staff's manual test is not needed so, it is only necessary to check that the monitored data of detection means generation is just able to know that renewal
Whether succeed, save testing time and test manpower, and by judging whether terminal to server have sent desktop news
Data renewal please confirms whether desktop news are updated, rather than sentences according to whether desktop news data change
It is disconnected, more it can accurately verify whether desktop news are updated successfully.
Embodiment 3
Referring to Fig. 3, the embodiments of the invention provide a kind of device for detecting renewal, described device includes:Judge module 301
With generation module 302.
Judge module 301, for when the timing time of timer is equal to default renewal time section, whether judging terminal
The data that desktop news are have sent to server update request;
Generation module 302, if the judged result for the judge module 301 is yes, generates and show the first prison
Data are listened, user is confirmed that the data of the desktop news in the terminal are updated successfully according to first monitored data.
In the present embodiment, the default renewal time section includes the period that the data of the desktop news update.
In the present embodiment, the generation module 302 is additionally operable to if it is determined that module 301 judges the terminal not to described
Server sends the data renewal request of desktop news, then generates and show the second monitored data, make the user according to described
Second monitored data confirms that the data renewal of the desktop news in the terminal is failed.
Alternatively, the Boolean of first monitored data is true that the Boolean of second monitored data is false.
The beneficial effect of device embodiment provided by the invention is:When the timing time of timer is equal to default renewal
Between when, judge whether terminal have sent the data of desktop news to server and update request, if it is, generating and showing first
Monitored data, user is set to confirm that the data of the desktop news in the terminal are updated successfully according to first monitored data, this
Sample do not need testing staff's manual test, it is only necessary to check detection means generation monitored data be just able to know that renewal whether into
Work(, testing time and test manpower are saved, and by judging whether terminal to server have sent the data of desktop news more
It is new please confirm whether desktop news are updated, rather than judge according to whether desktop news data change, more
It can accurately verify whether desktop news are updated successfully.
The device that the present embodiment provides, specifically can belong to same design with embodiment of the method, and it is detailed that it implements process
See embodiment of the method, repeat no more here.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (4)
- A kind of 1. method for detecting renewal, it is characterised in that methods described includes:When the timing time of timer is equal to default renewal time section, by monitor judge terminal whether to server send out Sent the data of desktop news to update request, the data of the default renewal time section including the desktop news update when Between section, the monitor be used for monitor refresh activity;If it is, being updated successfully, generate and show the first monitored data, user is confirmed institute according to first monitored data The data for stating the desktop news in terminal are updated successfully, and first monitored data is updated successfully for expression;If it is not, then generating and showing the second monitored data, the user is set to confirm the end according to second monitored data The data renewal of desktop news on end is failed.
- 2. according to the method for claim 1, it is characterised in that the Boolean of first monitored data be it is true, described the The Boolean of two monitored datas is false.
- 3. a kind of device for detecting renewal, it is characterised in that described device includes:Judge module, for when the timing time of timer is equal to default renewal time section, judging terminal by monitor The data that desktop news whether are have sent to server update request, and the default renewal time section includes the desktop news Data renewal period, the monitor be used for monitor refresh activity;Generation module, if the judged result for the judge module is yes, it is updated successfully, generates and show the first monitoring Data, user is set to confirm that the data of the desktop news in the terminal are updated successfully according to first monitored data, described the One monitored data is updated successfully for expression;The generation module, if the judged result for being additionally operable to the judge module is no, generates and show the second monitoring number According to making the user confirm that the data of the desktop news in the terminal update according to second monitored data failed.
- 4. device according to claim 3, it is characterised in that the Boolean of first monitored data be it is true, described The Boolean of two monitored datas is false.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110405674.6A CN103164317B (en) | 2011-12-08 | 2011-12-08 | A kind of method and apparatus for detecting renewal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110405674.6A CN103164317B (en) | 2011-12-08 | 2011-12-08 | A kind of method and apparatus for detecting renewal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103164317A CN103164317A (en) | 2013-06-19 |
CN103164317B true CN103164317B (en) | 2018-04-03 |
Family
ID=48587423
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110405674.6A Active CN103164317B (en) | 2011-12-08 | 2011-12-08 | A kind of method and apparatus for detecting renewal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103164317B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103399884A (en) * | 2013-07-14 | 2013-11-20 | 王国栋 | Random news system and automatic refresh method thereof |
CN104239587B (en) | 2014-10-17 | 2017-09-12 | 北京字节跳动网络技术有限公司 | The method and device that news list refreshes |
WO2017028184A1 (en) * | 2015-08-18 | 2017-02-23 | 郭子明 | Method and news display system for prompting information when displaying news information according to topic |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101945135A (en) * | 2010-09-20 | 2011-01-12 | 中兴通讯股份有限公司 | Method and system for upgrading widget system |
CN102143128A (en) * | 2010-06-30 | 2011-08-03 | 华为技术有限公司 | Method, device and system for updating desktop shortcut of mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4850796B2 (en) * | 2007-07-27 | 2012-01-11 | 富士通コンポーネント株式会社 | Terminal emulator and control method thereof |
-
2011
- 2011-12-08 CN CN201110405674.6A patent/CN103164317B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143128A (en) * | 2010-06-30 | 2011-08-03 | 华为技术有限公司 | Method, device and system for updating desktop shortcut of mobile terminal |
CN101945135A (en) * | 2010-09-20 | 2011-01-12 | 中兴通讯股份有限公司 | Method and system for upgrading widget system |
Also Published As
Publication number | Publication date |
---|---|
CN103164317A (en) | 2013-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111399873B (en) | Model updating method and device | |
CN103425956B (en) | The networking method of wireless network camera | |
CN106201846B (en) | Method for monitoring performance and device in automatic test | |
US10296409B2 (en) | Forecasting workload transaction response time | |
BR112012017294B1 (en) | method, system and server for collecting software versions | |
CN103164317B (en) | A kind of method and apparatus for detecting renewal | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN105120259B (en) | Digital television detection method and device | |
CN106649024A (en) | Method and device for real-time monitoring of application performance | |
KR101982504B1 (en) | Vehicle to everything communication conforming device | |
CN102799522A (en) | Managing method and system for software version tracing test | |
WO2016061941A1 (en) | Exception handling method and device, and storage medium | |
US10664335B2 (en) | System and method for maintaining the health of a machine | |
CN105743774A (en) | Pushed information monitoring device, pushed information monitoring method and client side | |
CN106371938A (en) | Automatic intelligent delaying shutdown system and method | |
CN104750537B (en) | Method and device for executing test case | |
CN103096167A (en) | Starting method and starting system of intelligent television | |
CN105138447A (en) | Method for monitoring hard disk and memory in Reboot test process | |
CN112165473B (en) | Method, device and medium for detecting random account password reset logic loophole | |
CN109670296A (en) | A kind of method and apparatus removing iOS backup password | |
CN103729274A (en) | Method and system for detecting audio faults | |
CN104424098B (en) | A kind of application testing method and device | |
CN104915291B (en) | Terminal restarts verification method and system | |
CN105163336B (en) | Optimize the method and system of wireless network stability | |
CN105528221B (en) | Electronic equipment reset processing method and device |
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 |