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:
Author: Admin
Leet code problem 1413: – Minimum Value to Get Positive Step by Step Sum
Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of startValue plus elements in nums (from left to right). Return the minimum positive value of startValue such that the step by step sum is never less than 1. Example 1:…
Leet Code problem 1410: – HTML Entity Parser
HTML entity parser is the parser that takes HTML code as input and replace all the entities of the special characters by the characters itself. The special characters and their entities for HTML are: Given the input text string to the HTML parser, you have to implement the entity parser. Return the text after replacing…
Leetcode problem 1409:- Queries on a Permutation With Key
Given the array queries of positive integers between 1 and m, you have to process all queries[i] (from i=0 to i=queries.length-1) according to the following rules: Return an array containing the result for the given queries. Example 1: Input: queries = [3,1,2,1], m = 5Output: [2,1,2,1]Explanation: The queries are processed as follow:For i=0: queries[i]=3, P=[1,2,3,4,5],…
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…
How to access the collection elements using the streams?
Streams is introduced in java8 version. It basically helps to write a concise piece of code and it’s functional style of code writing. For the complete piece of code please visit the below mentioned link. The piece of code for stream iteration is mentioned below :- In the above case the “forEach” is a terminal…
How to modify the collection while iterating using java?
As in the previous post we have explained how to iterate over the collection. the same code can be found by clicking on the below mentioned link. Now here the same piece of code will be used to explain the modification of collection at the time of iteration. Now new hotel is declared and when…
How to access collection elements in java using iterator method?
Iterator is a method which returns an iterator over elements. It is defined inside the “Iterable” interface of java collection framework. The source code of this interface can be found in the below mentioned link. Let’s create on collection of hotels as mentioned in the below mentioned code:- The source code of the “Hotel” class…
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…