Test Cases
Test cases are an indispensable element in software engineering and bug management. In practical work, writing test cases has always consumed a lot of time and energy from testers. Therefore, Cat2Bug Platform will support the use of test cases starting from 0.1.0, and in subsequent work, the goal will be to improve the quality of test cases and reduce maintenance time, continuously optimize the system and usage methods, and provide a more relaxed and convenient testing environment for everyone.
Test Case List
On the test case list page, the upper part is the data search option area; On the left is the module filtering area; The middle is the use case list data display area. We can filter and search the use case data by clicking on the left module or the filtering item above, as shown in the following figure:
Modify Test Cases
When clicking on a data item in the use case list, the use case details will pop up from the right side, which can be viewed and edited, as shown in the following figure:
Manually Creating Test Cases
Manually create for directly entering test case data into the Cat2Bug Platform platform, with the following steps:
- Firstly, click the "New Case" button on the upper right side of the page to open the test case creation interface from the right side, as shown in the following figure:
- In the new use case interface shown in the figure below, the first option marked in red is used for continuously creating use cases, and is selected by default.
- In Cat2Bug-Platform, all software system structures used for testing are based on deliverables, so test cases also need to be associated with deliverables. The following figure shows an example of selecting deliverables. If a deliverable does not currently exist, it can also be quickly created through the add function in the deliverable dropdown component.
- Set up testing steps. In the testing step options, the system provides two input methods:
The first type is displayed in a list format, where users can adjust the step content by clicking the [Add Steps] button or the [Add] and [Delete] icon buttons after each line of steps, and the order of steps can be changed by dragging the mouse;
The second method is displayed in text format, where users can quickly and uniformly input all steps according to standardized formats. In text mode, it is specified that each line has a step, and the [Description] and [Expected] attributes of each step are separated by "---". The example is as follows:
Open the refrigerator door---there is a door in the refrigerator
Put the elephant inside---the elephant can really be put inside
Close the refrigerator door
There are three icon buttons on the left side of the step to switch between different modes of the step:
- The first icon button displays both a list and text mode simultaneously;
- The second icon button is in display list mode;
- The third icon button is in display text mode;
- After entering all the data, click the [Create] button in the upper right corner to create a new use case.
Excel Import Test Cases
Excel import test cases is the same as other traditional defect management systems. We provide the function of importing test cases from Excel, which mainly considers that users can quickly transfer project data from some ongoing projects.
- Download test case templates
We provide a standard test case template format. Click the "Download Template" link button in the "Import Test Cases" dialog box to download the Excel template file. It is worth noting that the module options in this template are not mandatory (in the system, the module properties of test cases are mandatory). This mainly considers that the import of test cases can be completed smoothly even when the module structure is not fully maintained. The operation is shown in the following figure:
Prompt
The association between modules and test cases will not affect other operations, but only the ability to filter test cases based on modules
- Enter data in an Excel template
In the Excel template, columns with red headings are mandatory fields; Module, use case level, etc. are dropdown options, and currently Excel supports up to 65536 data entries.
It is worth mentioning that the format rules for the imported 【 Step 】 attributes are as follows
Calculate one step per row
The description and expectation of the steps are separated by 【 --- 】;
Open login page---The page has already been opened
Enter "Andy Lau" in Chinese in the username input box - it should prompt that only English and numbers can be entered
- Import
Import the maintained Excel file into the system. If the entered data is correct, the system will prompt for successful import, as shown in the following figure:
AI Creates Test Cases
Nowadays, popular artificial intelligence big data modeling technologies such as ChatGPT have indeed brought qualitative changes to people's lives. They have outstanding performance in natural semantic understanding and image generation. Therefore, we have also attempted to introduce them into testing work in Cat2Bug Platform 0.1.1 version.
The first consideration is to use it as a test case generation assistant, because in early October 2023, my company received a challenging project. Due to the short project delivery cycle, strict acceptance standards from Party A, and a large number of system functions, the company arranged for 5 people to work overtime during the National Day holiday period to write test cases for the project, in order to eliminate any issues that affect delivery, I think only colleagues on site can appreciate the sustained work intensity. Therefore, using AI to automatically generate test cases is the primary goal and basic requirement in testing work.
Creates Test Cases
At present, there are many third-party platforms on the market that create test cases through ChatGPT, Microsoft Copilot, Baidu Wenxin, and other platforms. However, most of them can only provide text descriptions in various formats through chat, and users need to modify the formats themselves and store them in project management or bug systems,
We considered this inconvenience during development, so we encapsulated it in the Cat2Bug ecosystem, allowing testers to input descriptions and search for them, and then automatically input them into the system. Below, I will introduce the process and usage tips of creating test cases using Cat2Bug AI.
In Cat2Bug-Platform V0.1.1 version, there is an additional "Cloud AI Case Generation" button in the upper right corner of the test case interface. Clicking on it will bring out the "Cloud AI Case Generation" interface from the right side, as shown in the following figure:
In the [Cloud AI Use Case Generation] interface, there are three areas: the upper side is the query area, the left side is the query use case result list, and the right side is the single use case editing area, as shown in the following figure:
In the top input box, enter the description of the test case you want to generate, click the search button, wait for 5 to 60 seconds, and the AI created test case data will be displayed below. Currently, a single query in the current version usually generates 10 test cases, as shown in the following figure:
When entering test case requirements, the carrier information to be tested should be described in detail as much as possible, such as business process, purpose, key content displayed, attributes of each content, testing standards and expectations. The more accurate the description, the more detailed the answer the robot can provide.
Additionally, it should be noted that currently clicking on [Search] has a certain probability of generating test cases failing. When this happens, continue searching again.
Optimize AI Generated Test Cases
Click on any of the test cases in the left [Test Case List] to modify their properties on the right, in order to optimize AI generated data through human intervention (note: there is no save button on the right, all changes will be reflected in the left list in real time);
Import Test Cases To The System
- Import a separate test case
In the [Test Case List], click the [Import] button on the right side of a test case to directly import it into the system, and display the [Imported] indicator in the status column. Importing the same use case multiple times by clicking the [Import] button will only modify this use case and will not generate multiple entries in the system. As shown in the following figure:
- Batch Import Test Cases
On the left side of the Test Case List, select multiple test cases that need to be imported into the system, click the Batch Import button above the list, and the Import dialog box will be displayed for batch setting of the modules associated with the test cases. Then, click the Confirm button to import all selected test cases into the system.
Prompt
If the association module for the use case has already been set separately before, the association relationship will not be overwritten here
With the blessing of AI, we can reduce the time spent writing test cases by more than 80%. This is the blessing that technology brings to each of us. A teacher once asked me what innovation is, and his answer was "information recombination".
Yes, in this world, it is difficult to discover more unknown new elements in a short period of time, and the vast majority of new things are the result of constantly recombining known elements. When we make software, we also constantly innovate on the basis of our predecessors. This is the joy of a developer.