CN114679400A - Mailbox compatibility test method and device - Google Patents

Mailbox compatibility test method and device Download PDF

Info

Publication number
CN114679400A
CN114679400A CN202210595597.3A CN202210595597A CN114679400A CN 114679400 A CN114679400 A CN 114679400A CN 202210595597 A CN202210595597 A CN 202210595597A CN 114679400 A CN114679400 A CN 114679400A
Authority
CN
China
Prior art keywords
mailbox
test
mails
tested
mailboxes
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
Application number
CN202210595597.3A
Other languages
Chinese (zh)
Other versions
CN114679400B (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.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin Co 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 Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202210595597.3A priority Critical patent/CN114679400B/en
Publication of CN114679400A publication Critical patent/CN114679400A/en
Application granted granted Critical
Publication of CN114679400B publication Critical patent/CN114679400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention provides a method and a device for testing mailbox compatibility, wherein the method comprises the following steps: configuring mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be tested; sending test mails to the at least two mailboxes to be tested; receiving the test mails obtained by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailboxes to be tested; comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails; and obtaining the mailbox corresponding to the test mail with the standard format. According to the invention, the content and the style correctness of the mails sent to the user by the enterprise mails are ensured by group sending the mails to the multiple mailboxes and detecting, and the labor cost output is saved.

Description

Mailbox compatibility test method and device
Technical Field
The invention relates to the field of mailbox testing, in particular to a method and a device for testing mailbox compatibility.
Background
In the prior art, most of mailbox compatibility tests are performed on various terminal systems or web pages, such as: compatibility test schemes of Google browsers, Firefox browsers, 360 browsers and the like are adopted, but in the existing test, the condition that mails are sent to clients and the clients use various types of mailboxes is not considered, and the compatibility test of mail contents and styles received by the mailboxes is not carried out.
Disclosure of Invention
The invention provides a method and a device for testing mailbox compatibility, which are used for solving the problem that the prior art does not test the compatibility of mail contents and styles received by a mailbox.
In order to solve the above problems, the present invention is realized by:
in a first aspect, an embodiment of the present invention provides a method for testing mailbox compatibility, including:
configuring mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be tested;
sending test mails to the at least two mailboxes to be tested;
receiving the test mails obtained by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailboxes to be tested;
comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails;
and obtaining the mailbox corresponding to the test mail with the standard format.
Optionally, the mailbox category information includes at least one of: mailbox type, mailbox address, mailbox password, and mailbox unique code.
Optionally, the comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail includes:
transcoding at least two of the test mails into html format;
comparing the at least two html-format test mails with the standard format of the test mail;
and obtaining the mailbox corresponding to the test mail with the standard format.
Optionally, after receiving the test mails acquired by the at least two mailboxes to be tested through the mailbox protocol port, the method further includes:
at least two test mails are captured in a picture format;
comparing the test mails in at least two picture formats with the standard format of the test mail;
and obtaining the mailbox corresponding to the test mail with the standard format.
Optionally, comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail, further includes:
and displaying the test mails obtained by the at least two mailboxes to be tested at the front end, and comparing the test mails with the standard format of the test mails.
In a second aspect, an embodiment of the present invention provides an apparatus for testing mailbox compatibility, including:
the configuration module is used for configuring mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be detected;
the sending module is used for sending the test mails to the at least two mailboxes to be tested;
the receiving module is used for receiving the test mails obtained by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailboxes to be tested;
the comparison module is used for comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails;
and the result generation module is used for obtaining the mailbox corresponding to the test mail with the different standard format.
Optionally, the alignment module includes:
the first transcoding submodule is used for transcoding at least two test mails into html format;
the first comparison sub-module is used for comparing the at least two html-format test mails with the standard format of the test mails;
and the first result generation submodule is used for obtaining the mailbox corresponding to the test mail with the different standard format.
Optionally, the alignment module includes:
the second transcoding submodule is used for screenshot of at least two test mails into a picture format;
the second comparison sub-module is used for comparing the test mails in at least two picture formats with the standard format of the test mail;
and the second result generation submodule is used for obtaining the mailbox corresponding to the test mail with the standard format.
Optionally, comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail, further includes:
and displaying the test mails obtained by the at least two mailboxes to be tested at the front end, and comparing the test mails with the standard format of the test mails.
In a third aspect, an embodiment of the present invention provides a server, including: a processor, a memory and a program stored on the memory and running on the processor, which when executed by the processor, implement the steps of the method of mailbox compatibility testing as defined in any one of the first aspects.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for mailbox compatibility testing as described in any one of the first aspects.
According to the invention, the content and the style correctness of the mails sent to the user by the enterprise mails are ensured by sending the mails to the multiple mailboxes in groups and detecting the mail content and the style received by the mailboxes, so that the labor cost output is saved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for testing mailbox compatibility according to an embodiment of the present invention;
fig. 2 is an architecture diagram of an apparatus for mailbox compatibility test according to an embodiment of the present invention;
fig. 3 is a diagram of a server architecture according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships are changed accordingly.
Referring to fig. 1, an embodiment of the present invention provides a method for testing mailbox compatibility, including:
step 11: configuring mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be tested;
step 12: sending test mails to the at least two mailboxes to be tested;
step 13: receiving the test mails obtained by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailboxes to be tested;
step 14: comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails;
step 15: and obtaining the mailbox corresponding to the test mail with the standard format.
In the embodiment of the invention, the content and the style correctness of the mails sent to the user by the enterprise mails are ensured and the labor cost output is saved by sending the mails to the multiple mailboxes in groups and detecting the mail content and the style received by the mailboxes.
In the embodiment of the invention, in step 11, mailbox information is managed first, and mailbox type information is maintained on a mailbox type information maintenance page; the mailbox category information includes at least one of: mailbox type, mailbox address, mailbox password and mailbox unique code; the mailbox type, for example: a network exchange 163 mailbox, a network exchange 126 mailbox, an vacation QQ mailbox and a Sina mailbox, and a plurality of mailboxes are integrated in the current test platform; storing the mailbox type information into a database to conveniently acquire the mail content received by the corresponding mailbox;
in step 12, sending test mails to the at least two mailboxes to be tested; sending the same test mail to the mailbox to be tested so as to judge the display condition of the content and the style of the mail in each mailbox;
in step 13, acquiring a mailbox address and a mailbox unique code according to mailbox type information stored in the database; locally connecting to the current test system by using an SSL protocol POP3 port, thereby receiving test mails obtained by the at least two mailboxes to be tested; acquiring the content and the css style of the test mail to the local;
in step 14, the test mail is transcoded into an html readable file through utf-8 or converted into a picture format through screenshot; the comparing the standard format of the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails comprises: transcoding at least two of the test mails into html format; comparing the at least two html-format test mails with the standard format of the test mail; obtaining a mailbox corresponding to a test mail with a standard format; comparing html styles of various mailboxes through background codes to find out problematic mailboxes; comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails, and further comprising the following steps: at least two test mails are captured in a picture format; comparing the test mails in at least two picture formats with the standard format of the test mail; obtaining a mailbox corresponding to a test mail with a standard format; comparing the test mails in at least two picture formats with the standard format of the test mails, wherein the comparison can be carried out manually or after feature extraction through neural network modeling;
in step 15, the mailbox corresponding to the test mail with the standard format is fed back to the user for subsequent modification.
In this embodiment of the present invention, optionally, the comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail further includes:
and displaying the test mails obtained by the at least two mailboxes to be tested at the front end, and comparing the test mails with the standard format of the test mails.
In the embodiment of the invention, html readable file or picture format of the test mails acquired by the at least two mailboxes to be tested is displayed at the front end.
Referring to fig. 2, an embodiment of the present invention provides an apparatus for testing mailbox compatibility, including:
the configuration module 21 is configured to configure mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be tested;
a sending module 22, configured to send a test mail to the at least two mailboxes to be tested;
the receiving module 23 is configured to receive the test mails acquired by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailbox to be tested;
the comparison module 24 is configured to compare the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail;
and the result generating module 25 is used for obtaining the mailbox corresponding to the test mail with the different standard format.
In the embodiment of the present invention, optionally, the comparison module includes:
the first transcoding submodule is used for transcoding at least two test mails into html format;
the first comparison sub-module is used for comparing the at least two html-format test mails with the standard format of the test mails;
and the first result generation submodule is used for obtaining the mailbox corresponding to the test mail with the different standard format.
In the embodiment of the present invention, optionally, the comparison module includes:
the second transcoding submodule is used for screenshot of at least two test mails into a picture format;
the second comparison sub-module is used for comparing the test mails in at least two picture formats with the standard format of the test mail;
and the second result generation submodule is used for obtaining the mailbox corresponding to the test mail with the standard format.
In this embodiment of the present invention, optionally, comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail, further includes:
and displaying the test mails obtained by the at least two mailboxes to be tested at the front end, and comparing the test mails with the standard format of the test mails.
The mailbox compatibility test device provided by the embodiment of the invention can realize each process realized by the mailbox compatibility test method in the method embodiment of fig. 1, and is not repeated here for avoiding repetition.
Referring to fig. 3, an embodiment of the present invention further provides a server 30, which includes a processor 31, a memory 32, and a computer program stored in the memory 32 and running on the processor 31, where the computer program is executed by the processor 31 to implement the processes of the above mailbox compatibility test method embodiment, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for testing mailbox compatibility, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a terminal) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for testing mailbox compatibility is characterized by comprising the following steps:
configuring mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be tested;
sending test mails to the at least two mailboxes to be tested;
receiving the test mails obtained by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailboxes to be tested;
comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails;
and obtaining the mailbox corresponding to the test mail with the standard format.
2. A method for mailbox compatibility test according to claim 1,
the mailbox category information includes at least one of: mailbox type, mailbox address, mailbox password and mailbox unique code.
3. The method according to claim 1, wherein comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mail comprises:
transcoding at least two of the test mails into html format;
comparing the at least two html-format test mails with the standard format of the test mail;
and obtaining the mailbox corresponding to the test mail with the standard format.
4. The method according to claim 1, wherein after receiving the test mails acquired by the at least two mailboxes to be tested through the mailbox protocol port, the method further comprises:
at least two test mails are captured in a picture format;
comparing the test mails in at least two picture formats with the standard format of the test mail;
and obtaining the mailbox corresponding to the test mail with the standard format.
5. The method according to claim 1, wherein comparing the standard format of the test mail with the test mail acquired from the at least two mailboxes to be tested, further comprises:
and displaying the test mails obtained by the at least two mailboxes to be tested at the front end, and comparing the test mails with the standard format of the test mails.
6. An apparatus for mailbox compatibility testing, comprising:
the configuration module is used for configuring mailbox type information of at least two mailboxes to be tested; the mailbox type information is used for identifying the identity of the mailbox to be tested;
the sending module is used for sending the test mails to the at least two mailboxes to be tested;
the receiving module is used for receiving the test mails obtained by the at least two mailboxes to be tested through a mailbox protocol port according to the mailbox type information of the mailboxes to be tested;
the comparison module is used for comparing the test mails acquired by the at least two mailboxes to be tested with the standard format of the test mails;
and the result generation module is used for obtaining the mailbox corresponding to the test mail with the different standard format.
7. A mailbox compatibility test apparatus as claimed in claim 6, wherein said comparing module comprises:
the first transcoding submodule is used for transcoding at least two test mails into html format;
the first comparison sub-module is used for comparing the at least two html-format test mails with the standard format of the test mails;
and the first result generation submodule is used for obtaining the mailbox corresponding to the test mail with the different standard format.
8. A mailbox compatibility test apparatus as claimed in claim 6, wherein said comparing module comprises:
the second transcoding submodule is used for screenshot of at least two test mails into a picture format;
the second comparison sub-module is used for comparing the test mails in at least two picture formats with the standard format of the test mail;
and the second result generation submodule is used for obtaining the mailbox corresponding to the test mail with the standard format.
9. A server, comprising: processor, memory and program stored on and running on the memory, which when executed by the processor, implement the steps of the method of mailbox compatibility testing as defined in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of mailbox compatibility testing as defined in any one of claims 1 to 5.
CN202210595597.3A 2022-05-30 2022-05-30 Mailbox compatibility test method and device Active CN114679400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210595597.3A CN114679400B (en) 2022-05-30 2022-05-30 Mailbox compatibility test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210595597.3A CN114679400B (en) 2022-05-30 2022-05-30 Mailbox compatibility test method and device

Publications (2)

Publication Number Publication Date
CN114679400A true CN114679400A (en) 2022-06-28
CN114679400B CN114679400B (en) 2022-08-05

Family

ID=82080719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210595597.3A Active CN114679400B (en) 2022-05-30 2022-05-30 Mailbox compatibility test method and device

Country Status (1)

Country Link
CN (1) CN114679400B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510567A (en) * 2011-12-20 2012-06-20 广东欧珀移动通信有限公司 Automation testing method for cellphone e-mails
CN102855189A (en) * 2012-08-09 2013-01-02 中标软件有限公司 Office software compatibility testing method and device thereof
CN103686030A (en) * 2013-12-23 2014-03-26 广东威创视讯科技股份有限公司 Method and device for detecting video signal interface applied to picture splicing display unit
CN106033390A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 Mail style testing method and apparatus
US20180167303A1 (en) * 2016-12-09 2018-06-14 Cyara Solutions Pty Ltd Case-based automated email testing
CN108197034A (en) * 2018-01-26 2018-06-22 易玩(上海)网络科技有限公司 A kind of application testing method, server and system
CN109639759A (en) * 2018-10-31 2019-04-16 平安普惠企业管理有限公司 E-mail sending method, device and computer equipment based on cloud transmission
WO2020119426A1 (en) * 2018-12-13 2020-06-18 深圳壹账通智能科技有限公司 Gray scale testing method, server and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510567A (en) * 2011-12-20 2012-06-20 广东欧珀移动通信有限公司 Automation testing method for cellphone e-mails
CN102855189A (en) * 2012-08-09 2013-01-02 中标软件有限公司 Office software compatibility testing method and device thereof
CN103686030A (en) * 2013-12-23 2014-03-26 广东威创视讯科技股份有限公司 Method and device for detecting video signal interface applied to picture splicing display unit
CN106033390A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 Mail style testing method and apparatus
US20180167303A1 (en) * 2016-12-09 2018-06-14 Cyara Solutions Pty Ltd Case-based automated email testing
CN108197034A (en) * 2018-01-26 2018-06-22 易玩(上海)网络科技有限公司 A kind of application testing method, server and system
CN109639759A (en) * 2018-10-31 2019-04-16 平安普惠企业管理有限公司 E-mail sending method, device and computer equipment based on cloud transmission
WO2020119426A1 (en) * 2018-12-13 2020-06-18 深圳壹账通智能科技有限公司 Gray scale testing method, server and computer readable storage medium

Also Published As

Publication number Publication date
CN114679400B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN107547299B (en) Test method and system
CN111328055B (en) ONU automatic registration method and device
CN107728892B (en) Picture display method, device, terminal and storage medium
CN111723133A (en) Nucleic acid detection result query method, device, storage medium and device
CN110045933B (en) Print data generation method, device, equipment and storage medium
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
WO2021093673A1 (en) E-mail sending method, apparatus and device, and computer-readable storage medium
CN109587351B (en) Call testing method, device, equipment and storage medium
CN112052038A (en) Method and device for generating front-end interface
CN113923144B (en) Service testing system, method, electronic equipment and storage medium
CN114679400B (en) Mailbox compatibility test method and device
CN114266539A (en) File flow processing method, system, device and computer readable storage medium
CN113688183A (en) Multi-type data source extraction method, system, terminal equipment and storage medium
CN107330087B (en) Page file generation method and device
CN110457527B (en) XML message comparison method and system
CN111901180A (en) Multi-tenant terminal generation method, device, equipment and storage medium of education system
CN108573354B (en) Grain processing loss data analysis system and method
CN111061637A (en) Interface test method, interface test device and storage medium
CN114282913B (en) Multi-main-body online signing method and device
CN111399732A (en) Webpage screenshot method and device, computer equipment and storage medium
CN112288071B (en) Electronic price tag display method, electronic price tag, and computer-readable storage medium
CN113468451A (en) Page display method and device
CN114095365B (en) Processing method and device of Internet of things service based on 5G message
CN115174375A (en) Message unpacking method, device, equipment and medium
CN103279754A (en) Business card cloud identification method and system

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