| || |
Creating a specific association between user/page
Hello all, I am here looking for some help with a script that simulates multiple users that login and perform specific actions to a web page where they have admin rights.
So here is the scenario
User pool consists of 10 users
10 users: user1...user10
10 passwords: pwd1...pwd10 each password is associated to a specific user
10 pages: user 1 is admin to page 1; user 2 is admin to page 2, etc
Now the script is to simulate user x logging in into his page, performing action t and action u and logging out.
What seems to be happening is that user 1 is logging in to his page performing some action and then also logging in to another page... The application allows for this but if user 1 logs in to user 2's page, he/she logs in as a guest and can't do everything that user 2 as the page admin can do.
What I want to do is have user 1 login to page 1 and perform all action on that page and then log out... And not to be re-used by the script to login again to user 2's page.
Here is some code for my datapools if that helps.
! START DATA POOL______________________________________________ _____________________________
!declaration of User Pool (usernames)
CHARACTER*512 member_name ("CPM1", "CPM2" &
,"CPM3", "CPM4", "CPM5", "CPM6" &
,"CPM7", "CPM8", "CPM9", "CPM10"), SCRIPT
!declaration of User Pool (passwords)
CHARACTER*512 password ("demo123", "demo123" &
, "demo123", "demo123", "demo123", "demo123"&
, "demo123", "demo123", "demo123", "demo123"), SCRIPT
!decleration of User Pool (PageName)
CHARACTER*512 ApageName ("Test_Cpm2", "Test_Cpm1" &
, "Test_Cpm4", "Test_Cpm3", "Test_Cpm5" &
, "Test_Cpm6", "Test_Cpm7", "Test_Cpm8" &
, "Test_Cpm9", "Test_Cpm10"), SCRIPT
CHARACTER*512 MY_USERCODE , THREAD !declaration of variable for username field
CHARACTER*512 MY_PASSWORD , THREAD !declaration of variable for first password field
CHARACTER*512 PAGENAME , THREAD !declaration of variable for the page name
! END DATA POOL______________________________________________ _______________________________
If you would like further clarification or if I am unclear, please let me know so I can qualify or explain in greater detail.
I appreciate and thank you for all your help in advance..
Re: Creating a specific association between user/p
As per my understanding from your forum, User1 has to login into the specific page and do the transaction then logout and need not repeat it again for some other page.
If my understanding his rite, there should be some specific parameters for each page while you doing the transaction. So, can you map each user with the specific page? So that, the transaction will not login to the other page except the one which it need to do.
If I am not explained your query, please post in detail. So, I can try to help you if possible.