Split action in QTP - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Split action in QTP (/Thread-Split-action-in-QTP) |
Split action in QTP - sp0020295 - 09-29-2009 hi , In my GUI am creating the Group with group members. Here i have added two action. 1.login 2. Group creation Here i have created with multiple groups with datatable. what's my problem here is when ever i run the tests same group members are added to the different group names given in the Data table. Is it possible to add the group members for differnt groups instead of same group member?? thanks in advance. RE: Split action in QTP - sp0020295 - 09-30-2009 Hi anyone knows answer for my question. Please reply. RE: Split action in QTP - Saket - 09-30-2009 If I understood it right, you will have to pass the group members as well along with the group name from datatable. Please provide more details, that helps to understand and you will get reply more quickly. RE: Split action in QTP - sp0020295 - 09-30-2009 hi, I have two action in my test. one is for login and another one is for creating group. In the second action i have added one data table for group name to take the different names. the same way i want to add grouip members name also in th edata table.. Is it possible to add more than one data table in one action?? this is my code.... Code: Browser("IntraStore Server Index").Page("IntraStore Server Index_2").Frame("list").Image("New distribution list").Click RE: Split action in QTP - Saket - 09-30-2009 you can not add more than one data table to an action, but you can add sheets into data table, In your case adding another column for group member will help. although I am not able to figure out where you are adding group members to a group. I can suggest you that create one more column (say Member) Now you can run a loop for adding the group and the members. or if adding members is a seperate step then you can get rows which is for one group and add them see the code below , let me know if it helps you. Code: Set oSheet = DataTable.GetSheet(dtLocalSheet) |