Link checks - Multiple users - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Link checks - Multiple users (/Thread-Link-checks-Multiple-users) |
Link checks - Multiple users - uma87 - 08-09-2011 Hi , can any one give me an idea how to proceed with the script for this particulat test case. i have certain links to be checked in a particular web page. but the links differ with different user login. how can i check if correct links are shown for correct user. my scenario goes like this.. i login with administration rights and give User1 certain permissions so that he can access Link 1, Link 2 and Link 3. check all the links are working fine and log out. Again i login with Administartion rights and for same user, i remove previous permisions and give new permissions , where he can access Link 2, Link4, Link5 and so on... I have 20 permissions and 30-35 links to be checked. how can i loop them so that it saves my time in writing lenghty script. I planned to write an action for each permission and check if link exists for that particular permission. so i will have 20 actions and all called to a main action. with this script viewing results are quiet confusing and time taking when something fails. if this is a feasible method then i need a solution to view my resutls organized. please provide me your ideas. RE: Link checks - Multiple users - sshukla12 - 08-10-2011 U can create an Action with parameter values to define the roles for different catageroies For example: Parameter("Role")=XX(some value according to your application) Run Action "AA",oneIteration,Role under this action u specify the conditions like if using user 1 then following links should work if using user 2 following user should work etc. and selection for the user will be based on the Action parameter "role" Correct me if wrong. Regards, Sankalp |