• DocumentCode
    3668866
  • Title

    Pex extension for generating user input validation code for web applications

  • Author

    Karel Frajták;Miroslav Bureš;Ivan Jelínek

  • Author_Institution
    Department of Computer Science, Faculty of Electrical Engineering, Czech Technical University, Karlovo ná
  • fYear
    2014
  • Firstpage
    315
  • Lastpage
    320
  • Abstract
    The code written by a software developer is not always flawless. The more code is created the more errors are introduced into the system. In web development different programming languages can be used to implement back-end and front-end sides of the application. For example, it is possible to implement user input validation multiple times —it validates the input values on client-side using JavaScript before the data is sent to server and then the received data is validated again on the server-side. The logic is duplicated, changes made to the validation code must be synchronised on both sides. All implementations must be also unit tested, which increases the time required to create and maintain multiple sets of unit tests. In this paper, we will describe how white-box testing tool Pex can be extended to generate user input validation code for ASP.NET MVC web applications. The validation code won´t be duplicated in JavaScript on the client-side and the application will be protected from sending invalid input values from the client-side. The testers can focus on testing using meaningful data input values. Testing of corner cases can be automated thus saving the available resources— testers involved in testing and time spent on testing.
  • Keywords
    "Testing","Servers","Reactive power","Java","HTML","Writing"
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering and Applications (ICSOFT-EA), 2014 9th International Conference on
  • Type

    conf

  • Filename
    7293877