![]() |
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 |
Most of us have a test/dev site setup.
|
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.
|
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. |
Quote:
Quote:
|
Quote:
Quote:
|
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! :D --------------- 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 :rolleyes: |
All times are GMT. The time now is 11:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|