10-25-2012, 01:44 PM
Hi
you are having Action1 as "consolidated_Test"...Now all the script is in Action 1 as u said.
Now divide that script into one more action by name "test_action".you can divide by using insert-->call to new action
Once u click on "call to new action" u will have 2 options after current step r At the end of the step... for your assignment u can select after the current step.
For ex: Login into application do some Operations(like insert a record or update...) and logout.
Here all the script will be in one action... place the cursor on the particular step and do call to new action then the script will cm to action 2.
If u want action2 as reusable action u can select the reusable check box.if not u can uncheck it. if ur using QTP 11 by default u will have the check box as checked.
Here in ur assignment commands means nthng but just make enchacments to ur script if needed.
For Ex: Once u login logout link will be avaiable u can Place a if condition like logout link exit login success... this is just an example
Hope u got sm idea now....if any issues let me know...
you are having Action1 as "consolidated_Test"...Now all the script is in Action 1 as u said.
Now divide that script into one more action by name "test_action".you can divide by using insert-->call to new action
Once u click on "call to new action" u will have 2 options after current step r At the end of the step... for your assignment u can select after the current step.
For ex: Login into application do some Operations(like insert a record or update...) and logout.
Here all the script will be in one action... place the cursor on the particular step and do call to new action then the script will cm to action 2.
If u want action2 as reusable action u can select the reusable check box.if not u can uncheck it. if ur using QTP 11 by default u will have the check box as checked.
Here in ur assignment commands means nthng but just make enchacments to ur script if needed.
For Ex: Once u login logout link will be avaiable u can Place a if condition like logout link exit login success... this is just an example
Hope u got sm idea now....if any issues let me know...