3 ms·
Ask HN: What do you use to keep track of test cases for unit testing web apps?
I'm working as a solo developer on a website. I need a place to store my steps to repeat my unit tests that involve manual interaction w/ the browser + tools. Right now I'm using Evernote to store/track these. I'm just wondering how others do this sort of thing.
Here's a slimmed-down example of a test case that I need to write down + perform:
=======
Test: Response header is correct for custom 404
1) Enable debugging in Visual Studio
2) Set a breakpoint at Application_Error()
3) Enable the Firefox user agent switcher - switch to a new agent
4) Launch Fiddler
5) Browse to http://myurl/
6) If logged in, log out
7) Browse to http://myurl/filethatdoesnotexist.aspx
Expected result: 404 custom error page + logging in IIS of the 404 + breakpoint hit + headers report 404
=======
* This isn't a legit test case - but it's the kind of thing that Selenium can't really do (that I know of). And sometimes I also want to do other things at various points during the test - things that require manually stopping/pausing the test (maybe I want to repeat steps 3-6 n times, once for several other user agents for example).
How do you handle this sort of thing?
- lmm 13y agoIt's possible to do selenium with manual steps in, no? A previous company I worked for used Twist, which is a slick GUI on top of selenium with explicit support for manual steps (personally I felt it was a terrible tool and encouraged the wrong style of testing, but it might be what you're after)
- ScottWhigham 13y agoI think it is, yes, but where would you document the "outside of the browser" steps that need to be performed?