Contributions
Declaring nested parameters
Hello, I am a beginner with SoapUI and after checking some responses from a few simple API methods I would like to try the same for more complicated methods which require some nested parameters like : client => { username => 'api client username', password => 'api client password', }, search => { domain => 'mynewdomain', extensions => [ '.co.uk', '.com' ] } So far I've worked only with "Method Parameters" tab but I don't know how to declare for example the variable "username" to be the child of the "client". Is there anyone who can give me a clue or some documentation that I should read in order to solve this? Thank you! Lucian1KViews0likes0CommentsRe: Unable to highlight and log a picture at the same time
Hi Robert, You can try the below function: Sub findobject(PropArray, ValuesArray, path) Dim val,w Set w = path.FindChild(PropArray, ValuesArray, 10) If w.Exists then val = true else val = false End if If val = True Then Set Result = Runner.CallObjectMethodAsync(Sys, "HighlightObject", w, 5) Log.Message "The object "&ValuesArray&" is displayed on page", Nothing, pmNormal, Nothing, path While Not Result.Completed aqUtils.Delay 100 WEnd Else Set Result = Runner.CallObjectMethodAsync(Sys, "HighlightObject", path, 5) Log.Warning "The object "&ValuesArray&" was not found.", Nothing, pmNormal, Nothing, path While Not Result.Completed aqUtils.Delay 100 WEnd End If I am having the same problem as you if I lower the number of flashing times(currently is set to 5) from the below line code : Set Result = Runner.CallObjectMethodAsync(Sys, "HighlightObject", w, 5) Please let me know if it helps, Lucian1.5KViews0likes0CommentsWait until a webpage is loaded
Hello! I am testing a website by navigating through it's pages and searching for specific objects. The problem is that when clicking on different buttons these will open new pages which are loading quite slow and my script won't find the objects until I call a WaitPage or insert a static Delay WaitPage Method is requiring a String variable (URL) which needs to be hard-coded in order for the method to function correctly. My questions : is there any method that I can use to get and store automatically the URL of a page into a variable without hard-coding it? I am asking this because there are dozens of pages and it's quite hard to navigate through each page and save it's link into my script. also, is there a way to determine if a page has finished to load/download ( Browser loading ) and then go to the next steps in the script? Thank you, Lucian18KViews0likes1CommentRe: Unable to highlight and log a picture at the same time
Hey Robert ! Thanks for the fast reply ! I am getting a VBScript runtime error on line 7 column 3 so the issue may be with this code line : Set Result = Runner.CallObjectMethodAsync(firefox, "HighlightObject") Thank you!1.5KViews0likes0CommentsUnable to highlight and log a picture at the same time
Hello! I am a beginner with TC and trying to create a VB script for highlighting an object (a button for example) from a web-page and log a picture of it (that will display the button as highlighted) at the same time. I am running the following script but I get an error and don't know what I have made wrong : Sub Find Dim firefox, Result Set firefox = Aliases.firefox.Page("http://www.google.ro/").Panel("searchform").Form("tsf").Panel(0).Panel(1).SubmitButton("btnK") Set Result = Runner.CallObjectMethodAsync(firefox, "HighlightObject") Log.Picture(firefox) While Not Result.Completed aqUtils.Delay 300 WEnd End Sub22KViews0likes7Comments