Test resource is not using while executing UFT API script

  • Questions
  • Test resource is not using while executing UFT API script
Question ID: 106112


I have created two datasource file a.xls with 3 records and b.xls with 5 records.Both excel file contains three columns named a,b,result.
After that i have created one API script and referred add function from math tool box and created one datasource where i referred a.xls file by enabling three options (**excel file contain header rows,make copy of excel file and allow other source to overwrite data**).
Once data source gets created i referred this with **for each loop** and mapped a,b and result field with excel columns and then stored this script to ALM(version 11).
Under **ALM –>Test resource** i created new resource named **add** and uploaded b.xls.
From **TesPlan—>Parameters** section i selected resource named add then clicked on Map Parameters option and entered resource names.
After that i selected **TestPlan–>Test Configurations–>Dynamic–>Override test data resource** and under data source selected data source named **add**.
Now when i try to execute this script from TestLab sometimes it gets executed with a.xls and sometimes with b.xls.

can anybody give me some hints to solve this issue.

Thanks in advance.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on May 19, 2015 8:53 am
Answers (1)
Private answer


I got the solution that there is bug in HP ALM-11 and when we configure data driven testing for API script then under Test Plan-->Test Configurations-->Data-->Select override test data resource--> then click on Data Resource Settings.After that there will be Data resource Setting window gets opened and under resource parameter name click on each tab and press backspace.
After that your API script will perform data driven properly.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Answered on May 22, 2015 12:19 pm