Absent Member.. Absent Member..
Absent Member..
1593 views

Running UFT tests with the use of Jenkins and ALM

Jump to solution

Hi,

What would be the best setup to do continuous integration tests using UFT, Jenkins and ALM? So far, we have an ALM server, a machine with UFT, and we plan to have a machine with Jenkins,.

The concern is mainly to be able to execute without manual intervention, while UFT cannot execute when logged off and/or the screen is locked.  Or is it?

How de we achieve CI using UFT? Wwhat needs to be configured?

Thanks,

0 Likes
1 Solution

Accepted Solutions
Absent Member.. Absent Member..
Absent Member..

Hi

 

Hope you are doing fine

 

Regarding your questions,

For the integration with Jenkins please check the below information:

 

What is the available integration with Jenkins software?

Continuous Integration with Jenkins

As more software companies utilize continuous integration practices, you may also need to integrate functional tests into your testing process. This integration helps developers ensure that new builds did not introduce regressions.

The HP Application Automation Tools plugin for the Jenkins continuous integration server provides a mechanism for executing UFT tests as part of a build script. This open source plugin allows you to trigger an HP test as a build step and present the results in the Jenkins user interface.

To begin the integration, you must first install the The HP Application Automation Tools plugin. For information about installing plugins, refer to the Jenkins documentation.

Click https://wiki.jenkins-ci.org/display/JENKINS/HP+Application+Automation+Tools to open the HP Application Automation Tools plugin page.

Note: Above information was taken from UFT 12.51 User guide.

 

Now regarding running UFT on logged off and/or the screen is locked. Well is you use an RDP then yes it is possible to run UFT on a disconnected, to see how to do it please refer to  the below information taked from UFT 12.51 User Guide:

How to Run a GUI Test with a Disconnected Remote Desktop Connection

Relevant for: GUI tests only

This task describes how to run a GUI test after disconnecting an Remote Desktop Connection to a computer running UFT. This enables you to start a test run and disconnect your computer from the UFT computer, enabling the test to run independently while you continue work on your own computer.


Note: This feature is not supported in the Microsoft Windows® XP environment or the Hyper-V virtualization server.


1.OpenPrerequisites


If you want to run UFT in a minimized RDP session, and you are using an RDP 6.0 or later client, enable this by setting a registry value on the computer that is running the Remote Desktop session

a.If necessary, create the RemoteDesktop_SuppressWhenMinimized registry value (DWORD type) in one of the following registry paths on the computer that is running the RDP client:

•For 32-bit operating systems: <HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE>\Software\Microsoft\Terminal Server Client


•For 64-bit operating systems: <HKEY_CURRENT_USER>\Software\Wow6432Node\Microsoft\Terminal Server Client

 

b.Set the data for this value to 2.

c.Restart your remote session in order for this setting to take effect.

 

2.OpenLog in to the remote computer running UFT


On your local computer, open a Windows Remote Desktop Connection session and connect to the remote computer running UFT.

 

3.OpenConfigure the Remote Desktop Connection options in the remote computer


You must configure the Remote Connection options before beginning to run the test:
a.In the Options dialog box, open the Run Sessions pane (Tools > Options > General tab > Run Sessions node).
b.Enable the Remote Desktop Connection options by selecting the Allow UFT to continue running GUI or business process tests after disconnection from an RDP computer option.
c.Enter the user name and password of the user connecting to the remote computer with the Remote Desktop connection.

 

4.OpenConfigure the Windows Task Scheduler options for automation runs - optional


If you are running the test via automation, in the General tab of the Windows Task Scheduler dialog box, ensure that the Run only when user is logged on option is selected:

 

 

5.OpenStart the test and disconnect from the Remote Desktop connection

a.On the remote computer, start the test run.

b.On your local computer, close your Remote Desktop Connection session.


IMPORTANT: You must remain logged on to the computer running UFT.

The test run continues on the remote computer until completion.


Note: For a UFT server that allows multiple users to log in with the same username/password: When a user initiates a test run and disconnects from RDP during the run, the run execution goes to the background and the user has no access to the execution when they log in again, because the test is executed in another session.

 

 

 

 

 

“Regards,

Oscar Mendoza| SW Technical Support Consultant.
Functional Testing
Hewlett-Packard (SSO Portal)


If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.”

View solution in original post

0 Likes
3 Replies
Absent Member.. Absent Member..
Absent Member..

Hi

 

Hope you are doing fine

 

Regarding your questions,

For the integration with Jenkins please check the below information:

 

What is the available integration with Jenkins software?

Continuous Integration with Jenkins

As more software companies utilize continuous integration practices, you may also need to integrate functional tests into your testing process. This integration helps developers ensure that new builds did not introduce regressions.

The HP Application Automation Tools plugin for the Jenkins continuous integration server provides a mechanism for executing UFT tests as part of a build script. This open source plugin allows you to trigger an HP test as a build step and present the results in the Jenkins user interface.

To begin the integration, you must first install the The HP Application Automation Tools plugin. For information about installing plugins, refer to the Jenkins documentation.

Click https://wiki.jenkins-ci.org/display/JENKINS/HP+Application+Automation+Tools to open the HP Application Automation Tools plugin page.

Note: Above information was taken from UFT 12.51 User guide.

 

Now regarding running UFT on logged off and/or the screen is locked. Well is you use an RDP then yes it is possible to run UFT on a disconnected, to see how to do it please refer to  the below information taked from UFT 12.51 User Guide:

How to Run a GUI Test with a Disconnected Remote Desktop Connection

Relevant for: GUI tests only

This task describes how to run a GUI test after disconnecting an Remote Desktop Connection to a computer running UFT. This enables you to start a test run and disconnect your computer from the UFT computer, enabling the test to run independently while you continue work on your own computer.


Note: This feature is not supported in the Microsoft Windows® XP environment or the Hyper-V virtualization server.


1.OpenPrerequisites


If you want to run UFT in a minimized RDP session, and you are using an RDP 6.0 or later client, enable this by setting a registry value on the computer that is running the Remote Desktop session

a.If necessary, create the RemoteDesktop_SuppressWhenMinimized registry value (DWORD type) in one of the following registry paths on the computer that is running the RDP client:

•For 32-bit operating systems: <HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE>\Software\Microsoft\Terminal Server Client


•For 64-bit operating systems: <HKEY_CURRENT_USER>\Software\Wow6432Node\Microsoft\Terminal Server Client

 

b.Set the data for this value to 2.

c.Restart your remote session in order for this setting to take effect.

 

2.OpenLog in to the remote computer running UFT


On your local computer, open a Windows Remote Desktop Connection session and connect to the remote computer running UFT.

 

3.OpenConfigure the Remote Desktop Connection options in the remote computer


You must configure the Remote Connection options before beginning to run the test:
a.In the Options dialog box, open the Run Sessions pane (Tools > Options > General tab > Run Sessions node).
b.Enable the Remote Desktop Connection options by selecting the Allow UFT to continue running GUI or business process tests after disconnection from an RDP computer option.
c.Enter the user name and password of the user connecting to the remote computer with the Remote Desktop connection.

 

4.OpenConfigure the Windows Task Scheduler options for automation runs - optional


If you are running the test via automation, in the General tab of the Windows Task Scheduler dialog box, ensure that the Run only when user is logged on option is selected:

 

 

5.OpenStart the test and disconnect from the Remote Desktop connection

a.On the remote computer, start the test run.

b.On your local computer, close your Remote Desktop Connection session.


IMPORTANT: You must remain logged on to the computer running UFT.

The test run continues on the remote computer until completion.


Note: For a UFT server that allows multiple users to log in with the same username/password: When a user initiates a test run and disconnects from RDP during the run, the run execution goes to the background and the user has no access to the execution when they log in again, because the test is executed in another session.

 

 

 

 

 

“Regards,

Oscar Mendoza| SW Technical Support Consultant.
Functional Testing
Hewlett-Packard (SSO Portal)


If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.”

View solution in original post

0 Likes
Absent Member.. Absent Member..
Absent Member..

Hi Oscar,

Thanks for your answer. Unfortunately I'm having another priority that arised yesterday that I must complete today before I leave for a 2 week vacation. I won't have the time to try your suggestions. 

I'll try your suggestions when I come back on July 4th.

Thanks and have a great weekend,

0 Likes
Absent Member.. Absent Member..
Absent Member..

Hi Oscar,

Thanks again for the suggestion, and sorry for the very late reply.

Unfortunately I was not able to complete the prerequesite (registry) as the company here uses a login script that reverts back whatever change I make.

Also, the suggestion still requires a lot of manual interactions, when the goal is to have it orchestrated automatically with Jenkins early in the morning so that we have the results when we arrive.

I'll give a try on some Jenkins forum. Hopefully there is a way to do those interactions automatically.

Thanks,

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.