Finding another job can be so cumbersome that it can turn into a job itself. Prepare well for the job interviews to get your dream job. Here's our recommendation on the important things to need to prepare for the job interview to achieve your career goals in an easy way. Sikuli is a open source tool used in testing application with images. It is a powerful tool and automate the testing. This can be done by taking screenshots of the web elements and store in project folder. Working with Sikuli is easy as screenshots grasp the attention. It also integrates with Selenium. Follow our Wisdomjobs page for Sikuli job interview questions and answers page to get through your job interview successfully in first attempt.
Question 1. Explain What Is Sikuli?
Answer :
Sikuli is a tool that uses “Visual Image Match” method to automate graphical user interface. All the web elements in Sikuli should be taken as an image and stored inside the project.
Question 2. Mention What Sikuli Is Comprised Of?
Answer :
Sikuli is comprised of:
Question 3. List Out What Are The Practical Uses Of Sikuli?
Answer :
Practical uses of Sikuli:
Question 4. Mention What Is The Difference Between Selenium And Sikuli?
Answer :
Sikuli Selenium:
Question 5. Explain What Exactly Does Sikuli Script Consist Of?
Answer :
Sikuli Script is a combination of Jython and Java library that automates GUI interaction using image pattern to direct mouse or keyboard events.
The main segment of Sikuli Script is a Java library which contains two parts:
Question 6. Explain How Sikuli Script Works?
Answer :
To run a Sikuli Script, Sikuli IDE creates an org.python.util.PythonInterpreter and passes a few lines of headers to the interpreter automatically. Once these headers are defined or set, the .py script is simply executed by PythonIntepreter.execfile().
Question 7. Explain How You Can Retrieve The Name Of The Image On Pop-up?
Answer :
You can retrieve the name of the image on pop-up in two ways
Method: 1
query = capture()
gotit = Filename [query] [0]
popup(gotit)
Method: 2
popup(“select a icon in the”)
query = capture()
Result = Filename [query]
If result:
Popup(Result[0])
else:
popup (“unknown image”)
Question 8. Explain How You Can Create An Object For Screen Class And Why Screen Class Is Important?
Answer :
In Sikuli, screen is a base class, for this screen class we have to create an object first only then we can access all the methods provided by Sikuli. Syntax for sikuli includes
Syntax for creating an object in Sikuli: Screen s=new Screen()
Question 9. Mention What Is The Short-cut To Kill The Sikuli Script?
Answer :
To kill the Sikuli Script, you have to use the short cut Alt+Shift+C.
Answer :
To find a specific element on the screen you use the syntax
s.find(“<<image name>>”);
Question 11. Explain What Is Region In Sikuli?
Answer :
In Sikuli, Region class provides an abstraction for the screen regions returned by the find() function matching a given visual pattern. Its attributes include X and Y co-ordinates, height, width, and similarity score.
Question 12. Explain What Is Sikuli Slides?
Answer :
Sikuli slides can be used to test and automate anything you see on the screen using your presentation slides. For automating repetitive tasks and to crate PowerPoint presentation.
Question 13. How Sikuli Looks For A Location For Search Images?
Answer :
For Sikuli, it maintains a list of location to locate images when they are not found in the Sikuli folder. Sikuli will use following the command to look, add or remove images from the folder.
getImagePath(): # getImagePath() returns a Java array of Unicode strings
addImagePath: It adds a new path to the list of image search path
removeImagePath : It removes a path from the list of image search paths
Question 14. What Is The Command Setautowaittimeout And Getautowaittimeout() Command Is Used For?
Answer :
The setAutoWaitTimeout command is used to determine the maximum waiting time for all subsequent find operations. While the getAutoWaitTimeout is used to determine the current value of the maximum waiting time for find operations.
Question 15. Explain What Is Match In Sikuli?
Answer :
In Sikuli, Match is a class available in Sikuli Package. Class match extends class Region, all methods of class region can be availed with a match object. An object of class Match displays the result of a successful find operation.
Question 16. Mention What Is The File Extension-name.py Is Used For?
Answer :
The file extension-name.py contains the classes and methods, which represents the API; that might be used in a Sikuli Script.
Question 17. Mention What Is The Command Used To Type A String On A Text Box?
Answer :
To enter particular text on the text box this method is used and command is
s.type(“<<image name>>” , “String to be typed”);
Question 18. Is It Possible To Work In A Particular Region In Sikuli?
Answer :
Yes, it is possible to work with a particular region in Sikuli. Based on the location of a unique pattern (image) on your display, you can also increase the size of the region.
Sikuli Related Tutorials |
|
---|---|
Adv Java Tutorial | Selenium Tutorial |
Mobile Learning Essentials Tutorial |
Sikuli Related Practice Tests |
|
---|---|
Adv Java Practice Tests | Selenium Practice Tests |
Graphic Design Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.