Posts

Showing posts with the label QC

Time Slots reservation in HP ALM

Image
In this post I will be showing how to setup the time slot for the testing hosts, so that testers will not face any unavailability of testing hosts at the time they require to run there automated test scripts. After navigating to TimeSlots tab in ALM, user needs to add a new time slot for his tests as shown in below image: After clicking the new timeslot a new window will come where you need to fill all the required details. 1. Run - You need to select which type of test you want to run "Functional Test Set", "Performance Test" or "Build Verification Suite" 2. Start: User need to select whether he wants the execution to start manually or automatically in this timeslot. 3. Name: User need to provide the name of the timeslot 4. Select a test set: User need to browse through the test sets and select the test set which he wants to execute if any. 5. Duration , Start Time and End Time: User needs to provide the duration of the time slot and...

VB script code to change the field of a test case in ALM

Below code helps in updating the data of any field of multiple tests uploaded in ALM without logging into the ALM. You just need to feed the name of the test cases , folder path and ALM credentials.  I have passed all the data from excel and created a macro in same excel using the below code.     Set td = CreateObject("TDApiOle80.TDConnection")     Dim rng As Range     RowCnt = Sheets("Sheet2").Range("A1").End(xlDown).Row     ALMUrl = Sheets("Sheet1").Range("B1").Value     ALMDomain = Sheets("Sheet1").Range("B2").Value     ALMProject = Sheets("Sheet1").Range("B3").Value     ALMUserId = Sheets("Sheet1").Range("B4").Value     ALMUserPwd = Sheets("Sheet1").Range("B5").Value      RowCnt = Sheets("Sheet2").Range("A1").End(xlDown).Row     '=========================================     Set tdc = CreateO...

VB Script code to upload multiple test in ALM without any Manual intervention

Below code can be used within excel also as a Macro and the details required for the ALM connection and list of tests with the ALM folder where tests needs to be updated. 'Gets the count of the QTP tests needs to be uploaded in ALM RowCnt = Sheets("Sheet2").Range("A1").End(xlDown).Row 'Credentials required to connect QTP with ALM ALMUrl = Sheets("Sheet1").Range("B1").Value ALMDomain = Sheets("Sheet1").Range("B2").Value ALMProject = Sheets("Sheet1").Range("B3").Value ALMUserId = Sheets("Sheet1").Range("B4").Value ALMUserPwd = Sheets("Sheet1").Range("B5").Value 'Below steps makes QTP connection with ALM using the above credentials Set objQTP = CreateObject("QuickTest.Application")     If Not objQTP.TDConnection.IsConnected Then         objQTP.TDConnection.Connect ALMUrl, ALMDomain, ALMProject, ALMUserId,                           AL...

UFT componenets which are required for BPT in ALM

Image
Continuing from my last post on Business Process Testing in HP ALM. In this post i will share the artifacts which will be created in UFT and getting used in creation of test cases in BPT framework. One thing always should be considered while creating these artifacts for BPT is that the UFT should be conected to ALM which has BPT license, else you will not be able to create them. The first artifact which is required is Application Area. In application area we attach all the resources like functional libraries, vbs files, object repository etc and it will be saved in ALM to the domain and project you have logged into. It will be saved in the resources tab in ALM. This application area can be used by any business component which will help us to manage the resources for different components. After creating the Application Area, the second artifact will be the business component which will have all the test steps you want to perform on the application. But as per my last f...

Business Process Testing part 2

Image
Continuing from where i left on Business Process Testing in my last post. I have given a brief introduction to BPT on HP ALM in my last post.  In this post, We will look into some benefits of BPT and how does BPT works. The images in the post are the courtesy of the document provided by HP when they have introduced. I found this image as the self explanatory instead of creating anything new to confuse the users.       The operations performed by any particular keyword tended to be very fine-grained or atomic. Designing a test for an entire business process required the use of hundreds of individual keywords — a time-consuming process.       Since test framework solutions consist of files with keywords and their associated data elements, subject matter experts found that they were still creating scripts, despite promises by some vendors of “script less” test design.       Traditional test framework...

Business Process Testing in HP ALM

HP has introduced the business process testing framework in the ALM around 2006. This framework has been introduced by keeping business analysts in mind, so that they can create the scenario as per the logical flow of the application by themselves and instead of dependent on any automation tester to create a full test case for them and then they verify the whole test script functionality. In this framework the automation testers create the business components with the logical business names. Then business analyst or functional testers can create the test cases by arranging the business components in the sequence they want. This helps the business analysts to create the different scenario's on the go instead of raising the request and waiting for the automation tester to completed the coding for this test script. Here user can give different parameters for the same component in different test cases which was not possible when users use same test cases in different scenario...

How to check previous run results in Test Lab in HP ALM/QC

Image
It happens many times that we want to refer to the previous run results of the test in a test set but we don't know how to go to those results. The only thing you need to do is click on the name of the test in the test set in test lab and it will open a new window called as Test instance details. This window has all the details of the test such as planned execution date, status etc. This window has different tabs one of them is Runs. The runs tab shows all the previous run details such as status, exec date, time etc. You can open the result report of any execution by just clicking that row in the table and click on the Launch Report button. You can also drill down the details of each run by clicking the run id of the run which will open a new window called as Run Details. Below are the screenshots of both the detail windows.

Change in UFT settings to run scripts through ALM

Image
As we start our work to start the execution of UFT/QTP scripts through ALM, we change our scripts related to all aspects of repository linkage to script, functional libraries, input excels, uploading results files created after execution. But still when we try to start the execution from ALM the UFT/QTP is not able to open on the host and the execution is not able to take place. The basic setting which needs to be completed on the UFT/QTP for the hosts where you need to run the scripts. The user needs to open the UFT/QTP on the machine and need to go to Tools > Options and check whether the checkbox "Allow other HP products to run tests and components is checked or not. Nowadays, HP has provided this as one of the errors when you try to execute the script from ALM and if this setting is not done on the host. Its a very small step but takes alot of time to debug if you don't know the description of this option.

How to save UFT tests in ALM

Image
There is good level of maturity in executing UFT automated tests from ALM but still some people have challenges on how to save UFT automated tests in ALM or QC and how to handle its resources. I will be starting with steps to save UFT automated tests in ALM and will be followed by resources saving and creation of test sets and Build verification suite. 1. Open your automated tests in UFT 2. Connect UFT to ALM as shown below: 3. Enter the ALM URL and login Credentials in the window shown below and click on Connect button: 4. After logging into ALM, it will show the domain and project list which you can access on ALM. Now choose the domain and project of ALM where you want to save your UFT automated test and click on Login button. 5. After logging and selecting the project and domain, You will get the ALM Test Plan folder structure when you try to save your UFT test by clicking on Save button in UFT. So you can save in any folder or you can also create a new folde...

Pre requisites for running your UFT 12+ (Unified Functional Tester) scripts from ALM 11.5 (or Quality Center)

Below are the prep-requisites which are very much required before executing your automation scripts created in UFT from ALM: Connection of UFT with ALM for loading automation scripts You should have admin rights on the machine to make first connection of UFT with ALM. After first connection, the admin rights are not required. Sometimes instead of having admin rights the connection, UFT is not able to make connection with ALM. In those scenario's the UFT setup needs to be done through the setup file on your machine instead of some shared library or drive. Click on ALM -> ALM Connnection and Enter username and password. Click on connect button. Select the Domain and project then click on login button.      2.  All resources in you automation scripts should be uploaded in ALM The shared object repository getting used in automation script should be saved in ALM Test Resources tab. And this should be referenced in your automation scripts under test se...