MLchartDataset catalogue

Patent · US2021011840A1 · A1 · US

Software testing method, system, apparatus, device medium, and computer program product

(11) Publication number
US2021011840A1
(21) Application number
16/979,570
(22) Filing date
2019-12-26
(30) Priority date
2019-01-03
(43) Publication date
2021-01-14
(51) IPC
G06F 11/36; G06F 8/41; G06F 8/60
(52) CPC
  • G06F Electric digital data processing: 11/3688, 11/3676, 11/368, 11/3684, 8/41, 8/60
(73) Assignee
BOE Technology Group Co Ltd
(72) Inventors
Suying ZHOU
(54) Title
Software testing method, system, apparatus, device medium, and computer program product
(57) Abstract

The present disclosure provides a software testing method, system, apparatus, device, medium, and computer program product. The method includes: acquiring, by an automated compilation and deployment platform, a first source code and first code information corresponding to the first source code; compiling and deploying, by the automated compilation and deployment platform, the first source code to obtain first deployment information of the first source code; creating a test-version software according to the first deployment information, and determining a first test case corresponding to the first code information according to a preset correspondence between code information and test cases; performing, by an automated testing platform, a functional test for the test-version software based on the first test case to obtain a test result. In the embodiments of the present disclosure, the correspondence between code information and test cases may be established in advance and preset.

Full text
View on Google Patents

Claims (1)

  1. A software testing method, comprising: acquiring, by an automated compilation and deployment platform, a first source code of a software to be tested and first code information corresponding to the first source code; compiling and deploying, by the automated compilation and deployment platform, the first source code to obtain first deployment information of the first source code; creating a test-version software according to the first deployment information, and determining a first test case corresponding to the first code information according to a correspondence between code information and test cases; performing, by an automated testing platform, a functional test for the test-version software based on the first test case to obtain a test result of the software to be tested. 2. The method according to claim 1, further comprising: creating a test task corresponding to the test-version software according to the first test case; transferring the test task to the automated testing platform via an automated testing platform interface, wherein the performing, by the automated testing platform, a functional test for the test-version software based on the first test case to obtain a test result including: determining, by the automated testing platform, a first test script corresponding to the first test case based on the test task; performing, by the automated testing platform, the functional test for the test-version software based on the first test script, to obtain the test result. 3. The method according to claim 1, further comprising: generating vulnerability information in respond to that the test result indicates that the test fails; obtaining a second source code based on the vulnerability information, wherein the second source code is compiled and deployed by the automated compilation and deployment platform, to obtain second deployment information of the second source code. 4. The method according to claim 1, wherein the compiling and deploying, by the automated compilation and deployment platform, the first source code to obtain first deployment information of the first source code includes: compiling, by the automated compilation and deployment platform, the first source code to obtain a first executable code; deploying, by the automated compilation and deployment platform, the first executable code to a testing device to obtain the first deployment information. 5. The method according to claim 1, further comprising: recording a testing process data; generating a testing process statistical report based on the testing process data, wherein the testing process data includes at least one of test result data, vulnerability information data, and test case usage data. 6 - 10. (canceled) 11. A software testing apparatus, comprising an automated compilation and deployment platform, an automated software testing management system and an automated testing platform, the automated software testing management system being configured with an automated compilation and deployment platform interface and an automated testing platform interface, the automated software testing management system calling and exchanging data with the automated compilation and deployment platform via the automated compilation and deployment platform interface, the automated software testing management system calling and exchanging data with the automated testing platform via the automated testing platform interface, wherein the automated compilation and deployment platform is configured to obtain a first source code of a software to be tested and first code information corresponding to the first source code, compile the first source code to obtain a first executable code, and deploy the first executable code to a testing device via the automated compilation and deployment interface to obtain first deployment information of the first source code; the automated software testing management system is configured to determine a first test case corresponding to the first code information according to a preset correspondence between code information and test cases, and obtain a test-version software of the first source code according to the first deployment information; the automated testing platform is configured to perform a functional test for the test-version software based on the first test case to obtain a test result of the software to be tested. 12. The apparatus according to claim 11, wherein the automated software testing management system is further configured to: create a test task corresponding to the test-version software according to the first test case; transfer the test task to the automated testing platform via the automated testing platform interface, the automated testing platform is configured to: determine a first test script corresponding to the first test case based on the test task; perform the functional test for the test-version software based on the first test script to obtain the test result. 13. The apparatus according to claim 11, wherein the automated software testing management system is further configured to: receive the test result from the automated testing platform via the automated testing platform interface; generate vulnerability information in response to that the test result indicates that the test fails; obtain a second source code based on the vulnerability information, the automated compilation and deployment platform is further configured to compile and deploy the second source code; the automated software testing management system is configured to determine a second test case corresponding to the second code information according to the preset correspondence between code information and test cases, and obtain a test-version software of the second source code according to the second deployment information. 14. The apparatus according to claim 13, wherein the automated software testing management system is further configured to: receive a testing process data; generate a testing process statistical report based on the testing process data, wherein the testing process data includes at least one of test result data, vulnerability information data, and test case usage data. 15. A device for software testing, comprising: a processor; and a memory, wherein the memory has a computer-readable code stored therein, and when the computer-readable code is executed by the processor, the software testing method of claim 1 is executed. 16. (canceled) 17. (canceled)

Description

This application claims the priority of Chinese patent application No. 201910005305.4 filed on Jan. 3, 2019, the entirety of which is incorporated herein by reference as a part of this application.

The present disclosure relates to a field of testing technology, and in particular to a software testing method, system, apparatus, device, medium, and computer program product.

Software testing (or program testing) is a process of verifying correctness, completeness, safety, and quality of the software by comparing a difference between actual output and expected output. Usually, this process includes operating the software under specified service conditions, to determine whether the software meets design requirements. Thus, the quality of the software is evaluated.

At present, a prevailing method of software testing is to manually perform functional tests and record test results. However, in the entire testing process, key functions of the tests need to be determined manually, so it is greatly affected by human factors. Especially, inexperienced testers often find it difficult to accurately determine a test scope. This will lead to blind spots in the testing of software functions, thus reducing the comprehensiveness of functional testing.

Record as JSON
{
  "publication_number": "US2021011840A1",
  "country": "US",
  "kind": "A1",
  "title": "Software testing method, system, apparatus, device medium, and computer program product",
  "abstract": "The present disclosure provides a software testing method, system, apparatus, device, medium, and computer program product. The method includes: acquiring, by an automated compilation and deployment platform, a first source code and first code information corresponding to the first source code; compiling and deploying, by the automated compilation and deployment platform, the first source code to obtain first deployment information of the first source code; creating a test-version software according to the first deployment information, and determining a first test case corresponding to the first code information according to a preset correspondence between code information and test cases; performing, by an automated testing platform, a functional test for the test-version software based on the first test case to obtain a test result. In the embodiments of the present disclosure, the correspondence between code information and test cases may be established in advance and preset.",
  "claims": [
    "1. A software testing method, comprising: acquiring, by an automated compilation and deployment platform, a first source code of a software to be tested and first code information corresponding to the first source code; compiling and deploying, by the automated compilation and deployment platform, the first source code to obtain first deployment information of the first source code; creating a test-version software according to the first deployment information, and determining a first test case corresponding to the first code information according to a correspondence between code information and test cases; performing, by an automated testing platform, a functional test for the test-version software based on the first test case to obtain a test result of the software to be tested. 2. The method according to claim 1, further comprising: creating a test task corresponding to the test-version software according to the first test case; transferring the test task to the automated testing platform via an automated testing platform interface, wherein the performing, by the automated testing platform, a functional test for the test-version software based on the first test case to obtain a test result including: determining, by the automated testing platform, a first test script corresponding to the first test case based on the test task; performing, by the automated testing platform, the functional test for the test-version software based on the first test script, to obtain the test result. 3. The method according to claim 1, further comprising: generating vulnerability information in respond to that the test result indicates that the test fails; obtaining a second source code based on the vulnerability information, wherein the second source code is compiled and deployed by the automated compilation and deployment platform, to obtain second deployment information of the second source code. 4. The method according to claim 1, wherein the compiling and deploying, by the automated compilation and deployment platform, the first source code to obtain first deployment information of the first source code includes: compiling, by the automated compilation and deployment platform, the first source code to obtain a first executable code; deploying, by the automated compilation and deployment platform, the first executable code to a testing device to obtain the first deployment information. 5. The method according to claim 1, further comprising: recording a testing process data; generating a testing process statistical report based on the testing process data, wherein the testing process data includes at least one of test result data, vulnerability information data, and test case usage data. 6 - 10. (canceled) 11. A software testing apparatus, comprising an automated compilation and deployment platform, an automated software testing management system and an automated testing platform, the automated software testing management system being configured with an automated compilation and deployment platform interface and an automated testing platform interface, the automated software testing management system calling and exchanging data with the automated compilation and deployment platform via the automated compilation and deployment platform interface, the automated software testing management system calling and exchanging data with the automated testing platform via the automated testing platform interface, wherein the automated compilation and deployment platform is configured to obtain a first source code of a software to be tested and first code information corresponding to the first source code, compile the first source code to obtain a first executable code, and deploy the first executable code to a testing device via the automated compilation and deployment interface to obtain first deployment information of the first source code; the automated software testing management system is configured to determine a first test case corresponding to the first code information according to a preset correspondence between code information and test cases, and obtain a test-version software of the first source code according to the first deployment information; the automated testing platform is configured to perform a functional test for the test-version software based on the first test case to obtain a test result of the software to be tested. 12. The apparatus according to claim 11, wherein the automated software testing management system is further configured to: create a test task corresponding to the test-version software according to the first test case; transfer the test task to the automated testing platform via the automated testing platform interface, the automated testing platform is configured to: determine a first test script corresponding to the first test case based on the test task; perform the functional test for the test-version software based on the first test script to obtain the test result. 13. The apparatus according to claim 11, wherein the automated software testing management system is further configured to: receive the test result from the automated testing platform via the automated testing platform interface; generate vulnerability information in response to that the test result indicates that the test fails; obtain a second source code based on the vulnerability information, the automated compilation and deployment platform is further configured to compile and deploy the second source code; the automated software testing management system is configured to determine a second test case corresponding to the second code information according to the preset correspondence between code information and test cases, and obtain a test-version software of the second source code according to the second deployment information. 14. The apparatus according to claim 13, wherein the automated software testing management system is further configured to: receive a testing process data; generate a testing process statistical report based on the testing process data, wherein the testing process data includes at least one of test result data, vulnerability information data, and test case usage data. 15. A device for software testing, comprising: a processor; and a memory, wherein the memory has a computer-readable code stored therein, and when the computer-readable code is executed by the processor, the software testing method of claim 1 is executed. 16. (canceled) 17. (canceled)"
  ],
  "description_excerpt": "This application claims the priority of Chinese patent application No. 201910005305.4 filed on Jan. 3, 2019, the entirety of which is incorporated herein by reference as a part of this application.\n\nThe present disclosure relates to a field of testing technology, and in particular to a software testing method, system, apparatus, device, medium, and computer program product.\n\nSoftware testing (or program testing) is a process of verifying correctness, completeness, safety, and quality of the software by comparing a difference between actual output and expected output. Usually, this process includes operating the software under specified service conditions, to determine whether the software meets design requirements. Thus, the quality of the software is evaluated.\n\nAt present, a prevailing method of software testing is to manually perform functional tests and record test results. However, in the entire testing process, key functions of the tests need to be determined manually, so it is greatly affected by human factors. Especially, inexperienced testers often find it difficult to accurately determine a test scope. This will lead to blind spots in the testing of software functions, thus reducing the comprehensiveness of functional testing.",
  "cpc": [
    "G06F 11/3688",
    "G06F 11/3676",
    "G06F 11/368",
    "G06F 11/3684",
    "G06F 8/41",
    "G06F 8/60"
  ],
  "ipc": [
    "G06F 11/36",
    "G06F 8/41",
    "G06F 8/60"
  ],
  "assignees": [
    "BOE Technology Group Co Ltd"
  ],
  "inventors": [
    "Suying ZHOU"
  ],
  "filing_date": "2019-12-26",
  "publication_date": "2021-01-14",
  "priority_date": "2019-01-03",
  "application_number": "US-201916979570-A",
  "family_id": "66299650",
  "cited_by_count": 12
}

Record 1,800 of 8,000 in Patents full text (MLC-0201). Request the full dataset.