The Improved STD Method for GUI Software in Collaboration between Testers and Programmers

Abstract

This research discussed the improved STD (State Transformation Diagram) method in GUI-oriented software testing for Windows application and mobile App scenarios. At first, systematical summary of the improved STD method is given, including new modification, layer division, drawing method, and applying procedure, and then the detail utilization method for two application scenarios was deeply investigated, including the Windows application and the mobile App. For the Windows application, the layer division should be adopted especially for complicated software system. For the App, test construction should be done by contrast in terms of testing paths and the improved state table with adding of return state. By factual representative examples, which example 1 performs graph drawing and computation with batch data input for Windows and example 2 is typical shopping App with setting, commodity choice and payment process, the result showed that the improved STD method can be effectively and efficiently used in GUI-oriented software testing including Windows application and the mobile App.

Share and Cite:

Tanli, M. , Xiao, J. and Zhang, G. (2026) The Improved STD Method for GUI Software in Collaboration between Testers and Programmers. Journal of Software Engineering and Applications, 19, 373-397. doi: 10.4236/jsea.2026.199015.

1. Introduction and Background

Rapid iterative process of update software development needs software testing more rapidly, more effectively and more precisely [1], especially considering the product evolution of mobile application software, and this requirement covers GUI aspect and traditional function/method aspect [2]-[5], e.g. GUI-oriented software testing including App testing, and traditional module testing such as API testing etc. In today’s software engineering, business data almost are dealt with mature DB, however business process is rapidly changing and usually need programmers precisely handling and delicately treatment [6] [7]. Meanwhile, update software more concern the interaction with users and tends to more state handling. As a consequence, this challenge will be transmitted to software testing, and its perfectly solution requires good technology and method [8] [9] to consider the state testing, in which the improved STD (State Transformation Diagram) [2]-[4] [10] method may be an advanced technique.

Generally, the business process can be computerization by software behaviour description in software engineering, and usual depiction tools include STD (State Transformation Diagram), SG (State Graph) of universal model language, and SD (Sequence Diagram). The STD is fitted to quickly use in design stage, programming stage and testing activity, especially for small developing organization e.g. the “Pair-wise” team [11] [12]. and the SG is more suitable for requirement analysis and concept design stage, and the SD focuses the interaction among objects and is difficult to apply in black box testing [13], however for real time embedded system, the SD may be applied with its feature.

The STD has been widely applied in research area and industry field, including software engineering area, system engineering area, control engineering area, embedded system etc. More often, the STD not only can be used in software programming but also can be applied in software testing, particularly including the improved STD. Of course, this STD will be distinguished in this two stages. For the former using field, the derivation of construction knowledge should be the user requirements and software analysis and design specification, but the latter should be design specification and even direct programming result, specially in small testing organization of “Pair-wise” mode. In fact, the improved state transformation diagram can be the same in both stages in some cases, however we should pay more attention to differences in the two stages. Main distinguishes include two aspects: 1) the diagram of the former should be profiled in order to consider the modification in programming process, and the diagram of the latter should more detailed. e.g. the partition of layers and sub-diagram in the former may be less, and that of layers and sub-diagram in the latter should be more. 2) the diagram of the former may be general or non-specific, but the diagram of the latter must be precise and easy-to-understand. e.g. the prompt message of error handling of the former may be a unified statement, however the prompt message of error handling of the latter must be clear and directly face-to-user.

In software testing, G. J. Myers and Patton Ron, etc. [3] [4] introduced the state transformation diagram to general software testing. And Li F., etc. [2] considered that the state transformation diagram is an important method in software engineering. Our research team have applied the state transformation diagram in continuous software testing practise, and continuously improved this method according to summary of the practical experience.

2. Methodology

Summing our software testing practice [11]-[15], we conclude that the improved STD is a good choice to tackle the state testing problem. Meanwhile, there is a good advantage of using STD by the mean of the smooth linkage and cooperation between programmers and testers.

2.1. Improvement of STD

As above described, the STD (State Transforming Diagram) is used to depict the behavior process of object with four elements of state block, event edge and label, action label and end point [2] [4]. However, in the software testing activity, we found that the traditional diagram in software testing is more complex since too many diagram entities or units and the diagram is not very clear with too many labels [11] [13]-[15]. Consequently, we proposed the definition of the improved STD, as shown in Figure 1, in which the start point was added [11] and the action label was deleted [12], and then the diagram would be more clear and simply and easy to understand.

Figure 1. The composition and representation of the improved STD.

2.2. Layers of the Improved STD

G. J. Myers said “Testing is a destructive process”. In deed, the state testing of GUI software using the improved STD should be a destructive process, not only for drawing the diagram but also for executing the testing work. At first, we should construct the layer view or stratification view for complex diagram. And the layer view of the improved STD is shown in Figure 2, and it demonstrates the relationship among layers and diagrams. In Figure 2, only two layers are given to clear the effect of the figure. You can find that there three sub-diagram in the lower layer, i.e. the second layer, and the composition of every sub-diagram may different, because they have different kind of elements.

Figure 2. The layer view of the improved STD.

2.3. Drawing of the Improved STD

In state testing of GUI software, the improved STD should be adopted. As above demonstrated, by empirical summary, we consider that “the action element” may omitted in the improved STD [12], because its expression can be determined by “the event element” in traditional STD, and it will decrease the complexity of the improved STD with less repeated components. Following demonstrates the elements of the improved STD and its drawing method in detail.

1) The start point

As above described in Figure 1, the entity “●” presents the start point of the improved STD diagram, and it is proposed since certain state with specific control and event is existed to start for a serial state transforming in the GUI software. Consequently, in drawing of the diagram, the size of the start state unit should be 10 - 15 times of line width of linked line with black colour, and is placed at the top or left of the overall diagram.

2) The state block

Generally, the state block is used to present states except the start point and the end point. The unit block of the state usually apply a rectangle to describe, in which the specified state description is located in the middle site. If it is necessary, the state block can be replaced using a single point, which the the specified state description must be labeled in the diagram.

3) The event edge and label

The unit of the event usually apply a line with an arrow that represent the direction of transformation, and the specified event description is generally located on the up side or the left side.

4) The end point

Similarly, as above demonstrated in Figure 1, the entity “⊙” presents the end point of the improved STD diagram, and it is more meaningful with its graphical representation and expressiveness. As a consequence, in drawing of the diagram, the size of the end state unit should be 10 - 20 times of line width with black colour which external circle is apart from interior with 1 - 3 line widths, and the end point is placed at the bottom or right of the diagram.

For drawing’s details of the improved STD, some considerations and cares should be taken as follows:

  • All states of program execution must be considered including normal states and abnormal states, and all sub-diagrams must be divided correctly and precisely.

  • The “return state” should be paid more attention in drawing.

  • Each label and each edge of the event must be described clearly and completely, but in brief.

2.4. The Application Procedure of the Improved STD

The procedure of state testing with improved STD could be given as follows, and the detail of demonstration is shown in Figure 3.

Figure 3. The application procedure of the improved STD.

  • According to requirement of testing manager and factual software, determines object and scope of software testing.

  • A tester receives the finished code/program from programmers, and does necessary analysis including FTA [16]. If in the “Pair-wise” team, one programmer acted as a tester in cross-testing of unit testing [11] [12].

  • According to the factual software situation, performs test design of data constraint testing and function testing in detail [14] [15].

  • Do analysis of the actual behavior and process of testing object for the factual software, and then drawing of the improved STD [15] including layer division. Simultaneously, the respective disposing is considered at once based on actual running process, especially the exception handling.

  • By the finished STD, test cases for state testing are consequently constructed [14] [17].

  • Finally, executes the state testing and takes record and report [15].

Because update software type and applied scenario are different, software state testing method and the key point of the improved STD applying are also different. On the one hand, by distinguishing the testing objects, some scenarios will use multiple layers in the improved STD, and some scenarios will apply less layers in the improved STD, and others may do not use layer in drawing the improved STD. On the other hand, in terms of distinguished requirement of software safety, the state testing must adopt different level [2], e.g. 0-switch, or 1-switch, etc. Hence, the application of the improved STD should be varied according to factual testing scenarios.

3. Multiple-Layer STD for Windows Application with Complicated Process

As mentioned above, in behavior analysis of complicated software process, the partition of diagram layer of the improved STD aims to deepen the degree of clearness and easy-to-understand for programmers and testers. In partitioning of diagram layer, the number of divided layers should be given in terms of the factual situation of SUT (System Under Testing) [18]. For the rigid requirement of critical safety software [8] [9] and key module with windows application mode, some considers and measures must be considered, the details is shown as follows.

  • Besides the system-level state testing, the white-box method should be strictly executed in critical safety system, e.g. mutation testing etc.

  • State testing of key module must be separately done and be divided into individual and independent sub-diagram.

Example 1—The GUI Implementation of Prim Algorithm

In algorithm area, the Prim algorithm is a classic and very important algorithm for computing minimum link by getting the minimum spanning tree. As a result, the Figure 4 has illustrated the Prim algorithm and testing examples [19]. In graduate course “Graph Theory”, the Prim algorithm is an essential part of the course. As a consequence, the GUI implementation of Prim algorithm is assigned by teacher for wide range exercise and programming project of graduate students, and this programming project is programmed by Visual C++, which used two examples in Figure 4.

According to programming codes and GUI result [20] submitted by student programmers as required in Figure 4, the state testing of this programming project is more complicated than before [21] [22]. And in order to decrease the difficulty of the improved STD, the improved STD of this project may be divided into two layers, i.e. overall layer and its sub-layer. Consequently, the diagram can be partitioned into three parts as shown in Figure 5: 1) overall view of the improved STD for state testing, 2) sub-diagram of the improved STD of drawing - I, 3) sub-diagram of the improved STD of deciding minimum link step by step - II. Subsequently, I and II of Figure 5 must be refined in terms of actual status of the software, and results are shown in Figure 6 and Figure 7.

(a)

(b)

Figure 4. The Prim algorithm and examples. (a) The prim algorithm, (b) The testing examples.

Figure 5. The improved STD of overall view for the Trim algorithm example.

Figure 6. The improved STD of “Drawing connected graph”.

Figure 7. The improved STD of “Computing the minimum link of graph”.

As a consequence, we can construct the test cases of this project according to the improved STD shown in Figures 5-7. In this procedure, previous disposing method [12] [14] [15] can be kept and the construction process is not very difficult, but carefulness should be taken to avoid error and omission. And details of test cases are listed in Appendix Table A1.

Furthermore, the testing environment should be consistent with programming and running setup. Here, the basic system requirement is the PC with more than 2G of memory and Windows XP. Additionally, in order to entirely test the performance of this Prim project, besides two testing examples in Figure 4, another testing example that there are different weights with the same vertexes and sides can be given.

4. State Testing with STD for Mobile App

The mobile computing has become a more and more popular software technology, especially with the emerging of intelligent phone, the rapid development of mobile application on smartphone has boosted the boom of “App”. And the “App” is a kind of application in GUI software family [14], however, the programming and deployment of the “App” have some different aspects from traditional Windows application. Hence, particular handling should be done for the state testing of mobile “App”, e.g. the return state tackling must added and more attention should be taken in the the state table of the improved STD.

In the practise of software testing, especially for update GUI software, the subjective requirement of software testing are distinguished for various factual software [23]. For instance, the requirement of some testing items may decreased for some popular software even delaying the testing time, however, that of the critical safety software must be rigidly tackled. Furthermore, in one software system, modules are different from each other to the requirement of magnificence and safety, and the module testing should be done with distinguished disposing. For the rigid requirement of critical safety software and key module with App mode, besides strict tackling in data-constraint testing, some measures must taken into account in state testing, the details is shown as follows.

  • The return sate must be added and taken care to tackle.

  • Base/key return state should chosen according to actual running and visiting situation.

  • State testing of key module must be separately done and be divided into individual and independent sub-diagram in the respective layer.

4.1. Factual Example—The State Testing of Buying Process in E-Business

Chinese E-Business has been mature with the most advanced technology and the most quantity of user in the world. The E-Business software platform is one of the very important support base, and it is a synthesis of update software technology and advanced network technology. Here, we use the buying/shopping process of the E-Business software platform to demonstrate the application of the improved STD method for sate testing, other scenarios have similarity at some extent and can be disposing with similar method.

The buying/shopping process in E-Business is a relative complex behavior, and it generally can be divided into two layers for the improved STD with three sub modules, as shown in Figures 8-11. As described above, in drawing the improved STD, the overall view of STD should firstly conducted. At the same time, the key module or part should be individually depicted. Consequently, Figure 8 is the improved STD of overall view for E-business shopping, of course, it is the top layer. Meanwhile, the second layer includes three parts, Figure 9 illustrated the improved STD of “Shopping setting”, and Figure 10 demonstrated the improved STD of “Shopping trolley”, and Figure 11 depicted the improved STD of “Shopping payment”.

For the state testing of App, the improved STD should be transferred to the testing path and the improved state table, and then the test cases are constructed in terms of the testing path and this state table. However, following should been paid attention in the process of test case construction:

  • The return sate of each path at the tail end should be added to test.

  • Other necessary return sate should be supplied to test.

  • Testing other abnormal state transforming in terms of state table.

Figure 8. The improved STD of overall view at the top layer.

Figure 9. The improved STD of “Shopping setting” at the lower layer.

Figure 10. The improved STD of “Shopping trolley” at the lower layer.

Figure 11. The improved STD of “Shopping payment” at the lower layer.

4.1.1. Construction of Test Cases for “Shopping Setting” Sub-Diagram

Consequently, as demonstrated above, the testing path should be previously conducted, and it can be directly obtained from the improved STD, i.e. Figure 9, but the return state testing must be added, and the consequent state table should be drawn for conducting abnormal state transformation testing. For all these aspects, the details of test construction in “Shopping setting” sub-diagram is shown as follows.

1) Testing paths of “Shopping setting” sub-diagram, according to Figure 9, are:

a) P1: S0 - e1 - S1 - e2 - S2 - e3 - S3 - e4 - S4 - er4 - S3;

b) P2: S0 - e1 - S1 - e2 - S2 - e3 - S3 - e5 - S5 - er5-1 - S3;

c) P3: S0 - e1 - S1 - e2 - S2 - e3 - S3 - e5 - S5 - er5-2 - S3;

d) P4: S0 - e1 - S1 - e2 - S2 - e6 - S6 - e7 - S7 - er7 - S6;

e) P5: S0 - e1 - S1 - e2 - S2 - e6 - S6 - e8 - S8 - e10 - S10 - er10 - S6;

f) P6: S0 - e1 - S1 - e2 - S2 - e6 - S6 - e8 - S8 - e9 - S9 - er9 - S6;

g) P7: S0 - e1 - S1 - e2 - S2 - e6 - S6 - e8 - S8 - e11 - S11 - e12 - S12 - er12 - S6.

However, the execution of copy in state S10 should be verified, so the following path was added.

h) P5a: S0 - e1 - S1 - e2 - S2 - e6 - S6 - e8 - S8 - e10 - S10 - er10 - S6 - e7 - S7 - er7 - S6.

2) Simultaneously, we can get the improved state table according to above Figure 9, and details are shown in Table 1. In Table 1, the top row and left column are all relative states, and items of other rows and columns are events referring to transformation between the row state and the column state. We can find that the layout of the improved state table is different from traditional state table, it is because: a) the number of events is probably too more than the situation of traditional state table, b) the return event must be added for the App situation. At the same time, in Table 1, it is notice that symbol “-” implies empty transformation and symbol “/” is abnormal transformation, and these two patterns are not permitted. Furthermore, the tester can mark “base states/key states” in the improved state table which the programmer can determine based on the base node/key node of user visiting. In Table 1, “base state/key state” is “S2, S3, S6”.

Table 1. The improved state table of “Shopping setting” sub-diagram.

S0

S1

S2

S3

S4

S5

S6

S7

S8

S9

S10

S11

S12

S0

-

e1

/

/

/

/

/

/

/

/

/

/

/

S1

er1

-

e2

/

/

/

/

/

/

/

/

/

/

S2

/

er2

-

e3

/

/

e6

/

/

/

/

/

/

S3

/

/

er3

-

e4

e5

/

/

/

/

/

/

/

S4

/

/

/

er4

-

/

/

/

/

/

/

/

/

S5

/

/

/

er5-1 er5-2

/

-

/

/

/

/

/

/

/

S6

/

/

er6

/

/

/

-

e7

e8

/

/

/

/

S7

/

/

/

/

/

/

er7

-

/

/

/

/

/

S8

/

/

/

/

/

/

er8

/

-

e9

e10

e11

/

S9

/

/

/

/

/

/

er9

/

/

-

/

/

/

S10

/

/

/

/

/

/

er10

/

/

/

-

/

/

S11

/

/

/

/

/

/

/

/

/

/

/

-

e12

S12

/

/

/

/

/

/

er12

/

/

/

/

/

-

Consequently, some testing paths for return state transformation should be added in terms of Table 1, which there are not annotation in the above, they are:

a) P1r0: S1 - er1 - S0;

b) P1r1: S2 - er2 - S1;

c) P1r2: S3 - er3 - S2;

d) P4r0: S6 - er6 - S2;

e) P4ra: S7 - er7 - S6;

f) P5r0: S8 - er8 - S6.

At the same time, abnormal transformation testing should be added according to Table 1, in which the no-effective transformation are on the diagonal with symbol “-”, and the error transformation are annotated with symbol “/”. The testing method of abnormal transformation mainly use the return operation including event of clicking bottom “<” and particular controls on the App.

In terms of above analysis, we can construct the test suite of “Shopping setting” sub-diagram, details are shown in Appendix-Table A2 and Table A3.

4.1.2. Construction of Test Cases for “Shopping Trolley” Sub-Diagram

Similarly, test construction in “Shopping trolley” sub-diagram should include three aspects: 1) test cases transformed from paths of “Shopping trolley” sub-diagram; 2) test cases added from return state transformation; 3) test cases of abnormal state transformation. And the details is discussed as follows.

1) Testing paths of “Shopping trolley” sub-diagram, according to Figure 10, are:

a) P1: S0 - e1-1 - S1-1 - e1-2 - S1-2 - e1-3 - S1-3 - e2 - S2-1;

b) P2: S0 - e1-1 - S1-1 - e1-2 - S1-2 - e4 - S3;

c) P3: S0 - e2-1 - S2-1 - e2-2 - S2-2 - e3 - S3.

2) Concurrently, we can get the improved state table according to the Figure 10, as shown in Table 2. Of course, the Table 2 is also different from traditional state table, and the tester can find the “base state/key state” given by the programmer which was determined based on the base node/key node of user visiting. In Table 2, “base/key state” is “S2-1”.

Table 2. The improved state table of “Shopping trolley”.

S0

S1-1

S1-2

S1-3

S2-1

S2-2

S3

S0

-

e1-1

/

/

e2-1

/

/

S1-1

er1-1

-

e1-2

/

/

/

/

S1-2

/

er1-2

-

e1-3

/

/

e4

S1-3

/

/

er1-3

-

e2

/

/

S2-1

er2-1

/

/

/

-

e2-2

/

S2-2

/

/

/

/

er2-2

-

e3

S3

/

/

/

/

/

er3

-

As a consequence, some testing paths for return state transformation should be added according to Table 2, which there are not annotation in the above, they are:

a) P1r0: S1-3 - er1-3 - S1-2;

b) P1r1: S1-2 - er1-2 - S1-1;

c) P1r2: S1-1 - er1-1 - S0;

d) P2r0: S2-2 - er2-2 - S2-1;

e) P2r1: S2-1 - er2-1 - S0;

f) P3r0: S3 - er3 - S2-2.

Additionally, by the improved state table, we can find redundant and meaningless transformation between two states, because this table can be taken as a matrix to depict the actual transforming relation.

Similarly, we add abnormal transformation testing according to Table 2, mainly including no-effective transformation on the diagonal with symbol “-” and error transformation of other elements with symbol “/”. Of course, the testing method of abnormal transformation mainly use the return operation including event of clicking bottom “<” and particular controls on the App too.

In terms of above analysis, construction result of the test suite of “Shopping trolley” sub-diagram are shown in Appendix-Table A4 and Table A5.

4.1.3. Construction of Test Cases for “Shopping Payment” Sub-Diagram

In fact, payment is the key behavior and process in E-business shopping and involves safety problem, therefore, “Shopping payment” sub-diagram is independently divided into one part. Similar to the above, construction of test suite in “Shopping payment” sub-diagram should include test cases from testing paths, test cases added from return state transformation, and test cases of abnormal state transformation.

1) According to Figure 11, testing paths of “Shopping payment” can be generated as following:

a) P1: S0 - e1 - S1 - e2 - S2 - e5 - S5;

b) P2: S0 - e1 - S1 - e3 - S3 - er3 - S1;

c) P3: S0 - e4 - S4 - er4 - S0.

2) Simultaneously, we can get the improved state table according to above Figure 11, as shown in Table 3. In Table 3, the meaning of rows and columns is the same as the above. At the same time, in Table 3, “base state/key state” is “S0, S1”. Consequently, some return state testing can be added in terms of Table 3, they are:

Table 3. The improved state table of “Shopping payment”.

S0

S1

S2

S3

S4

S5

S0

-

e1

/

/

e4

/

S1

er1

-

e2

e3

/

/

S2

/

/

-

/

/

e5

S3

/

er3

/

-

/

/

S4

er4

/

/

/

-

/

S5

/

/

/

/

/

-

  • P1r0: S1 - er1 - S0.

Finally, we add abnormal transformation testing according to Table 3, mainly including no-effective transformation on the diagonal with symbol “-” and error transformation of other elements with symbol “/”. Of course, the testing method of abnormal transformation also use the return operation including event of clicking bottom “<” and particular controls on the App.

According to above analysis, construction result of the test suite of “Shopping payment” sub-diagram are shown in Appendix-Table A6 and Table A7.

4.1.4. Construction of Test Cases for “Overall View” Diagram-The Top Layer

Construction of test cases for “Overview” diagram is assigned at the last, mainly because some modifications and tunes may be taken, especially after variety occurred in the programming, and then the overview diagram constructed by App programmer and tester must be adjusted and modified accordingly. Here, it should be noticed that “S4” is the same as “S0” and is specially given only because distinguishing with event of clicking bottom “<” and particular controls on the App. Similarly, the testing path can be directly obtained from the overview diagram of Figure 8, and the details is shown as follows.

a) P1: S00 - e0 - S0 - e1 - S1 - e11 - S11 - e5 - S0;

b) P2: S00 - e0 - S0 - e1 - S1 - e12 - S12 - e5 - S0;

c) P3: S00 - e0 - S0 - e21 - S21 - e6 - S0;

d) P4: S00 - e0 - S0 - e22 - S22 - e6 - S0;

e) P5: S00 - e0 - S0 - e22 - S22 - e3 - S3 - e4 - S31 - e7 - S0.

Additionally, some return state testing should be added, they are:

f) P1r0: S00 - e0 - S0 - er0 - S00.

Simultaneously, we can get the improved state table according to above Figure 8, as shown in Table 4. In Table 4, the top row and left column are states and values of other rows and columns are events too. It is also notice that symbol “-” implies empty transformation and symbol “/” is abnormal transformation, and these two patterns are not permitted.

Table 4. The improved state table of “Overall view” diagram.

S00

S0

S1

S2

S3

S4

S00

-

e0

/

/

e4

/

S0

er0

-

e1

e21 or e22

/

the same

S1

/

e5

-

/

/

er1

S2

/

e6

/

-

e3

er2

S3

/

e7

/

er3

-

/

S4

er0

the same

e1

e21 or e22

/

-

At last, we add abnormal transformation testing according to Table 4, mainly including no-effective transformation on the diagonal with symbol “-” and error transformation of other elements with symbol “/”. Notice here, there are similar two methods to test abnormal transformation, we can use the return operation besides by event of clicking bottom “<”, can also use particular controls “Return” on the sheet of App.

Summing, construction result of the test suite of “Overall view” diagram is shown in Appendix-Table A8 and Table A9.

5. Result and Discussion

Over time, for all things, new situations are merging and new solutions should be adopted. In the field of software testing, the testing object is changed from Windows application to mobile App with the emerging of smart phone, the testing point is transformed from internal function to class and its implementation, and the testing dimension is altered from no or a few states to many states in state testing.

For GUI software, the improved STD and the improved state table are put forward in this research, needless to explain, the improved STD is generated from a lot of practice of GUI-oriented software testing, and the improved state table is also concluded from the practice to solve the factual problem in the App programming and testing. Therefrom, the improved STD method has general applicability in GUI-oriented software testing and programming including Windows application and the mobile App.

For application of the improved STD in Windows software and the mobile App, we proposed the method of layer division for relatively complicated scenario. Considering applicable generality, if the more complicated scenario should give more layer divisions if it is necessary, e.g. the Figure 9 of “the improved STD of ‘Shopping setting’” can be divided into two sub-diagrams. Of course, if the improved STD is very simple in overview, the layer division may be not necessary.

Because there are two modes of dialogue handling in Windows application, the control flow is more easy for Windows system. However, the mobile App is lack of this mechanism, the complexity of the control flow of the App should be considered for App programmers. As a optional suitable solution, the improved state table can be regarded as a designing and correct tool for App programmers. On the other hand, testers can use the improved state table to conduct test cases to verify and assure the correctness of state transformation of the App.

Of course, based on essential thought and techniques, our new and modified testing methods and techniques should be systematized and verified by more scenarios and factual practise. At the same time, pay no attention, our testing methods and measures should also be adjusted and modified for new occurrence. However, the start point is more important for its emerging differences.

In the past, the GUI-oriented software testing was proposed and verified by continuous testing practise, and today, the improved STD and the improved state table will also should be verified by continuous testing practise.

Breaking unnecessary taboo, we should acknowledge the practical insufficiency and theoretic lack in emerging methods and measures. However, with systematic summary and continuous effective testing practise, the newness and innovation of theory and method will come in the recent run.

6. Summary and Conclusions

The state transformation diagram can be used in the state testing of update software. However, we should modify this diagram, and reasonably use the improved STD with “Start point” state and deleting redundant “Active label” to tackle various scenarios of software testing.

In testing practise, we should differentiate application scenarios, including general “Windows application” and new mobile “App” of smart phone. In this research, two representative examples are given, which example 1 is a Windows application performing graph drawing and computation with bath data input and example 2 is a typical App fulfilling E-Business shopping with shopping setting, shopping commodity choice and shopping payment process.

By above two application instances of the improved STD, we can conclude that the improved STD method should actually work for distinguished scenarios. For the “Windows application”, in state testing with more complicated diagram, the improved STD should be divided into various layers. In the top layer, it is the overview of state transformation description, and from top to bottom, the division is more and more detailed. At the same time, the key module and unit must be considered in particular and taken as a independent sub-diagram. Additionally, for every diagram and sub-diagram in respective layer, its division or partition must be clear and the meaning of labeling must be unified. For the state testing of the mobile “App”, the improved STD should be consequently transmitted to testing paths and the improved state table, and testing paths directly converted into test cases, while other test cases are added in terms of return states of the improved state table. Additionally, for being not permitted state transformation, it should be considered for test case construction.

By the improved STD, we can notice that reasonable “base state or key state” should be chosen for the state and state transformation of an factual software in terms of the status of application implementation and user visiting. At the same time, in order to construct the test suite, the effective return states of the improved STD should be added according to the optimization result of the improved state table.

In factual testing activity, the improved STD can be served as a communication bridge between testers and programmers. Necessarily, if the improved STD constructed by programmers is perfect, testers can use it in testing process.

As a result, the improved STD is already effectively and efficiently applied in GUI-oriented software testing, and can be taken as a suitable testing method and tool for state testing. We believe that the improved STD will get more factual application scenarios and successful testing experience.

Appendix

Table A1. Test cases of the example of Trim algorithm application.

1.1 State testing of drawing diagram

ID

Input

Desired output

ID

Input

Desired output

GCEX-MCS-UNI-TC000-AD

After click “Default”, click “Input data”, display distance matrix of default example. Then click “Drawing graph→”, figure out correct connected graph at top right.

Correct distance matrix and correct connected graph, return dialogue finally.

GCEX-MCS-UNI-TC001-AD

Modify D17 and D71 with “4” and “5”, then click “Input data”.

Prompt “D17 and D71 are inconsistent”.

GCEX-MCS-UNI-TC002-AD

On D33 input “1”, and click “Input data”.

Prompt “Data on diagonal must be 0”.

GCEX-MCS-UNI-TC003-AD

On D45 input “−1”, and click “Input data”.

Prompt “Please input an integer between 0 and 65355”.

GCEX-MCS-UNI-TC004-AD

On D21 input “−0x”, and click “Input data”.

Prompt “Please input an integer”.

GCEX-MCS-UNI-TC005-AD

Click “Reset”, and then click “Input data”.

Display correct distance matrix in the list

GCEX-MCS-UNI-TC006-AD

Click “Reset”.

Display all items in input area

1.2 State testing of computing minimum link step by step

GCEX-MCS-UNI-TC007-AD

Click “1” → “2”, then click “2” → “1”.

Display correct result of each step

GCEX-MCS-UNI-TC008-AD

Click “2” → “3”, then click “3” → “2”.

Display correct result of each step

GCEX-MCS-UNI-TC009-AD

Click “3” → “4”, then click “4” → “3”.

Display correct result of each step

GCEX-MCS-UNI-TC010-AD

Click “4” → “5”, then click “5” → “4”.

Display correct result of each step

GCEX-MCS-UNI-TC011-AD

Click “5” → “6”, then click “6” → “5”.

Display correct result of each step

GCEX-MCS-UNI-TC013-AD

Click “1” → “>|”, and click “2” → “>|”, and click “3” → “>|”, and click “4” → “>|”, and click “5” → “>|”, and click “6” → “>|”, and click “7” → “>|”.

Display correct result of each step

GCEX-MCS-UNI-TC012-AD

Click “6” → “7”, then click “7” → “6”.

Display correct result of each step

GCEX-MCS-UNI-TC014-AD

Click “>|” → “1”.

Display correct result of each step

GCEX-MCS-UNI-TC015-AD

Click “>|” → “Refresh”.

Display correct result of each step

1.3 State testing of overall view

GCEX-MCS-UNI-TC022-AD

After click “Default”, click “Input Data”, display distance matrix of default example. Then click “Drawing graph->”, figure out the connected graph at top right. Finally, click “>|”, by delay mode, display the minimum link with block line in the connected graph.

Correct distance matrix, correct connected graph of default example, and correct computing result of minimum link.

GCEX-MCS-UNI-TC023-AD

After click “Reset”, click “Input Data”, display distance matrix of the resetting example. Then click “Drawing graph->”, figure out the connected graph at top right. Finally, click “Refresh”.

Correct distance matrix, correct connected graph of the resetting example, and correctly return.

GCEX-MCS-UNI-TC024-AD

After click “Reset”, click “Input Data”, display distance matrix of the resetting example. Then click “Drawing graph->”, figure out the connected graph at top right. Finally, click “×” at top right corner.

Correctly exit.

GCEX-MCS-UNI-TC025-AD

After click “Reset”, click “Input Data”, display distance matrix of the resetting example. Finally, click “×” at top right corner.

Correctly exit.

GCEX-MCS-UNI-TC026-AD

After click “Reset”, click “×” at top right corner.

Correctly exit.

GCEX-MCS-UNI-TC027-AD

No operation, click “×” at top right corner.

Correctly exit.

Table A2. Test cases of normal transformation for “Shopping setting” sub-diagram.

ID

Input

Desired output

Path

E-BEX-STN-UNI-TC000-AD

Click App enter E-Business start sheet, click “My…”, display the private page, click “Setting”, display the setting sheet. And click “Payment setting”, enter the payment setting sheet, and click “Alipay bounding”, display the bounding sheet, choose and input id, psw, and bank information, finish the process step by step.

Finish bounding and return the payment setting sheet.

P1

E-BEX-STN-UNI-TC001-AD

In the private page, click “<” again.

Return E-Business start sheet.

P1r0

E-BEX-STN-UNI-TC002-AD

Enter the setting sheet, and click “<”.

Return the private page.

P1r1

E-BEX-STN-UNI-TC003-AD

Enter the payment setting sheet, and click “<”.

Return the setting sheet.

P1r2

E-BEX-STN-UNI-TC004-AD

In the payment setting sheet, click “payment without PSW”, enter the setting sheet of payment without PSW, click “Agree to deal and activate”.

Payment without PSW is activated, and return the payment setting sheet.

P2

E-BEX-STN-UNI-TC005-AD

In the payment setting sheet, click “payment without PSW”, enter the setting sheet of payment without PSW, click “Activation cancel”, prompt message “Confirm cancel”, and click “OK”, display the refreshed sheet, then click “Return”.

Payment without PSW is canceled, and return the payment setting sheet.

P3

E-BEX-STN-UNI-TC006-AD

Click the App enter E-Business start sheet, click “My…”, display the private page, click “Setting”, display the setting sheet. And click “Address setting”, enter the address setting sheet, and click “New address”, display the adding address sheet, input necessary information according to requirement and click “Save address”.

Finish the setting of adding address, and return the address setting sheet.

P4

E-BEX-STN-UNI-TC007-AD

In the address setting sheet, click “<”.

Return the setting sheet.

P4r0

E-BEX-STN-UNI-TC008-AD

Enter the new address adding sheet, and click “<”.

Return the address setting sheet.

P4ra

E-BEX-STN-UNI-TC009-AD

In the address setting sheet, click “Management”, display the sheet of address edit, and keep default and click “Copy”.

Prompt “Copy is successful”.

P5

E-BEX-STN-UNI-TC010-AD

In the address edit sheet, click “<”.

Return the address setting sheet.

P5r0

E-BEX-STN-UNI-TC011-AD

In the address setting sheet, click “Management”, display the sheet of address edit, and select one address then click “Copy”. Enter the address setting sheet again, and click “New address”, display the adding address sheet, click “Paste”, and modify it then click “Save address”.

the copied address is successfully pasted and added to the new address.

P5a

E-BEX-STN-UNI-TC012-AD

In the address setting sheet, click “Management”, display the sheet of address edit, select one address, and click “Top”.

Put the selected address at the top of list, and return the address setting sheet.

P6

E-BEX-STN-UNI-TC013-AD

In the address setting sheet, click “Management”, display the sheet of address edit, select one address that want to delete, click “Delete”, prompt ACK message, and click “OK”.

Delete the selected address, and return the address setting sheet.

P7

Table A3. Test cases of abnormal transformation for “Shopping setting” sub-diagram.

ID

Input and desired output

ID

Input and desired output

E-BEX-STN-UNI-TC020-AD

For every Si, i = 0, 1, 2, …, 12, the transformation from Si to Si should not be occurred by self.

E-BEX-STN-UNI-TC021-AD

No matter what input, S0 can not be transformed to S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC022-AD

No matter what input, S1 can not be transformed to S3, S4, S5, S6, S7, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC023-AD

No matter what input, S2 can not be transformed to S0, S4, S5, S6, S7, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC024-AD

No matter what input, S3 can not be transformed to S0, S1, S6, S7, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC025-AD

No matter what input, S4 can not be transformed to S0, S1, S2, S5, S6, S7, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC026-AD

No matter what input, S5 can not be transformed to S0, S1, S2, S4, S6, S7, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC027-AD

No matter what input, S6 can not be transformed to S0, S1, S3, S4, S5, S9, S10, S11, S12.

E-BEX-STN-UNI-TC028-AD

No matter what input, S7 can not be transformed to S0, S1, S2, S3, S4, S5, S8, S9, S10, S11, S12.

E-BEX-STN-UNI-TC029-AD

No matter what input, S8 can not be transformed to S0, S1, S2, S3, S4, S5, S7, S12.

E-BEX-STN-UNI-TC030-AD

No matter what input, S9 can not be transformed to S0, S1, S2, S3, S4, S5, S7, S8, S10, S11, S12.

E-BEX-STN-UNI-TC031-AD

No matter what input, S10 can not be transformed to S0, S1, S2, S3, S4, S5, S7, S8, S9, S11, S12.

E-BEX-STN-UNI-TC032-AD

No matter what input, S11 can not be transformed to S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10.

E-BEX-STN-UNI-TC033-AD

No matter what input, S12 can not be transformed to S0, S1, S2, S3, S4, S5, S7, S8, S9, S10, S11.

Table A4. Test cases of normal transformation for “Shopping trolley” sub-diagram.

ID

Input

Desired output

Path

E-BEX-TRY-UNI-TC000-AD

Click the App enter E-Business start sheet, input “Printer” and click “Search”, display the sheet of meeting search condition. Then select one that you want to buy, display the information sheet of this commodity, and click “Buy”, the sheet of detail items are shown, select the item that you want, and click “Add to trolley”, refresh the sheet.

No error

P1

E-BEX-TRY-UNI-TC001-AD

After return the sheet of detail items, click “<”, return the information sheet of the commodity.

No error

P1r0

E-BEX-TRY-UNI-TC002-AD

After return the information sheet of the commodity, click “<”, return the sheet of meeting search condition of “Printer”.

No error

P1r1

E-BEX-TRY-UNI-TC003-AD

After return the sheet of meeting search condition of “Printer”, click “<”, return E-Business start sheet.

No error

P1r2

E-BEX-TRY-UNI-TC004-AD

Click the App enter E-Business start sheet, input “Printer paper” and click “Search”, display the sheet of meeting search condition. Then select one that you want to buy, display the information sheet of this commodity, and click “Buy at once”, the sheet of detail items are shown, select the item that you want, and click “Pay at once”, it is the end-transforming to payment sheet.

No error

P2

E-BEX-TRY-UNI-TC005-AD

Enter the information sheet of the wanted commodity, click “<”, return the sheet of meeting search condition of “Printer paper”.

No error

P2r0

E-BEX-TRY-UNI-TC006-AD

In the sheet of meeting search condition of “Printer paper”, click “<”, return E-Business start sheet.

No error

P2r1

E-BEX-TRY-UNI-TC007-AD

Enter E-Business start sheet, click “Trolley”, display the initial sheet of trolley, select the commodity that you want to buy, put a tick in the left circle, and click “Settle accounts”, it is the end-transforming to payment sheet.

No error

P3

E-BEX-TRY-UNI-TC008-AD

Click “<”, return display the sheet of trolley with the commodity that you want to buy.

No error

P3r0

Table A5. Test cases of abnormal transformation for “Shopping trolley” sub-diagram.

ID

Input and desired output

ID

Input and desired output

E-BEX-TRY-UNI-TC020-AD

For every Si, i = 0, 1-1, 1-2, 1-3, 2-1, 2-2, 3, the transformation from Si to Si should not be occurred by self.

E-BEX-TRY-UNI-TC021-AD

No matter what input, S0 can not be transformed to S1-2, S1-3, S2-2, S3.

E-BEX-TRY-UNI-TC022-AD

No matter what input, S1-1 can not be transformed to S1-3, S2-1, S2-2, S3.

E-BEX-TRY-UNI-TC023-AD

No matter what input, S1-2 can not be transformed to S0, S2-1, S2-2.

E-BEX-TRY-UNI-TC024-AD

No matter what input, S2-1 can not be transformed to S1-1, S1-2, S1-3, S3.

E-BEX-TRY-UNI-TC025-AD

No matter what input, S2-2 can not be transformed to S0, S1-1, S1-2, S1-3.

E-BEX-TRY-UNI-TC026-AD

No matter what input, S3 can not be transformed to S0, S1-1, S1-2, S2-1.

Table A6. Test cases of normal transformation for “Shopping payment” sub-diagram.

ID

Input

Desired output

Path

E-BEX-PAY-UNI-TC000-AD

Enter the sheet of online payment, click “Pay ¥x.xx at once”, display the sheet of payment password, and input correct password, finish the shopping payment, prompt “Payment is successful”, click “Return” to return.

No error

P1

E-BEX-PAY-UNI-TC001-AD

In the sheet of payment password, click “<”, return the sheet of online payment.

No error

P1r0

E-BEX-PAY-UNI-TC002-AD

Enter the sheet of online payment, click “Pay ¥x.xx at once”, display the sheet of payment password, and input incorrect password, display the “Password is not correct!” message, and confirm it, return the sheet of payment password.

No error

P2

E-BEX-PAY-UNI-TC003-AD

Enter the sheet of online payment, click “Refresh bounding”, display the sheet of refreshing bank card, click the combo box and choose new bank card, confirm it, return the sheet of online payment.

No error

P3

Table A7. Test cases of abnormal transformation for “Shopping payment” sub-diagram.

ID

Input and desired output

ID

Input and desired output

E-BEX-PAY-UNI-TC010-AD

For every Si, i = 0, 1, 2, 3, 4, 5, the transformation from Si to Si should not be occurred by self.

E-BEX-PAY-UNI-TC011-AD

No matter what input, S0 can not be transformed to S2, S3, S4, S5.

E-BEX-PAY-UNI-TC012-AD

No matter what input, S1 can not be transformed to S3, S4, S5.

E-BEX-PAY-UNI-TC013-AD

No matter what input, S2 can not be transformed to S0, S4, S5.

E-BEX-PAY-UNI-TC014-AD

No matter what input, S3 can not be transformed to S0, S1.

E-BEX-PAY-UNI-TC015-AD

No matter what input, S4 can not be transformed to S0, S1, S3, S5.

E-BEX-PAY-UNI-TC016-AD

No matter what input, S5 can not be transformed to S0, S1, S2, S4.

Table A8. Test cases of normal transformation for “Overall view” diagram.

ID

Input

Desired output

Path

E-BEX-ALL-UNI-TC000-AD

Click the App enter E-Business start sheet, click “My…”, display the private page, click “Setting”, display the setting sheet. And click “Payment setting”, enter the payment setting sheet, and click “Return”, return E-Business start sheet.

No error

P1

E-BEX-ALL-UNI-TC001-AD

Click the App enter E-Business start sheet, click “My…”, display the private page, click “Setting”, display the setting sheet. And click “Address setting”, enter the address setting sheet, and click “Return”, return E-Business start sheet.

No error

P2

E-BEX-ALL-UNI-TC002-AD

Click the App enter E-Business start sheet, input “Printer paper” and click “Search”, display the sheet of meeting search condition. Then click “Return”, return E-Business start sheet.

No error

P3

E-BEX-ALL-UNI-TC003-AD

Click the App enter E-Business start sheet, click “Trolley”, display the initial sheet of trolley, select the commodity that you want to buy, and click its bitmap, display the information sheet of commodity. Then click “Return”, return E-Business start sheet.

No error

P4

E-BEX-ALL-UNI-TC004-AD

Enter E-Business start sheet, click “Trolley”, display the initial sheet of trolley, select the commodity that you want to buy, display the information sheet of this commodity, and click “Buy”, the sheet of detail items are shown, select the item that you want, and click “Pay at once”, click “Pay ¥x.xx at once”, display the sheet of payment password, and input correct password, finish the shopping payment, prompt “Payment is successful”, click “Return” to E-Business start sheet.

No error

P5

E-BEX-ALL-UNI-TC005-AD

Click the App enter E-Business start sheet, double click “<” to exit.

No error

P1r0

Table A9. Test cases of abnormal transformation for “Overall view” diagram.

ID

Input and desired output

ID

Input and desired output

E-BEX-ALL-UNI-TC010-AD

For every Si, i = 0, 1, 2, 3, 4, 5, the transformation from Si to Si should not be occurred by self

E-BEX-ALL-UNI-TC011-AD

No matter what input, S00 can not be transformed to S1, S1, S3, S4.

E-BEX-ALL-UNI-TC012-AD

No matter what input, S0 can not be transformed to S3.

E-BEX-ALL-UNI-TC013-AD

No matter what input, S1 can not be transformed to S00, S2, S3.

E-BEX-ALL-UNI-TC014-AD

No matter what input, S2 can not be transformed to S00, S1.

E-BEX-ALL-UNI-TC015-AD

No matter what input, S3 can not be transformed to S00, S1, S4.

E-BEX-ALL-UNI-TC016-AD

No matter what input, S4 can not be transformed to S00, S2, S3.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Alégroth, E. and Feldt, R. (2017) On the Long-Term Use of Visual Gui Testing in Industrial Practice: A Case Study. Empirical Software Engineering, 22, 2937-2971.[CrossRef]
[2] Li, F. (2016) Software Testing Technology. Mechanical Industry Press.
[3] Patton, R. (2006) Software Testing. Pearson Education Inc.
[4] Myers, G.J. (1979) The Art of Software Testing. John Wiley and Sons.
[5] Boehm, B.W. (1981) Software Engineering Economics. 1st Edition, Prentice-Hall.
[6] Runeson, P. and Höst, M. (2009) Guidelines for Conducting and Reporting Case Study Research in Software Engineering. Empirical Software Engineering, 14, 131-164.[CrossRef]
[7] Alegroth, E. (2015) Visual GUI Testing: Automating High-Level Software Testing in Industrial Practice. Ph.D. Thesis, Chalmers University of Technology and Göteborg University.
https://research.chalmers.se/en/publication/221145
[8] Wang, W. (2015) Research on Software Safety Analysis Methodology Based on State/Event Fault Tree. Master’s Thesis, Nanjing University of Aeronautics and Astronautics. (In Chinese)
[9] Nian, X. (2005) Research on the Automatic Generation of Test Cases Based on Extended Finite State Machines. Master’s Thesis, Southwest Jiaotong University. (In Chinese)
[10] Qiao, M., Zeng, Y. and Lin, H. (2004) Research on Restriction of Concurrent States and Creation of Test Cases in Statecharts. Computer Engineering and Applications, 14, 91-93.
[11] TanLi, M., Zhang, Y. and Wang, Y. (2022) Architecture and Methodology of Unit Testing Embedding Pair-Wise Mode for Small Team. Journal of Software Engineering and Applications, 15, 385-405.[CrossRef]
[12] Tanli, M., Xiao, J., Zhang, Y. and Zhang, G. (2025) Strategy and Methodology of Unit Testing for GUI Software Based on Dynamic “Pair-Wise” Mode. Journal of Software Engineering and Applications, 18, 336-357.[CrossRef]
[13] TanLi, M., Jiang, Y., Wang, X. and Peng, R. (2020) Black-Box Approach for Software Testing Based on Fat-Property. MATEC Web of Conferences, 309, Article 02008.
[14] TanLi, M., Xiao, J. and Zhang, Y. (2023) Guideline of Test Suite Construction for GUI Software Centered on Grey-Box Approach. Journal of Software Engineering and Applications, 16, 113-143.[CrossRef]
[15] TanLi, M., Xiao, J. and Zhang, Y. (2023) Strategy and Methodology of Integration Testing for GUI Software. Journal of Software Engineering and Applications, 16, 361-396.[CrossRef]
[16] TanLi, M., Zhang, Y. and Wang, Y.-L. (2020) Research on Fault Tree Technique in Software Regression Testing. Computer Engineering and Software, 41, 5-8, 25.
[17] Tanli, M., Zhang, Y., Jiang, Y. and Wang, Y. (2021) Baseline Test Suite Construction of Smoke Test for Extreme Programming. IOP Conference Series: Materials Science and Engineering, 1179, Article 012001.[CrossRef]
[18] TanLi, M., Zhang, Y., Wang, Y. and Jiang, Y. (2021) Grey-Box Technique of Software Integration Testing Based on Message. Journal of Physics: Conference Series, 2025, Article 012096.[CrossRef]
[19] Kleinberg, J. and Tardos, E. (2006) Algorithm Design. Pearson Education Inc.
[20] Memon, A.M. (2002) GUI Testing: Pitfalls and Process. Computer, 35, 87-88.[CrossRef]
[21] HyunSook Do, Elbaum, S. and Rothermel, G. (2004) Infrastructure Support for Controlled Experimentation with Software Testing and Regression Testing Techniques. Proceedings. 2004 International Symposium on Empirical Software Engineering, Redondo Beach, 20 August 2004, 60-70.[CrossRef]
[22] TanLi, M., Jiang, Y., Wang, Y.L., et al. (2020) Infrastructure Building of Software Testing for Engineering Software Based on Cooperation of University and Company. Proceedings of the 10th International Workshop on Computer Science and Engineering, Shanghai, 19-21 June 2020, 18-26.
[23] TanLi, M., Zhang, Y. and Wang, Y.-L. (2020) System Testing Based on Software Performance. Computer Engineering and Software, 41, 1-4, 25.

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.