The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Script Testing
Hi Guys,
Would anyone like to share their testing procedures. I'm used to programming languages that allow line-by-line, or section, steps - evaluating as the routine progresses. With vB it seems that's not a method that can be used. It's OK vB advising to learn by looking at others' scripts, but there's little that can be gained (?) without a deeper evaluation than appears possible - or am I missing something quite obvious? Using a PHP or xml tester seems not an option.... warm thanks Geoff |
#3
|
||||
|
||||
Generally testing involves giving a script values for whatever post/get/db variables its looking for (both valid and invalid values) and checking to see if I get expected behaviour. Behaviours can be in multiple forms including checking the visible markup (i.e. xhtml, javascript, css) as well as verifying data sent to or received from the db by using manual queries. As noted above this is all done on a test site so as not to pooch a live site.
|
#4
|
|||
|
|||
Thanks guys, though of course having a test site is only one aspect to consider.
Funnily enough some things that don't work on the test site, work on the live (and vice versa). But some long scripts that involve a lot of actions, how do you keep track? It seems inefficient to play guessing at least some of the time and not to be able to use a good php/xml editor/diagnostic to check. |
#5
|
||||
|
||||
Quote:
I use Notepad++ for the coding, and then test on my test sites (one on Windows/IIS and one on Linux/Apache). I have a few scripts with thousands of lines, and have never had an issue doing things this way. |
#6
|
||||
|
||||
Quote:
Quote:
|
Благодарность от: | ||
Dragonsys |
#7
|
|||
|
|||
Quote:
Obviously the days when one could use a 'record new macro' as a starter are long gone. --------------- Added [DATE]1452074302[/DATE] at [TIME]1452074302[/TIME] --------------- Quote:
Best place then, for a test bed, is on the main server! --------------- Added [DATE]1452074597[/DATE] at [TIME]1452074597[/TIME] --------------- One question that keeps bugging me is where to put files on the server. Some are obvious, such as "images"/"admincp" etc - but "includes""clientscripts" ? [S]Does anyone know of a list of vBulletin variables - and what each one does .... ?[/S] Ah - I can glean something using Firebug DOM |
Благодарность от: | ||
Dragonsys |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|