Posts

Showing posts from April, 2021

JavaScript Executor functions for Selenium

In this article we will learn about different action types we can perform using JavaScript Executor. Sometime we are not able to accomplish the task using traditional methods of Selenium, to handle those cases Javascript can come in handy with the solutions. JavaScript Executor functions for Selenium JavaScriptExecutor is an interface that helps to execute JavaScript through Selenium WebDriver. It provides executeScript and executeAsyncScript methods to run Javascript on selected frames or windows. If you are appearing for the written test in Nagarro, you might find a lot of questions on the syntax of Javascript Executor in your paper. Click Operation using JavaScript Executor JavaScriptExecutor js = (JavaScriptExecutor)driver; js.executeScript(" arguments[0].click();", button); Explanation - We have to typecast driver each time we use javascript executor. Scroll into a particular element using JavaScript Executor js.executeScript("arguments[0].scrollIntoView()", ...

How to upload file in Selenium Webdriver

In this article we will learn how to upload file in Selenium Web driver. It is very famous interview question. How to upload file in Selenium Web driver We can upload the file in Selenium Web driver using multiple ways sendKeys (Recommended Robot Class Auto IT ( third party tool) Sikuli (third party tool) Upload file in Selenium Web driver using sendKeys This is the most common method to upload a file in Selenium web driver. This can only be applied when you see attribute type = "file". Then only it is possible to use sendKeys(). driver.findElement(By.xpath("//input[@id='file']")).sendKeys("C:\\Selenium_file.docx"); Upload file in Selenium using Robot Class Once you click on browse, you see a window. You have to perform below operation in order to perform any action using Robot class Copy the path CTRL + V Press enter Key First we have to create an instance of Robot class. Robot rb = new Robot(); rb.delay(2000);                     ...

API Testing Interview Questions

In this article we will cover API Testing Interview Questions. API testing earlier was considered as a form of Manual testing only but now even APIs can be automated with the help of various frameworks such as Rest Assured or Karate. In this article we will cover API Testing Interview Questions in detail that you should know before appearing for any interview. Nowadays companies are looking out for the testers having experience in API testing. API Testing Interview Questions What is the difference between an API and web services? All web services are APIs but not all APIs are web services Web services needs a network to operate while APIs don't. What are the advantages of API Testing? Time saving Defects can be caught earlier What are the common protocols used in API Testing? HTTP SOAP JMS REST UDDI What all testing can be carrier out using APIs? Functional testing Performance testing Load testing Security testing What are the differences between API Testing and Unit Testing? API T...

ITC Infotech Automation interview experience

In this article we will cover the interview experience of ITC Infotech Pvt Ltd for the role of Automation Testing for the client Fidelity in Gurgaon location. ITC Infotech Automation interview experience Company - ITC Infotech Location - Gurgaon Job Role - Automation Engineer Date of Interview - 18th April 2021 Interviewer - Priyanka Arora Tell me about yourself What is a test plan? What user roles are associated with Agile? What do we do for Sprint 0? Difference between String, StringBuilder and StringBuffer? Can we perform get operation using Put? What do you understand by Constructor? What is the difference between abstract class and interface? What do you understand by inheritance? What do you understand by polymorphism? Can there be 2 foreign keys? Yes a table can have multiple foreign keys and each foreign key may be associated with different parent table. Each table can have only one non null unique primary key. To conclude, the interviewer was really cooperative and asked only ...

Interview Experience at FarEye| Automation Testing

Image
In this article we will cover interview experience at FarEye. Interview Experience at FarEye | Automation Testing Round 1 - Written     HackerRank test consisted of 33 questions to be completed in 1.5 hours Java output questions Reasoning Selenium questions 2 programs Write a program to check if the integer is Palindrome or not. Write a program to print the word occurences in a given String using HashMap, for example - This is what this is This - 2 is -2 what -1 Overall Java output questions were conceptual, prepare with constructors, loops, polymorphism and other topics. Carry a notebook along with you to solve few questions on paper. There was a question like if A, B and C can complete the work in 12, 20 and 60 days. How many days it will take them to complete the work together? 4 days 7/24 days What is the degree formed when the time is 3 hours and 40 mins on a clock? 150 140 130 125 120 A,B and C can do a work in 20, 30 and 60 days respectively. In how many days the work w...

Interview Experience Gemini Solutions Automation Testing | SDET

Image
In this article we will cover interview experience at Gemini Solutions for SDET profile. Interview Experience Gemini Solutions Automation Testing | SDET Company - Gemini Solutions Location - Noida Job role - SDET Experience - 5.8 Years Date - 11th April 2021 HR- Divyanshi Singh Interviewer - Sakshi Goyal, Abhishek Sharma Explain your roles and responsibilities in the current organisation. Interviewer asked me to share my screen Tell me about different types of Waits in Selenium Write down the syntax of Implicit wait. driver.manage().timeouts().implicitlyWait(TimeOut, TimeUnit.SECONDS);     What do you understand by the DataProviders in TestNG, can you write down the example of DataProviders? We have seen the use of dataProviders in our previous tutorials. We declare them at the @test class and parameterize the method. for instance, we can add browser details and other in our DataProvider class and pass it as parameter at @Test method. Explain Page Object Model(POM)? Write...

Java 30 Days of Code- Day 8 - Dictionaries and Maps

Having gone through Strings and Arrays in our previous articles. In this article we will learn about Dictionaries and Maps, Key-value pair mappings and solve one problem statement. Java 30 Days of Code - Day 8 - Dictionaries and Maps

Java 30 Days of Code- Day 7 - Arrays

In previous articles we have covered a lot of topics. In this article we will cover the most important topic, there are 90% chances you will see this topic in your question paper. If you have mastered the concept of Array, any programming language is easy to learn afterwards. Java 30 Days of Code - day 7 - Arrays Problem statement - Print an array in the reverse order. Input -  4 1 2 3 4 Output 4 3 2 1 Program - for ( int   i = n - 1 ;   i >= 0 ;   i --){              System . out . print ( arr [ i ]+ " " );          } Explanation - Loop is what needs to be correct here. It starts with n-1 ends at 0 and i--

Java 30 Days of Code - Day 6 - Strings

In this article, we will learn about Strings output question which is often asked in the interview problems.  Java 30 Days of Code - Day 6 - Strings Problem statement - Take an input from the user in Integer. Based upon the input parameter, accept the String values and print even/ odd characters. For an example Input - 2               Hacker               Rank Output      Hce akr     Rn ak Program - Scanner scan = new Scanner(System.in); int T = scan.nextInt(); String string[] = new String[T]; for(int i = 0; i<T; i++){ string[i] = scan.next(); } for(int temp = 0; temp<T; temp++){ for(int j = 0; j<string[temp].length(); j = j+2) { System.out.print(string[temp].charAt(j)); } System.out.print(" "); for(int j = 1; j<string[temp].length(); j = j+2){ System.out.print(string[temp]....

Java 30 Days of Code - Day 5 - Loops

In previous articles we learnt about Instance variables, constructors. In this article we will learn about Loops and its implementation in Java. We will solve 1 HackerRank problem statement to understand more. Java 30 Days of Code - Day 5 - Loops Problem statement - Print out the multiplication table for any input number upto 10 integers. Solution - for ( int   i   =   1 ;   i <= 10 ;   i ++){                           System . out . println ( n   +   " x "   +   i   +   " = "   +   n * i )   ;          } Explanation - Simplest loop program, we are printing out the multiplication table of 2 upto 10.    

QA Career path 2021

If you have joined a company as a Quality Analyst(QA), this guide will lay out a roadmap for you to work upon. I have seen so many people trying to switch from manual to automation, so this guide will come in handy. Let me give you a brief introduction about myself. I am a 28 year old Quality analyst with an experience of 5.8 years as a Quality Analyst, I am so eager to learn new things and have started this blog back in July 2019, till date I have written 123 articles and there is lot more to come. I used to be a manual tester and the automation concept really fascinated me a lot and ideally I am always looking for a 1 click pass rate for my test cases. I started with SOAP UI automation then switched to webservices later. QA Career path 2021 Where do I start? A lot of people I see start learning Selenium directly but I would say it is not a good practice to jump to Selenium directly. Firstly you have to build your logics, your coding standards by learning any one programming language....

Java 30 Days of Code - day 4 - Class vs Instance

We have solved the previous problems of Operators and Conditional statements in our previous articles. In this article we will try to go through the concept of Class vs Instance and explain the logics behind the concepts. Java 30 Days of Code - Day 4- Class vs Instance Problem statement -  Write a  Person  class with an instance variable,  , and a constructor that takes an integer,  , as a parameter. The constructor must assign   to   after confirming the argument passed as   is not negative; if a negative argument is passed as  , the constructor should set   to   and print  Age is not valid, setting age to 0. . In addition, you must write the following instance methods: yearPasses()  should increase the   instance variable by  . amIOld()  should perform the following conditional actions: If  , print  You are young. . If   and  , print  You are a te...