Sometimes depending on the situations, we may need multiple config.js files. But the question is how to define them in the karate class path. One most easy and convenient approach is to call those files from the main karate config.js file as mentioned below code snippet. Here in the above case the ‘karate.env’ variable can…
Category: Software Testing
How to set-up Karate in Windows machine for API testing?
Please follow the below mentioned steps: – 1. Open the below mentioned link: –README file for karate 2. Go to the index section and check the Quickstart link as shown below. 3. Copy the below mentioned code. Windows machine must have java and maven installed. From command prompt go to the project location and paste…
How to handle SSL certificate in Edge browser for Selenium Web-Driver?
In many cases we can face the error related to SSL certificate as mentioned below :- So, this error in Edge browser can be handled using EdgeOptions class provided by Selenium Web driver. The sample code block is mentioned below:- In the above code block we are accepting the Insecure certificate by passing Boolean value…
How to kill a Windows process running on a specific port from command line?
1st open the command prompt as “Run as administrator”. Then paste the below command and hit “Enter”. e.g. Process is running on port 8080. Then kill the task running on that port by using the pid. The command is:
Any other way we can enter the input data in a text Box other than using sendKeys() methods in Selenium WebDriver?
Ans:- This is very frequently asked by the interviewer to check whether you are aware about the JavaScriptExecutor interface or not. Using javaScriptExecutor we can enter the input data in a text box. The code is mentioned below:- Code:- Explanation of the source code (Here source code snip added for better understanding):- JavaScriptExecutor is an…
Which is the right time to execute the automation test scripts and what is the time interval you run those test scripts ?
Automation test script obviously need to execute when the application becomes stable only. So, at the initial phase of the development lifecycle better use the manual testing and unit testing block to ensure the stability of the system. And in the later part of the software development life cycle, when the system becomes comparatively stable…
How will you segregate (on what basis) the regression , sanity , smoke suite if there are more than 400 manual test cases are present?
Before segregation of testcases, one must have clear idea about the different testing methods. So please refer the link for that. So, obviously, the smoke testing suite will contain the high priority and high severity testcases. So and if time permits, include severity 2 level as well. So, the set of testcases with high severity…
What is Smoke testing, Sanity Testing and Regression Testing?
Smoke Testing:- It’s done at the early phase of software development life cycle to ensure that core functionalities are working fine. The main purpose to identify the blocker or any major issues at the very early stages to save the efforts and time of the delivery life cycle. Sanity Testing:- It’s performed when a new…
How to handle the Dynamic Google suggestions using Selenium
Many times we have to handle the suggestions in the search box dynamically. As shown below for the google search page. When typed “selenium” word, it’s showing so many suggestions:- Now if we want to select only “selenium interview questions” then how to do that? As these options appears dynamically, so by using fixed locator…
How to Download and Install JMeter on windows 10?
Download And Installation Of JMeter is mentioned below:- Step 1:- Go to the below mentioned link. Which is the official site for Apache JMeter. JMeter Download Step 2:- Download the zip file from Binaries Section. Zip file is applicable for Windows Operating System. As here clearly mentioned that Java 8+ is required and it should…