Did anyone try using "Call Virtual User Generator Script" from toolbox for API testing? - hp-uft

For testing one my functionality I want to call VUGEN script in my APItest in UFT. I added the "Call Virtual User Generator Script" from toolbox to my test. But I am unable to give the script path. In the screenshot attached calling vugen script from UFT error, when I am trying to locate the error to give the path of my vugen script I am not even getting the popup to select the path. Did anyone try this option or is there any known issue with UFT for calling vugen script.
Thanks in advance for any help or suggestions.

I do NOT have VUGen installed on my system. But in order to update the script path, you need to update in Properties section of that activity.
To view the Property section, click:
View -> Properties
Now from here click on the highlighted button and it will give you the script selection window.

Related

Get Apple Events from AppleScript

I have a simple AppleScript which tells me url of active window in specific browser
tell application "Opera"
get URL of active tab of window 1
end tell
However I would like to see Apple Events needed to run that script, probable some of these: https://developer.apple.com/documentation/coreservices/apple_events?language=objc
My final goal is to code same script but using Apple Core Services.
I have checked Script Editor but I do not see any tab or menu where that information is displayed. Is there any way to translate that script?
Thanks in advance and regards
Yes, there are several such ways. My favorite is to use Script Debugger, which just translates the AppleScript into raw Apple events for you. Alternatively, you can run your AppleScript in an environment where export AEDebugSends=1; export AEDebugReceives=1 has been turned on.

Need unix command to disable the popup window

I am very much glad if anyone help me. am fairly new to Unix scripting side. I am trying to get into one url, but before that am getting one popup window(asking for customer details). So, i need to block/disable/ auto close the popup window. Please help me with the command
In Unix environment shell command plays differently. It can launch your browser but it can not set utility inside a browser application. You need to fix it inside your browser window by using tool option. Just search in google like how to block popup in yourbrowserName.

Need to re-record part of OpenScript script but don't want to re-record the whole script

We would like to fix a portion of a script in OpenScript by re-recording the part that's not working in lieu of re-recording the whole script. We can't seem to figure out how to do it. Every time we try, Open Script starts with the log in to the testing program. It seems you should be able to start recording at any point. Does anyone know?
create a test script, click on Record, once it launches, in Openscript toolbar pause the recording. Now the recording is stopped, whatever we do will not be recorded .Manually perform the sections which you don't want to record. Then click on resume on the openscript toolbar. Now it will be recorded.
Once done, copy the generated code to the actual script.
[If you are using object library add this as an asset in actual script]
Hope this helps !
Recording from opened browser is supported in Oracle Application testing suite .
1. Open OATS Tool
2. Launch IE
3. navigate to UI where you want to start recording
4. There is Globe icon top (menu Icons), select opened browser
5. Select record
6. Steps will be recorded in Editor
Image:
For more OATS related tips, visit here www.testinghive.com

TestComplete:How to run Run dialog box through C# scripting in Testcomplete?

In one of my tests, i need to open Run Dialog Box and open an application.
How can i open 'Run' in the very first step using C# script in Testcomplete.
Thanks in Advance
Helen is right: the best way is to just use the Tested Applications feature. However, if you must use the Run dialog for some reason, you can open it using this code of line:
Sys.Keys("[Hold][Win]r[Release]");

How to handle File Download pop up in Firefox using AutoIT in (selenium RC)

I need to download a file from application in my selenium RC test.
When i click on the link/button to save a file, first i get a pop up which asks me to either open or save the file, when i select 'Save' and click 'OK' then i get one more pop up asking me to provide the path where file is to be saved and file name also.
I goggled and found that this could be done via AutoIT but i am facing some problems while doing that.
so could some one please provide me the .exe file for file_download in Firefox and also where i can mention the path to save that file too.
and also if you could provide me what exactly the code, i need to write in my test case.
Please let me know how to handle this.
You can achieve that without using autoit also. follow below steps.
Create new firefox profile.
Change the preferences in that profile manually before starting the automation with that profile. (Change the settings like below)
Now start the automation using that profile so that files will be downloaded to default location.
Starting selenium server using specfic profile
java -jar selenium-server.jar -firefoxProfileTemplate "C:\Users\UserName\AppData\Roaming\Mozilla\Firefox\Profiles\234saddsf.customProfile"
I found this link: http://qtp-help.blogspot.com/2009/07/selenium-handle-dialogs.html
Unfortunately it is for the old style dialog boxes that do not have the open vs save radio buttons. I'm searching for a solution to this part of the problem.

Resources