CN112631899A - Method and system for supporting local preview test of resource package - Google Patents
Method and system for supporting local preview test of resource package Download PDFInfo
- Publication number
- CN112631899A CN112631899A CN202011450337.4A CN202011450337A CN112631899A CN 112631899 A CN112631899 A CN 112631899A CN 202011450337 A CN202011450337 A CN 202011450337A CN 112631899 A CN112631899 A CN 112631899A
- Authority
- CN
- China
- Prior art keywords
- area network
- local area
- resource package
- test
- resource
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 58
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000011161 development Methods 0.000 claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 15
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012356 Product development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0025—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to a method for supporting local preview test of a resource package, which comprises the following steps: s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires the IP address of the local area network, and generates the local area network download address of the resource packet according to the HTTP service port of the HTTP server and the IP address of the local area network; s2, the development end converts a local area network download address list formed by the local area network download addresses into a two-dimensional code, and sends the two-dimensional code to the user interface for displaying. No matter the Android device or the IOS device is used, the local area network download address list of the resource package to be downloaded to be tested can be obtained in a two-dimensional code scanning mode only by being located in the same local area network with the development end, the local area network download address of the resource package to be tested is selected to be downloaded to run and test, the development and test efficiency is improved, the resource package is stored locally, extra cost cannot be generated, and the safety performance is good.
Description
Technical Field
The invention relates to the field of computer software, in particular to a method and a system for supporting local preview test of a resource package.
Background
In the course product development process, after the interactive module developer finishes packaging the resource package, in order to ensure the compatibility of the module, the interactive module developer needs to test on various different mobile phones. For an Android mobile phone, a resource packet is generally transmitted to an SD card of the mobile phone through a USB connection line, and then the resource packet is selected for testing by calling a file manager of the mobile phone through a specific App. However, in the iOS mobile phone, due to the security limitation, the external mobile phone storage space cannot be accessed, and the resource package can only be downloaded to the storage space of the App in an online downloading manner for testing.
However, this approach has the following disadvantages:
1. the resource package is transmitted to the cloud for storage first, and then the download link can be obtained, so that the operation is complex.
2. In order to meet the test requirement, a certain amount of cloud storage space is occupied, the cloud storage space needs to pay a large cost, and the test cost is high.
3. Extra traffic cost, traffic/broadband cost, and the need to have access to the internet, which is troublesome if there is no internet, and the test is impossible.
4. The cloud storage is not accessible to all, and if a developer wants to have permission to upload a resource package, the developer needs to develop a background management system and needs extra cost expenditure, or the developer issues the permission to each developer, so that certain potential safety hazards exist.
Disclosure of Invention
Technical problem to be solved
In order to solve the above problems in the prior art, the present invention provides a method and a system for supporting a local preview test of a resource package, which saves the cost of the resource package test.
(II) technical scheme
In order to achieve the purpose, the invention adopts a technical scheme that: a method for supporting local preview test of a resource package comprises the following steps:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
The other technical scheme adopted by the invention is as follows: a system for supporting local preview testing of a resource package, comprising a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor, the first processor implementing the following steps when executing the first computer program:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
(III) advantageous effects
The invention has the beneficial effects that: no matter the Android device or the IOS device is in the same local area network with the development end, the local area network download address list of the resource package to be downloaded to be tested can be obtained in a two-dimensional code scanning mode, the local area network download address of the resource package to be tested is selected to be downloaded to run and test, the development and test efficiency is improved, the resource package is stored locally, cloud storage is not needed, the resource package does not need to be issued to an external network, extra cost is not generated, the cost of the resource package test is saved, and the safety performance is good.
Drawings
FIG. 1 is a flow chart of a method of supporting a local preview test of a resource package in accordance with the present invention;
FIG. 2 is a schematic structural diagram of a system for supporting local preview test of a resource package according to the present invention;
[ description of reference ]
1. A terminal supporting local preview test of resource packets; 2. a first memory; 3. a first processor; 4. a second memory; 5. a second processor.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, a method for supporting a local preview test of a resource package includes:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
From the above description, the beneficial effects of the present invention are: no matter the Android device or the IOS device is in the same local area network with the development end, the local area network download address list of the resource package to be downloaded to be tested can be obtained in a two-dimensional code scanning mode, the local area network download address of the resource package to be tested is selected to be downloaded to run and test, the development and test efficiency is improved, the resource package is stored locally, cloud storage is not needed, the resource package does not need to be issued to an external network, extra cost is not generated, the cost of the resource package test is saved, and the safety performance is good.
Further, still include:
and the test end scans and analyzes the two-dimensional code to obtain a local area network download address list of the resource packet.
As can be seen from the above description, the two-dimensional code is scanned and analyzed to obtain the local area network download address list of the resource package, which facilitates the download selection of the tester.
Further, the testing end downloads the resource package to be tested according to the local area network downloading address list of the resource package.
From the above description, it can be known that the resource package to be downloaded can be downloaded and obtained in the local area network download address list of the resource package according to the test requirement, which is convenient for the test.
Referring to fig. 2, a system for supporting a local preview test of a resource package includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, where the first processor implements the following steps when executing the first computer program:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
From the above description, the beneficial effects of the present invention are: no matter the Android device or the IOS device is in the same local area network with the development end, the local area network download address list of the resource package to be downloaded to be tested can be obtained in a two-dimensional code scanning mode, the local area network download address of the resource package to be tested is selected to be downloaded to run and test, the development and test efficiency is improved, the resource package is stored locally, cloud storage is not needed, the resource package does not need to be issued to an external network, extra cost is not generated, the cost of the resource package test is saved, and the safety performance is good.
The system further comprises a second memory, a second processor and a second computer program which is stored in the second memory and can run on the second processor, and is characterized in that the second processor implements the following steps when executing the second computer program:
and the test end scans and analyzes the two-dimensional code to obtain a local area network download address list of the resource packet.
As can be seen from the above description, the two-dimensional code is scanned and analyzed to obtain the local area network download address list of the resource package, which facilitates the download selection of the tester.
Wherein the second processor, when executing the second computer program, further implements the steps of:
and the test terminal downloads the resource package to be tested according to the local area network downloading address list of the resource package.
From the above description, it can be known that the resource package to be downloaded can be downloaded and obtained in the local area network download address list of the resource package according to the test requirement, which is convenient for the test.
Example one
Referring to fig. 1, a method for supporting a local preview test of a resource package includes:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
And the test end scans and analyzes the two-dimensional code to obtain a local area network download address list of the resource packet.
And the test end downloads the resource package to be tested according to the local area network downloading address list of the resource package.
Specifically, when a developer uses a testing end to perform testing operation, a loading button is displayed on the right side of the local area network downloading address of each resource package in the local area network downloading address list of the resource package, the developer can download the resource package to be tested only by clicking the loading button, and the resource content in the resource package can be displayed after the downloading is completed.
Example two
Referring to fig. 2, a system 1 for supporting local preview test of a resource package includes a development end and a test end, where the development end includes a first memory 2, a first processor 3 and a first computer program stored in the first memory 2 and operable on the first processor 3, the test end includes a second memory 4, a second processor 5 and a second computer program stored in the second memory 4 and operable on the second processor 5, and the first processor 3 and the second processor 5 implement the steps in the first embodiment when executing the computer programs.
In summary, according to the method and the terminal for supporting the local preview test of the resource package, whether the Android device or the IOS device is in the same local area network as the development end, the local area network download address list of the resource package to be downloaded to be tested can be obtained by scanning the two-dimensional code, and the local area network download address of the resource package to be tested is selected for downloading to run and test, so that the development and test efficiency is improved, the resource package is stored locally, cloud storage is not needed, the resource package does not need to be released to the external network, no extra cost is generated, the cost of the resource package test is saved, and the safety performance is good.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.
Claims (6)
1. A method for supporting local preview test of a resource package is characterized by comprising the following steps:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
2. The method for supporting the local preview test of the resource package according to claim 1, further comprising:
and the test end scans and analyzes the two-dimensional code to obtain a local area network download address list of the resource packet.
3. The method for supporting the local preview test of the resource package according to claim 2, wherein the test end downloads the resource package to be tested according to the local area network download address list of the resource package.
4. A system for supporting a local preview test of a resource package, comprising a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor, wherein the first processor implements the following steps when executing the first computer program:
s1, the development end stores the resource packet locally, establishes a local HTTP server, connects with a local area network and acquires a local area network IP address, and generates a local area network download address of the resource packet according to the HTTP service port of the HTTP server and the local area network IP address;
and S2, converting a local area network download address list formed by the local area network download addresses into a two-dimensional code by the development end, and sending the two-dimensional code to a user interface for displaying.
5. The system of claim 4, further comprising a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor, wherein the second processor, when executing the second computer program, performs the steps of:
and the test end scans and analyzes the two-dimensional code to obtain a local area network download address list of the resource packet.
6. The system of claim 5, wherein the second processor, when executing the second computer program, further performs the steps of:
and the test terminal downloads the resource package to be tested according to the local area network downloading address list of the resource package.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011450337.4A CN112631899A (en) | 2020-12-09 | 2020-12-09 | Method and system for supporting local preview test of resource package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011450337.4A CN112631899A (en) | 2020-12-09 | 2020-12-09 | Method and system for supporting local preview test of resource package |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112631899A true CN112631899A (en) | 2021-04-09 |
Family
ID=75310062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011450337.4A Pending CN112631899A (en) | 2020-12-09 | 2020-12-09 | Method and system for supporting local preview test of resource package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112631899A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104967668A (en) * | 2015-05-28 | 2015-10-07 | 百度在线网络技术(北京)有限公司 | Inter-equipment file transmission method, apparatus and system based on WIFI hot spot |
CN105743953A (en) * | 2014-12-11 | 2016-07-06 | 广州市动景计算机科技有限公司 | Method and system for file download, and router |
KR101911429B1 (en) * | 2018-07-27 | 2018-10-24 | 김영홍 | Integrated network sharing system having security function |
-
2020
- 2020-12-09 CN CN202011450337.4A patent/CN112631899A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105743953A (en) * | 2014-12-11 | 2016-07-06 | 广州市动景计算机科技有限公司 | Method and system for file download, and router |
CN104967668A (en) * | 2015-05-28 | 2015-10-07 | 百度在线网络技术(北京)有限公司 | Inter-equipment file transmission method, apparatus and system based on WIFI hot spot |
KR101911429B1 (en) * | 2018-07-27 | 2018-10-24 | 김영홍 | Integrated network sharing system having security function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445583B (en) | Page display method, equipment and system | |
CN107133180B (en) | Dynamic page testing method, testing device and storage medium | |
CN109857515B (en) | Bridge communication method, device, equipment and computer readable storage medium | |
WO2018223717A1 (en) | Webpage front-end testing method, device, system, apparatus and readable storage medium | |
US20090082008A1 (en) | Mobile Phone Code Debugging Method and Apparatus | |
CN110808897A (en) | Proxy access method, user equipment, storage medium, device and system | |
CN107291759B (en) | Method and device for processing browser page resources | |
CN104821954A (en) | Cross-platform remote procedure call method | |
CN108399119B (en) | Method and device for data processing and automatic testing of browsing service kernel engine | |
CN103825783A (en) | Test method and device | |
CN108614767A (en) | A kind of remote debugging method and device | |
CN110096380B (en) | Android internal communication method, system, device and storage medium | |
CN112202824B (en) | Network resource access processing method and device, server and terminal | |
JP2023523242A (en) | DATA PROCESSING METHOD, DATA PROCESSING APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM | |
CN113064685A (en) | H5 page loading method and device | |
CN106649109A (en) | Web testing method and system of intelligent terminal | |
CN112631649A (en) | Intelligent contract management method, device, terminal equipment and medium | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN109729346B (en) | Remote debugging method and system for television, debugging terminal and television terminal | |
CN109710280B (en) | Method and equipment for installing application on user equipment | |
CN112631899A (en) | Method and system for supporting local preview test of resource package | |
CN107391132B (en) | Method, device and equipment for target App to execute preset action | |
CN110825622A (en) | Software testing method, device, equipment and computer readable medium | |
CN115080109A (en) | Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development | |
CN113505036B (en) | Application monitoring method, client and server |
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 | ||
CB02 | Change of applicant information |
Address after: 350028 Jinshan Juyuan Industrial Park project a, No.18, West Third Ring Road, Jianxin Town, Cangshan District, Fuzhou City, Fujian Province Applicant after: Baobao Bus Co.,Ltd. Address before: 350001 15 / F, building 3, area F, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province Applicant before: FUZHOU ZHIYONG INFORMATION TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210409 |
|
RJ01 | Rejection of invention patent application after publication |