CN113946396A - Method for realizing function similar to pasting board in Web page - Google Patents

Method for realizing function similar to pasting board in Web page Download PDF

Info

Publication number
CN113946396A
CN113946396A CN202111207450.4A CN202111207450A CN113946396A CN 113946396 A CN113946396 A CN 113946396A CN 202111207450 A CN202111207450 A CN 202111207450A CN 113946396 A CN113946396 A CN 113946396A
Authority
CN
China
Prior art keywords
checkpoint
pasting
extract
cookie
web page
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.)
Pending
Application number
CN202111207450.4A
Other languages
Chinese (zh)
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.)
Beijing Shansong Technology Co ltd
Original Assignee
Beijing Shansong Technology 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 Beijing Shansong Technology Co ltd filed Critical Beijing Shansong Technology Co ltd
Priority to CN202111207450.4A priority Critical patent/CN113946396A/en
Publication of CN113946396A publication Critical patent/CN113946396A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a solution for realizing functions similar to a pasting board in a Web page, which is based on the form of cookie storage data, by copying configuration items of Extract (data extraction) and checkpoint (check point), storing the configuration items into cookies in different names, reading values corresponding to the names according to different identifications of the Extract (data extraction) and checkpoint (check point) during reading, and then analyzing and assigning values to realize a pasting function, thereby achieving the purpose of allowing a user to randomly select one or more copied objects in one or more cases under the same domain name to realize copying and pasting, greatly saving the time for the user to configure the Extract (data extraction) and checkpoint (check point) and the like, and improving the efficiency of compiling interface test cases.

Description

Method for realizing function similar to pasting board in Web page
Technical Field
The patent relates to a method for realizing similar pasting board function in Web page, which is a solution used in interface test platform or other Web products with similar function, belonging to the technical field of automatic test
Background
As is well known, the product update iteration speed in the software industry is increasing, which also requires software testing practitioners to complete the software testing with high efficiency and high quality, and in order to achieve this goal, the interface testing is concerned by more and more software testing practitioners due to the characteristic of high return rate.
The interface test requires a testing tool, and among many interface testing tools, the internet interface testing platform capable of providing web interface display is favored by many practitioners due to its advantages of low use threshold, convenient management, customizable functions, and the like.
The user can design the interface input parameter according to the test method in the interface test platform, and transmits the interface input parameter into the interface, the interface request is completed, the interface output parameter is returned, and the interface output parameter is checked according to the preset rule, so that whether the interface is correct or not is judged to realize the expected function.
In writing an interface test case, a tester often configures a lot of information such as Extract (data extraction), checkpoint (checkpoint), and the like, where one Extract (data extraction) or checkpoint includes a plurality of contents, such as an expression for extracting an actual value, an expected value, and the like; in actual use, some extracts (data extraction) and checkpoint (check points) in different steps of the same use case or different use cases can be multiplexed or only need to be modified slightly, but the copy and paste functions of an operating system are used, only one content can be copied at a time, the efficiency is low, therefore, based on the requirement of usability, an interface test platform is required to provide a function similar to a paste board, the function requires that the copy units are the whole extracts (data extraction) and checkpoint (check point), a plurality of copies can be made at one time, and copied information can be shared among a plurality of use cases
However, no solution for realizing the requirement exists in the interface test platform at present, and the browser such as Chrome and the like does not provide the function of directly accessing the operating system sticky board any more in consideration of security, which also adds some obstacles to the implementation of the paste function in the interface test platform.
Disclosure of Invention
The invention mainly aims to provide a solution for realizing the function similar to a pasting board in a Web page.
In order to achieve the purpose, the invention adopts the following technical scheme:
● store data by cookie when copying, use different cookie names when copying Extract (data extraction) and checkpoint (checkpoint), and put the cookie under the root path.
● reading the cookie with corresponding name according to different identifiers of Extract and checkpoint, analyzing and assigning value, and implementing paste function
The invention has the main effects and advantages that the user is allowed to randomly select one or more copied objects in one or more use cases under the same domain name, free copying and pasting is realized, the time for configuring Extract (data extraction) and checkpoint (check point) by the user is greatly saved, and the efficiency of interface testing is improved.
Drawings
FIG. 1: the principle of the method is summarized.
FIG. 2: copy and paste functions in Extract (data extraction).
FIG. 3: copy and paste functions of a checkpoint page.
FIG. 4: replication method implementation
FIG. 5: implementation of pasting method
Detailed Description
The technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiment of the present invention. All other embodiments obtained by a person skilled in the art without making any inventive step are within the scope of protection of the present invention.
The invention provides a solution for realizing the function similar to a pasting board in a Web page, and the content comprises the functions of copying and pasting.
The method comprises the following steps:
the method comprises the following steps: fig. 2 shows an Extract page with separate copy and paste functions, and it can be seen that a data association consists of two parts, key and value. Here, the user requirement is that a plurality of pieces of configuration contents composed of keys and values can be copied and pasted at a time.
Step two: the checkpoint page shown in fig. 3 has a separate copy and paste function, and it can be seen that a checkpoint is composed of key, pointer, type, and value. The user needs to copy and paste a plurality of check point contents consisting of key, composer, type and value at a time.
Step three: FIG. 4 is a copy method by which one or more Extract, checkpoint values that are checked can be stored in a cookie.
Step four: fig. 5 is a pasting method, by which a value of a designated name in a cookie can be extracted and added to a variable to which Extract and checkpoint belong in a corresponding step, and since an interface test platform using the solution described in this specification is developed using a responsive deployment vue, a page presentation can be updated synchronously after a corresponding variable is updated, so that a user has a visual "paste" feeling.
The above embodiments are not intended to limit the scope of the present invention, and any other modifications made without departing from the spirit and principle of the present invention are also intended to be included within the scope of the present invention.

Claims (2)

1. A solution for implementing a sticky-pad-like function in a Web page, comprising:
storing the form of data based on the cookie by copying configuration items of Extract, checkpoint, storing to the cookie with different names,
reading the value of the corresponding name according to different identifiers of Extract (data extraction) and checkpoint (check point), and then performing analysis and assignment to realize the paste function.
2. The solution for realizing the function similar to a pasting board in a Web page as claimed in claim 1, wherein the characteristics of the cookie are utilized to copy different object types, store the object types with different names, and read the cookie contents corresponding to the names during pasting to realize the pasting effect, thereby achieving the purpose of allowing a user to arbitrarily select one or more contents for copying and pasting in one or more cases under the same domain name, and greatly improving the efficiency of the test case compiling by testers.
CN202111207450.4A 2021-11-26 2021-11-26 Method for realizing function similar to pasting board in Web page Pending CN113946396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111207450.4A CN113946396A (en) 2021-11-26 2021-11-26 Method for realizing function similar to pasting board in Web page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111207450.4A CN113946396A (en) 2021-11-26 2021-11-26 Method for realizing function similar to pasting board in Web page

Publications (1)

Publication Number Publication Date
CN113946396A true CN113946396A (en) 2022-01-18

Family

ID=79331016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111207450.4A Pending CN113946396A (en) 2021-11-26 2021-11-26 Method for realizing function similar to pasting board in Web page

Country Status (1)

Country Link
CN (1) CN113946396A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940914A (en) * 2005-09-29 2007-04-04 国际商业机器公司 Method and device for copying and pasting a plurality of data items as a group
CN102141933A (en) * 2011-01-17 2011-08-03 博视联(苏州)信息科技有限公司 System for providing multiple multiplexing and pasting of computer application program and method thereof
US20180335998A1 (en) * 2017-05-16 2018-11-22 Microsoft Technology Licensing, Llc Roaming clipboard copy/paste
CN109388506A (en) * 2018-09-30 2019-02-26 联想(北京)有限公司 A kind of data processing method and electronic equipment
KR20210077242A (en) * 2019-12-17 2021-06-25 주식회사 한글과컴퓨터 Electronic terminal device that performs copy and paste processing of image objects between web documents based on storage path information of an image and operating method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940914A (en) * 2005-09-29 2007-04-04 国际商业机器公司 Method and device for copying and pasting a plurality of data items as a group
CN102141933A (en) * 2011-01-17 2011-08-03 博视联(苏州)信息科技有限公司 System for providing multiple multiplexing and pasting of computer application program and method thereof
US20180335998A1 (en) * 2017-05-16 2018-11-22 Microsoft Technology Licensing, Llc Roaming clipboard copy/paste
CN109388506A (en) * 2018-09-30 2019-02-26 联想(北京)有限公司 A kind of data processing method and electronic equipment
KR20210077242A (en) * 2019-12-17 2021-06-25 주식회사 한글과컴퓨터 Electronic terminal device that performs copy and paste processing of image objects between web documents based on storage path information of an image and operating method thereof

Similar Documents

Publication Publication Date Title
US9690788B2 (en) File type recognition analysis method and system
CN110765770A (en) Automatic contract generation method and device
CN106155686A (en) Interface creating method, device and system
CN111221570B (en) Migration method, device and equipment of microservice framework and storage medium
CN103699585A (en) Methods, devices and systems for file metadata storage and file recovery
CN105612515A (en) Device for collecting contradictory expression and computer program for same
CN105589894B (en) Document index establishing method and device and document retrieval method and device
JP2005174336A (en) Learning and use of generalized string pattern for information extraction
CN110688658B (en) Unknown virus infection tracing method, device and system
CN104346405B (en) A kind of method and device of the Extracting Information from webpage
CN110019642A (en) A kind of Similar Text detection method and device
US10823782B2 (en) Ensuring completeness of interface signal checking in functional verification
CN108009049A (en) The offline restoration methods of MYISAM storage engines deletion records, storage medium
JP2014085926A (en) Database analyzer, and database analysis method
CN110209780A (en) A kind of question template generation method, device, server and storage medium
CN113946396A (en) Method for realizing function similar to pasting board in Web page
CN109783139B (en) Software interface feature extraction method and device and electronic equipment
CN112835774B (en) Visualization method and device for performance of display card, equipment and computer-readable storage medium
CN115495421A (en) Data formatting method, device, electronic equipment and medium
CN111737090B (en) Log simulation method and device, computer equipment and storage medium
CN114880673A (en) Method and system for detecting private data leakage aiming at applet source code
CN106528271A (en) Method and device for acquiring web page data
Senkýr et al. Patterns for Checking Incompleteness of Scenarios in Textual Requirements Specification.
CN104978374A (en) Method and device for inserting icon in application program
CN111079375A (en) Information sorting method and device, computer storage medium and terminal

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