How to Call Reusable API Script From GUI Script in UFT

In my previous post –How To Configure SharePoint’s Services In UFT ? 
I have shown to to configure a web service in UFT. In this post we are going to see how to call them from other script.

How to Call Reusable API Script From GUI Script in UFT

Go to File–>New–>Test–>GUI Test–>Provide Name of the GUI test–>Provide location of the Test–>Click on Create button –>Double click on Action

Right Click on the Action–>Select Action–>Choose the last option (as per UFT 12.2) as Call to Existing API Test/Action

In the new window click on the browse button to get the API test–>Call to –>Select <Entire Test >
In the parameter List, we can see it is asking for the parameters required for the API Test. Hence this case it is asking for ListName and FileName (These are the parameters we created during Start)

How to Call Reusable API Script From GUI Script in UFT

Provide some value to each of the parameters
like- listName=ListName
Click on ok

In GUI Action we can get the entry-

RunAPITest "MyAPI","ListName","FileName"

Now we can give actual listName and FileName and execute.

for ListName you can follow my other blogpost-How to Get List Name of a SharePoint link in UFT

Share and Enjoy !

7 thoughts on “How to Call Reusable API Script From GUI Script in UFT

  1. Yesterday, while I was at work, my cousin stole my iPad and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is completely off topic but I had to share it with someone!

  2. I savour, result in I discovered just what I was taking a look
    for. You have ended my four day long hunt! God Bless you man. Have
    a nice day. Bye

  3. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage?
    My blog is in the exact same niche as yours and
    my users would truly benefit from some of the information you
    provide here. Please let me know if this okay with you.
    Many thanks!

  4. Pingback: 10 Excellent Strategies To Make Test Automation As A Service - Tech Travel Hub
  5. Pingback: Google

Leave a Reply

Your email address will not be published. Required fields are marked *