douzha6055 2010-12-20 12:03
浏览 9
已采纳

测试应用程序的所有功能的解决方案

EDIT: to clarify - I am asking for advice on both unit testing and user interface testing.

Currently, I don't use TDD. While I am developing an application I am constantly testing what I am working on. Testing iteration could be anything from minor function changes to entire models. I try not to code too much before I test. I like instant feedback.

Of course, with experience I can see potential problems or bugs occurring as I'm coding.

BUT, after an application is complete I will usually go through the entire app on the frontend and ensure all functions are working as expected. This means literally everything. Every add/edit/delete, sort, filter, even broken links and such.

This can take a lot of time sometimes but it does ensure my work hardly ever contains bugs after deployment.

However, I'm looking for a more standard solution. What do experienced developers do? Assume for a moment I am a single developer and so do not have a testing department etc

Do you hire beta testers (no good if app is sensitive to public use)?

Is it viable to build a series of 'general' unit tests which can for example test ALL sorting, filter functions. One for testing ALL add/edit/delete functions.

Love to hear your feedback. Will be changing the way I develop based on suggestions.

  • 写回答

3条回答 默认 最新

  • duanhong8839 2010-12-20 13:18
    关注

    Of course as David said : Unit-testing for models and helpers, of course.

    and I need to add Selenium

    Selenium is a robust set of tools that supports rapid development of
    

    test automation for web-based applications. Selenium provides a rich set of testing functions specifically geared to the needs of testing of a web application. These operations are highly flexible, allowing many options for locating UI elements and comparing expected test results against actual application behavior.

    which is amazing :

    1. watch the 2 min intro http://seleniumhq.org/movies/intro.mov
    2. How Selenium Works
    3. Testing with PHPUnit and Selenium
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳
  • ¥15 springboot 3.0 实现Security 6.x版本集成
  • ¥15 PHP-8.1 镜像无法用dockerfile里的CMD命令启动 只能进入容器启动,如何解决?(操作系统-ubuntu)
  • ¥30 请帮我解决一下下面六个代码
  • ¥15 关于资源监视工具的e-care有知道的嘛
  • ¥35 MIMO天线稀疏阵列排布问题
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?