Keyword test - How check If image exist
Hello, For test a smartphone application, I want find an Image between other images and touch this. I've defined in Test Complete the image I would found. If this Image is visible at the screen t the beginning of the test, all works correctly. But if image is not visible (slide needed) , It doesn't work. I want to make a test like this (using keymord, I'm not very comfortable wth scripting) : Label : If Image exists Touch Image Else bottom slide Goto label End if But in condition of "IF...THEN" fnction, I can't find a test about visibility of an Image. I tried also While loop , but i can't find a test about visibility of an image.4.1KViews0likes8CommentsRun Testcases As Baseline and Testline
Hi, I need to Run a script in testcomplete as Baseline and Testline options. So When I set that as Baseline it will save all the image of the testcases and save it in a proper location, and when i select as Testline it will run the same testcases but it will compare the image that have been saved before. Is it possible to do with TestComplete. Thanks in Advance.Solved3.2KViews0likes9CommentsImage comparison and image find problems
I'm testing an application, which has a map with several icons. I couldn't find the icons in the Object Browser. My goal is to find a camera icon on the map and click the icon. I have found the original icon as a png file in the program files and try to locate that in the map, but it's not finding the icon. I've read the documentation about the Picture.Find method and tried to use the color and pixel tolerance values. Below is the relevant code of my application in Python. #Starting the application TestedApps.Livi_TLoik_Ui_Kaynnistin.Run() livi_TLoik_Ui_Karttatyokalu = Aliases.Livi_TLoik_Ui_Karttatyokalu hwndSource = livi_TLoik_Ui_Karttatyokalu.HwndSource_Shell grid = hwndSource.Shell.Grid ### #Unrelevant code emitted# ### screenPicture = Sys.Desktop.ActiveWindow().Picture() cameraPicture = Utils.Picture cameraPicture.LoadFromFile("C:\\Program Files\\T-LOIK\\Kartta\\kuvat\\symbolit\\kamera\\s_map_camera_outdated.png") #With a small pixel tolerance value it doesn't find any match, this value finds a wrong place. location = screenPicture.Find(cameraPicture, 0, 0, False, 500,True, 50) Log.Message(location.Bottom) Log.Message(location.Top) Log.Message(location.Right) x = (location.Left + location.Right)/2 y = (location.Top + location.Bottom)/2 grid.Click(x, y) I also tried the compare function with a screenshot of the icon on the map and the same icon, but that didn't work either. I have attached the camera icon and a screenshot of the map. There are several of the camera icons on the map and it doesn't really matter which one I would click. How could I make TestComplete find the image on the map? How could I have debugged this myself?2.5KViews0likes6CommentsManually creating image comparsion mask
Hello, i followed the instructions here but when i try to load the created mask (monochrome bitmap created with paint) a error message ("no black/white image" as you can see on the attached screenshot) came up. I don´t see where the failure should be. Screenshots: 1. creating the mask 2. the error messageSolved2.5KViews0likes1CommentCan we load Cronto code image in SOAPUI open version?
Hi, I have an API which returns Cronto code image in response so that I can scan it with my mobile app and proceed. It works on browser well but I was trying to do same in soapui tool and there it doesn't work. I see only a loading image which keep on rotating but not displaying Cronto image. Does soapui tool support such Cronto image display in html content type?1.1KViews0likes3CommentsRequestBody content media type not validating image extension
Hi, I am building a ReSTful API using Python 3.5, Flask, Connexion and Swagger 3.0. Writing the .yml swagger file I declared a POST method that accept an image with this code: paths: /myfunction: post: requestBody: content: image/png: schema: type: string format: binary What I expected using this code is to have a sort of input validation for the input file. However it seems that it works perfectly even with JPG and SVG files. What are the main differences (if any) between image/* and image/png ?? For sure I can implement a validation of the input file extension in the Python/Flask layer, however is it possible to enable this validation with the swagger specification?