YouTube Icon

Interview Questions.

Top 100+ Sahi Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Sahi Interview Questions And Answers

Question 1. What Is Sahi?

Answer :

Sahi is a device that allows automate checking out of browser primarily based  packages. It is released under an Apache 2 license.If you figure with web packages, you need to check the product earlier than each launch. Testing may be carried out manually however it is able to take a long time and might emerge as repetitive and uninteresting. Automation can make this testing (or checking) very speedy and loose up the tester for greater beneficial exploratory testing. Typically a one thousand script suite can be carried out in as less as 6-8 hours. This way that regression exams can run in a single day and you could have effects while you come in the subsequent morning.

Question 2. But Does It Not Take A Lot Of Effort To Create And Write Scripts And Maintain Them? We Had Once Attempted It And Failed!?

Answer :

Success in browser automation relies upon a lot at the device you use. Browser generation has advanced notably and most tools are unable to maintain up with browsers for automation. Sahi’s architecture, however, permits automation of any browser new or antique, as long as they aid proxies and javascript (which all browsers do).

LoadRunner Interview Questions
Question three. Really? How Does Sahi Work?

Answer :

To use Sahi, the browser is configured to apply Sahi as its proxy. Once configured, all HTTP requests and responses bypass via Sahi. Sahi then injects javascript in relevant HTTP responses. This javascript lets in recording of person moves and simulation of events for playback.

Question four. Sahi Has A Recorder? Is A Recorder Helpful? I Have Heard That Record And Playback Is Frowned Upon ?

Answer :

Sahi has a very good recorder for recording person movements. Good recorders  are exquisite time savers for testers. Pure record and playback does now not paintings but. The recorder is used to report snippets of code and then capabilities are created which are reused in scripts. Nevertheless, the recorder (or alternatively the item secret agent) saves 30 to 40% time spent in figuring out factors and creating consumer glide.

LoadRunner Tutorial
Question five. Oh, So Do I Need To Know Programming? Does It Involve Coding?

Answer :

Some level of programming/coding information might be required. Sahi’s scripting language is Sahi Script that is an extension of Javascript. 

Javascript is one of the easiest languages to analyze and use specially if one writes easy procedural code as is normally wanted in checking out.

Manual Testing Interview Questions
Question 6. Why Not Use Java Or C#?

Answer :

Sahi has Java and Ruby drivers. However, testers discover Sahi script to  be the very best to paintings with. Choose which ever works on your enterprise.

Question 7. But Javascript Cannot Read Files Etc. Right?

Answer :

Not simply. Javascript on the browser has regulations. Sahi’s script executes internal a Java method. You can study/write files, hook up with databases, and do pretty a whole lot anything that Java can.

Selenium Tutorial Selenium Interview Questions
Question 8. I Have Heard That Testing Code Is Like Development Code. It Needs To Be Architected, Refactored And Maintained Like Production Code?

Answer :

No this is not accurate. Automation code SHOULD be simplistic without too many conditions/loops/inheritance and so forth. It is even OK to have duplication in automation code. If a script fails, one ought to be able to right away suspect the software beneath check as opposed to the trying out code. This can only occur if the testing code is trivially simple.

Question nine. That Was A Useful Digression On Automation Code. Coming Back To Sahi, How Does Sahi Work With Various Browsers? Do I Need To Write Separate Scripts For Each Browser?

Answer :

No. A script written for one browser will work on any browser. Sahi looks after normalizing the variations throughout browsers.

Bugzilla Bug Tracking System Interview Questions
Question 10. How Does Sahi Identify Elements?

Answer :

Javascript exposes a number of attributes in the DOM. DOM is the programmatic hierarchical illustration of the HTML shape in a web page. Sahi uses any of the element’s DOM attributes to pick out factors. For example, a button may be recognized by using the visible text, identification, name, css className and so on. Sahi’s Controller suggests all of the identity options which might be viable for an element.

Bugzilla Bug Tracking System Tutorial
Question eleven. What Is Xpaths?

Answer :

XPaths are frowned upon in Sahi. XPaths are typically used to traverse information represented as XML. HTML systems aren't without a doubt information however UI representations and are liable to modification. XPaths beginning from the foundation node are almost never beneficial. One has to then modify it the usage of a normal expression. When a script fails, the first suspect is usually the expression and now not the AUT. This wastes a great quantity of tester’s time. There also are differences in XPath implementations which upload to the tester’s problems.

Automation Testing Interview Questions
Question 12. One Of The Main Problems In Our Current Browser Automation Is That We Need To Add Waits Everywhere. Can You Add Waits In Sahi?

Answer :

In 99% cases, Sahi does not need waits. Sahi robotically waits for page/frame/iframe hundreds and additionally for any AJAX interest. Even after ready if a step fails, Sahi retries it 5 times at 2 2nd periods earlier than it reviews a failure. Due to this Sahi scripts are very stable and feature only a few fake negatives.

LoadRunner Interview Questions
Question thirteen. My Application Uses Lots Of Frames And Iframes. How Does Sahi Handle This?

Answer :

Sahi robotically traverses frames and iframes to discover elements. One does no longer want to specially choose a body earlier than running with it.

Software checking out Tutorial
Question 14. What About Popup Windows?

Answer :

Popup home windows is a loose time period. Some human beings consult with javascript signals, confirms and activates as popups. These popups are suppressed by Sahi in the course of playback, but you could manipulate them in script.The other form of popup are the popup home windows. Sahi lets in switching to every other window and running on it.

Question 15. Does It Support File Uploads And File Download Dialogs?

Answer :

File uploads are handled in a spherical approximately manner in Sahi. Sahi adds the file to the HTTP request via the proxy. For document downloads, files are mechanically downloaded to a temp vicinity by using Sahi and the script lets in interplay with these documents.The document add element can get difficult in HTML5 apps on a few browsers, so that you can also want to motel to native occasions that are supported in Sahi Pro.

Software checking out Interview Questions
Question sixteen. Ok, Once I Have A Few Scripts, Can I Run Them In Batch? Can I Hook Into My Continuous Integration System?

Answer :

Yes Sahi has a idea of suites. Suites may be triggered from .Bat files, shell scripts and ant. You can trigger Sahi scripts from CI structures the usage of its ant target.

Question 17. Do We Need To Build Reporting Logging Etc ?

Answer :

No, Sahi robotically logs all statements which are carried out, without the tester adding any code. It additionally builds a summary record in HTML of all script executions in a suite.

Test Cases Interview Questions




CFG