How to combine API and regular script in one script?

  • Questions
  • How to combine API and regular script in one script?
Question ID: 107647
6
0

How to combine API and regular script in one script ?

Scenario: Send request to web service using UFT ApI script, database will be updated the same time.

What I need:

Run API scenario 1, then run database script to check the database for row 1 Run API scenario 2, then run database script to check the database for row 2

How to combine API and regular script in one script ?

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on May 4, 2017 9:38 pm
5 views
Answers (1)
7
Private answer

UFT API has a feature in the tool box to call a UFT GUI test. Drag the box to the test and fill out the connection information. [For more information see HPE site.](http://uft-help.saas.hpe.com/en/12.54/UFT_Help/Content/User_Guide/task_uft.htm)

Also with UFT GUI test can call an API test by using the method 'RunAPITest ''. [For more information see HPE site.](''http://uft-help.saas.hpe.com/en/12.54/UFT_Help/Content/User_Guide/z_Ch_Integ_API_Tests.htm). DO NOT code the RunAPITest but use the '' Insert Call to New Action'' button because it updates several locations in the test/action besides the editory.

If you are using UFT GUI test just for a database call condider using the UFT API call to call the database directly.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on May 4, 2017 9:38 pm