Version control is an invaluable tool for performance testers. We all know that occasionally mistakes happen.
At one time or another, most testers will have...
- Changed their code, realised they made a mistake and wanted to revert to an older version.
- Accidentally deleted or lost critical files (e.g. test data or shared library files).
- Wanted to maintain multiple versions of scripts for “either/or” testing.
- Wanted to submit a change to someone else's code.
- Wanted to share code, or let other people work on their code.
- Wanted to experiment with a new feature without interfering with working scripts.
Using a version control tool can help to overcome difficulties that testers will face whether they’re working on their own or working collaboratively with other testers. There are numerous tools available to assist anybody developing application code, or in this case writing scripts. Many of these are free or open source.
I’ve been sharing examples of LoadRunner scripts for many years and I recently started to share My LoadRunner sample scripts via GitHub. This instructional video demonstrates how to download scripts from a remote Git repository, edit them locally and then commit the changes before uploading those changes to the shared repository.