Monday, 23 May 2011

Example - add your selenium scripts into SVN

Aim
Example will show how you to add your Selenium Test Scripts into SVN ( Subversion)

Difficulty Level: 
Advanced


What you will learn?
how to check out your created script/folder in SVN repository.

Tips:

  • Some prior knowledge of SVN 
  • Tortoise SVN Client does not have to be used - you could another SVN client 
  • SVN Server would normally be installed for you as part of your software infrastructure ( so don't get too caught up with the ins and outs of the configuration - that is beyond the scope of this exercise)

Pre-requisites:

  • SVN is installed and configured on the PC
  • Tortoise SVN client installed on the PC


Steps Create a new Repository:
  1. Create the HelloWorld Script directory somewhere on the Harddrive.
  2. Select the same directory and do right click on same.
  3. Click SVN checkout option.
  4. Click OK button on the generated pop-up, directory is successfully added into SVN.
  5. Copy the HelloWorld script into directory and do right click on the HelloWorld script.
  6. Click Add under TortoiseSVN option and again select HelloWorld script and do right click.
  7. Click SVN commit option and script is successfully added into SVN.
  8. Do right click on any already added directoy and click SVN Update option.
  9. Edit the HelloWorld script. and save the edited script.
  10. Now select the HelloWorld directory and do right click on selected directory.
  11. Click on SVN Update option and open the HelloWorld script.
  12. Edited script is successfully displayed.

Scripts:
n/a

Steps to Commit new code the repository and perform a check-out.
  1. locate the Hello World test script directory
  2. Add the code into the SVN
  3. SVN comit the code ( add a log message for the checkin - "initial checkin"
  4. Show how you can check out the code to another directory
  5. Show an edit to a file gets - checked in and committed with a log message
  6. Show the source code is now updated in the repository
Conclusions:

  • SVN check in and check out process
  • SVN commit process
  • SVN server installation and Tortoise SCN Client installation and usage  



Related Links:
n/a

Video:


2 comments:

  1. It's completely done from my side, please review and move it from todo if it works good for you or provide your feedbacks.

    ReplyDelete

Thank you for your comment
- Time2test Team