5 Minute Manual Website Test Script

Introduction: 5 Minute Manual Website Test Script

Sometimes automatic tests/screenshots are not enough, especially if you pick up a project that hasn't been developed with TDD in mind at first place, therefore forcing you to choose between donating your free time to develop automatic tests or manually testing each page on every global change. For one timer, it might be better to choose second option, so here is a 5 min setup for such scenario.

Step 1: First, We Will Need a List of All Pages in the Site

with [FILTER] i mean for .NET sites *.aspx, for php *php; for both maybe *.htm or *.html too, depends on the pages' structure

If you are sitting at the dev server, navigate with your evelated cmd prompt to the website folder and write

dir [FILTER] /s/b >> c:\dirlist.txt

Step 2: 2. Locate and Edit the File List

Open up your favorite file manager (mine is explorer.exe) and direct the file to notepad++.

Attachments

Step 4: Step 4 - Time to Process the Filelist

Now switch to the filelist file and, using Ctrl+H (a.k.a. Edit-> replace):
1.) remove the unnecessary path at the begining of each file
2.) click just before the first character in this text file and again, using Ctrl+H
reformat the text with a regex:
[Find]:^(.+)$
[Replace with - oneliner!]:start "" %CURR_PROG% %CURR_ADDRESS%\1||start "" %CURR_PROG_A% %CURR_ADDRESS%\1||start "" %CURR_PROG_B% %CURR_ADDRESS\1%||start "" %CURR_PROG_D% %CURR_ADDRESS%\1||start %CURR_PROG_D% %CURR_ADDRESS%\1||||pause

when it has finished replacing all, now time to split it readable -> in the replace dialog choose Extended search mode (the middle option) and
[Find]:||
[Replace with]\n

as you might have noted, at step 3 i defined two modules (divisions in .bat file) -> now move theGOTO End;
:End
to end of file andIF [%CURR_MODULE%]==[] GOTO ModuleOne;
ELSE GOTO End;
:ModuleOne
just before the first sitegroup (folder?) and IF [%CURR_MODULE%]==[] GOTO ModuleTwo;
ELSE GOTO End;
:ModuleTwo
just before the first sitegroup (folder?)
so that final file would look something like:

Water Contest

Metalworking Contest

Creative Misuse Contest

2 Discussions

It helps in manual testing-> gets the list of all forms/files and opens them up in numerous browsers, waiting till user indicates she finished the testing by closing all windows that has been opened by this script.