Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Redirect
delay2
filename
location1558436579

Anchor
Top
Top

Column

The database for Zephyr will be referenced as part of the installation of Zephyr. It will need to be installed separately and prior to the installation of Zephyr. These instructions will help you connect your Zephyr installation to a Microsoft SQL Server Database.

...

...

In Object Explorer, expand the folder of the server instance in which you want to create the new login.

Right-click the Logins folder under Security. Click on New Login….

Image RemovedImage Added

In the Login – New dialog box, on the General page, enter the name of a user in the Login name box.

To create a login that is saved on a SQL Server database, select SQL Server authentication. In the Password box, enter a password for the new user. Enter that password again into the Confirm password box.

Image RemovedImage Added

From the Default database list, select a default database for the login. Master is the default for this option.

From the Default language list, select a default language for the login.

Click OK.

View the newly created Login by expanding Logins under the Security folder.

Image RemovedImage Added

Next, we need to set the permissions for this Login. Right click on the user and select Properties.

Image RemovedImage Added

In Properties window, grant the permissions for the user to Alter any database.

Image RemovedImage Added

The Effective tab will show the minimum permissions that must be provided.

Image RemovedImage Added

This process has created a new Login user with the correct permissions.

Anchor
step2
step2

Step 2: Set permissions for remote access

In this step we will enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.

Staying within SQL Server Management Studio, right-click on the server name in the left pane and select Properties.

Image RemovedImage Added
Select Connections in the left pane and make sure that checkbox Allow remote connections to this server is selected.

Image RemovedImage Added

Next, we will need to Enable the TCP/IP Protocol. For this, Open SQL Server Configuration Manager, Expand SQL Server Network Configuration and click on Protocols for SQLEXPRESS. Check the Status to ensure that the TCP/IP protocol is enabled. if it is disabled right-click on TCP/IP and select the Enable option.

Image RemovedImage Added

From the same pop-up options, click on Properties.

In the Protocol tab, make sure that Listen All has a value of Yes. 

Image RemovedImage Added


Now, navigate to the IP Addresses tab and scroll-down to the APAll section, and enter the port 1433 for TCP Port.

Image RemovedImage Added

Finally, SQL Server service can be restarted.

...

Tip
titleStart, Stop, Pause, Resume, Restart the Database Engine, SQL Server Agent, or SQL Server Browser Service
To learn how to Start, Stop, Pause, Resume, Restart the Database Engine, SQL Server Agent, or SQL Server Browser Service, follow the information here: https://msdn.microsoft.com/en-GB/library/hh403394.aspx

Anchor
step3
step3

Step 3: Turn on the SQL Server Browser Service

Open SQL Server Configuration Manager and click on “SQL Server Services” in the left pane, right-click SQL Server Browser service and select Properties.

Image RemovedImage Added


Go to the Service tab and for the Start Mode option change start the type to Automatic.

Image RemovedImage Added

Click the Start button to start the SQL Browser service.

Image RemovedImage Added

Confirm that the SQL Server Browser service is in the Running state.

Image RemovedImage Added


Anchor
step4
step4

Step 4: Configure Firewall to allow network traffic

In this step we will configure the firewall to allow network traffic that is related to the SQL Server and to the SQL Server Browser service.

The following two ports will need to be set:

  1. A port exception for TCP Port 1433. In the New Inbound Rule Wizard dialog, use the following information to create a port exception:
    • Select Port
    • Select TCP and specify port 1433
    • Allow the connection
    • Choose all three profiles (Domain, Private & Public)
    • Name the rule “SQL – TCP 1433″

  2. A port exception for UDP Port 1434. Click New Inbound Rule again and use the following information to create another port exception:
    • Select Port
    • Select UDP and specify port 1434
    • Allow the connection
    • Choose all three profiles (Domain, Private & Public)
    • Name the rule “SQL – UDP 1434

...

Tip
titleTo access SQL Server on other computer
  1. Open SQL Server Management Studio
  2. In Object Explorer, click on Connect -> Database Engine
  3. In Server name, give the IP address of the computer where SQL Server is installed, click on Connect.
    Image RemovedImage Added


Anchor
step5
step5

Step 5: Setting up Authentication

In SQL Server Management Studio, right-click on the server name in the left pane and select Properties.

Image RemovedImage Added

From here, select Security and under Server authentication, select SQL Server and Windows Authentication mode.

Image RemovedImage Added


Anchor
step6
step6

Step 6: Install Zephyr and Connect to the Database

Now the Database is ready, open the Zephyr installer. The wizard will take you through the setup steps.

When prompted to "Choose deployment type", select between the Server or Data Center deployment type.

Image RemovedImage Added

Provide the licence file for Zephyr.

Complete the fields for connecting to the Database.

...

Image Added

Pressing "Test Connection" button should now provide the message "Database Connection test successful!".

The Installation wizard will then provide Shortcut options, and install Zephyr.


After the install, follow these steps:

  •  For Windows : go to your Zephyr installation directory (the default is C:\Program files\Zephyr\):

...

(ii) Copy the cluster.properties.tmpl file to ..\usr\local:\Zephyr\tomcat\webapps\flex\WEB-INF\classes and rename the file to cluster.properties. Restart the Server.


Anchor
step7
step7

Step 7: Setting up Memory 

In SQL Server Management Studio, right-click on the server name in the left pane and select Properties.

Image RemovedImage Added

Now select Memory, and set the Minimum and Maximum server memory to the desired level. 8GB is our recommended minimum.

Image RemovedImage Added

Anchor
step8
step8

Step 8: Knowing where the Logs reside

Knowing where the Log files reside is useful when troubleshooting. To view the Logs in SQL Server, expand the Management tab, select SQL Server Logs. Click on View SQL Server Log.

Image RemovedImage Added

Image RemovedImage Added

Anchor
step9
step9

Step 9: Configuring additional nodes

Now that a Microsoft SQL Server Database is connected to one installation of Zephyr, Step 4 needs to be followed again for every additional application node of Zephyr.

Once this is complete, follow these steps:

  1. Log into one of the Application nodes where Zephyr is installed. Then log into Zephyr.
  2. In the Testcase Creation application, create a Subfolder, and then create a Testcase with some teststeps.
  3. Use the Object Explorer to log into the SQL Server Database.
  4. In Dversion database we will see the JACKRABBIT_JOURNAL_GLOBAL_REVISION table and also a JACKRABBIT_JOURNAL_LOCAL_REVISIONS table.
  5. Get the current value of the REVISION_ID from the JACKRABBIT_JOURNAL_GLOBAL_REVISION table.
    Image Removed
    Image Added
  6. The JACKRABBIT_JOURNAL_LOCAL_REVISIONS table will contain one entry for a node (i.e. "node2"). Add a new entry for the second node with its name and the value obtained from Step 5.
    Image Removed
    Image Added



Back to Top ^