Welcome To User Friendly Software Technical concepts

This Blog contains information of various technical concepts,The concepts are precise,informative with examples.visitors can easily understand the concepts of different technical related subjects like software Testing concepts , practice questions on sql And JMeter(Open source automation tool ) for Performance testing of an web application and about selenium tool used for functional testing of an web application

Friday, June 24, 2011

Configuration Management Tool Subversion

Subversion

 Configuration Management Tool

Configuration management (CM) is the detailed recording and updating of
 information that describes an enterprise's hardware and software.Such
information typically includes the versions and updates of software code or
documents like Customer requirement document or System requirement document.

1)A client need to update changes to the  requirement , Team lead need to update the
testcases in to the testcases document .Management needs to update their objectives
to the strategy document.Configuration management tool will be used to acheive this process
2)saving the documents in a secure repository. In case if system crashes anyone
can get a copy of document from the server.


Tortoise Svn

Tortoise Svn 1.6.3 : client machine and
Svn server 2.1.5 :a server which will record /stores the version updates.

What Is Subversion?



Subversion is a free/open source version control system. That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed.

Subversion can operate across networks, which allows it to be used by people on different computers. At some level, the ability for various people to modify and manage the same set of data from their respective locations

Follow these steps to work with SVN

1) Installing The SVN Server

While installing SVN Server Select Authentication: As Windows Authentication

After Installation:

2) To Create a Repository:

  • Right Click on Repositories and select Create New Repository.
Repository is a storage area of all the documents like SRS,testplan,testcases,testdata,
Test case execution report,incident report. etc....
  • Give any name to that folder and click OK.
Now your repository is created successfully

3)To Create a project in the repository copy the project from Source.

Say the source is on Desktop with Name Test.

Right click on repository and copy the URL


Right Click on the Source folder ( Test) select Tortoise SVN ->
Import Where the URL of Repository has to be given to Transfer the Project
to repository.

The Domain username and Password will be used to login
and click ok.

All the files from the source are being added to Repository.We no longer require
 the source file which is present on the desktop as the project is stored in the repository.


3) Working Copy:
As the Project can’t be directly edited from Repository the working place has to be
 created in the local system.

• The working place which is selected in this document (Test work)

• The selected files or the entire project from the repository can be checked out to the
Work place(Testwork)


This is done by using SVN Checkout option by right clicking on the work
folder(Testwork).

After checking out the file from Repository the folder looks with green colour
with right mark.


The Green color indicates that the project is up to date with repository.

The changes done in the working copy has to be committed back to repository to
reflect in theRepository.

This is done by SVN Commit option.

Scenario:

This Document is editing the  file from the work place the changes made to this
are to be committed back to Repository.

Initially the predefined functions are been commented as it is not required.

Save the file the file now will show the red mark which indicated that the file is not
 been updated to repository.


Right click on folder which you want and Select SVN commit:

After Commiting the modifications Different Options are available for the User

Option can be selected for the file by Right clicking on the file TortoiseSVN:

Options
1)Tortoise SVN->Diff With previous version shows the editions made to the file.

2)Tortoise SVN->ShowLog: Shows the list of the users editing the file each time.

3)Tortoise SVN->Get Lock:
Get Lock is used to Lock the file by any user and for not letting other user to
edit the file.

4)To unlock the file Tortoise SVN->Release Lock.

5)When conflict occurs between two clients they can User resolve the conflict option
  Tortoise SVN->Resolve the conflict either Their or Mines.This should done
  before commiting the folder to the sever.Any one user can do this.

Conflict Means modifications done for the same code of a file by two persons

6)Tortoise svn->Revert
when client dont want to update the  modifications of the code he revert  it
 to get back pervious code.

7)Tortoise svn-> Repo browser
  client can see number of versions of the documents

8)Tortoise SVN->Branch/Tag:
   To use the Tag Option -> Right click on the file select Tortoise SVN->Branch/Tag

Scenario:

When the folder  is ready to release to client, You can create a Tag in the
 repository which indicates the code in Tag Folder is ready to release.

A folder is created in Repository with name tags which contain this folder that is
ready to release to client.

Tortoise SVN->Switch:
Switch command is used to switch the working copy from one folder to the other folder.

Tortoise SVN->Export
Export is used to export document from the server and cant modify that file .Final release

No comments:

Post a Comment

You Can Post Your Comment Here