I am new to this forums, can anyone help me with this please
I am using Rational Functional Tester v7. I have problem with using the data in the Datapool.I have different scenarios to run one after the other and I have to use a common script, the script has the datapool init and what i am trying to do is, for each scenario the data should pickup a new row from the datapool.
Scenario 1 - Creating a Cash Account for a customer
Scenario 2 - Creating a Credit Account for a customer
Scenario 3 - Creating a Finance Account for a customer
I have to run the above 3 scenarios at a time so that it creates 3 accounts one after the other in single run
All the above scenarios have one script in common - "CreateCustomer" which has a datapool which holds the customer information.
Every time i run the script after finishing the scenario 1, for the second scenario it starts picking the 1 row of the datapool again.
Can anyone please let me know how to resolve this, how can i increment the row every time it runs. Is there any code to insert in the script?
I have a similar problem. I have one shell script that calls a bunch of scripts that verify account data. Example:
callScript("accountxxxxx"); (I want this to correspond to row 1 in the datapool)
callScript("accountxxxxy"); (I want this to correspond to row 2 in the datapool).
How do I make it so I have one datapool that has the list of all accounts and when I run the shell script, it will go through each row in the datapool (basically each row in the datapool corresponds to one script "accountxxxxx" for example). Currently I have the account number hard coded into the actual script being called. I want to remove that.
1) Get the datapool of the CreateCustomer script.
2) Store this datapool to a global datapool variable, you have to create one.
3) write the piece of code to read the data of datapool using datapool iterator, store this datapool iterator as a global variable.
4) In the reading code of the datapool make sure that you have moved to the next record by using dpNext() command on the iterator.
5)When you move on to the next scenario , check the Global Datapool variable whether it is already loaded or not, as you have already loaded the datapool and initialized the iterator on that datapool again no need of getting the datapool and creating the iterator on the same.
6) As you have used dpNext() in read code you will get the next record values when you move on to the next scenario.
I have a similar scenario, it is like this...
The app i am testing and the datapool structure assosciated with my script same .
it is a table structure with 10 rows n 7 columns.
so, i read the 1st column values row-wise in my app and check whether that value is present in my datapool.if yes, the i have to c if the other column values of that row in my app are same as that of my data pool..