tgindex

Java Selenium Testing Interview Questions 【CodingAnywhere】

описание

@Java @Selenium @manualtesting @AutomationTesting @Coding @Placement @Interview @Testng @Maven @cucumber @cypress @postman @software @jobs #java #Selenium #Coding #programming #testing #ManualTesting #Interview #jobs @Jira #Jira #automationtesting

3 914
подписчиков
Охват к подписчикам
241,4%
ERR
Реакции к просмотрам
0,13%
249 на 20 постов
Пересылки к просмотрам
0,10%
188
Постов в день
0,0
всего 20

Где отзываются чаще

доля реакций к просмотрам
  • 24 июн. 2023 г.Can you tell me about the order of TestNG annotations? Ans: @BeforeSuite @BeforeTest @BeforeClass @BeforeMethod @Test @AfterMethod @AfterClass @AfterTest @AfterSuite0,56%
  • 11 янв. 2023 г.Reverse the words in string Answer: import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.print("Enter Original string : "); String originalStr = s.nextLine(); s.close(); String words[] = originalStr.split("\\s"); String reversedString = ""; //Reverse each word's position for (int i = 0; i < words.length; i++) { if (i == words.length - 1) reversedString = words[i] + reversedString; else reversedString = " " + words[i] + reversedString; } // Displaying the string after reverse System.out.print("Reversed string : " + reversedString); } } Output: Enter Original string : Today's Date is 11dec 2023 Reversed string : 2023 dec 12 is Date Today's0,24%
  • 21 июн. 2023 г.How to capture screen shot in Webdriver? Ans: File file= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(file, new File("c:\\name.png"));0,23%
  • 18 июн. 2024 г.Java program to arrange the given numbers to form the biggest number import java.util.*; public class LargestNumber { private static class CustomComparator implements Comparator<String> { @Override public int compare(String a, String b) { String order1 = a + b; String order2 = b + a; return order2.compareTo(order1); } } public static String formLargestNumber(List<Integer> numbers) { List<String> strNumbers = new ArrayList<>(); for (Integer number : numbers) { strNumbers.add(number.toString()); } Collections.sort(strNumbers, new CustomComparator()); if(strNumbers.get(0).equals("0")) { return "0"; } StringBuilder largestNumber = new StringBuilder(); for (String num : strNumbers) { largestNumber.append(num); } return largestNumber.toString(); } public static void main(String[] args) { List<Integer> numbers = Arrays.asList(3, 30, 34, 5, 9); String result = formLargestNumber(numbers); System.out.println("The largest number formed is: " + result); } }0,21%
  • 25 мая 2023 г.What details are included in the defect report? Answer- A defect report consists of Defect ID, Description of the defect, Feature Name, Test Case Name, Reproducible defect or not, Status of the defect, Severity, and Priority of the defect, Tester Name, Date of testing of the defect, Build Version in which the defect was found, the Developer to whom the defect has been assigned, name of the person who has fixed the defect, Screenshots of a defect depicting the flow of the steps, Fixing the date of a defect, and the person who has approved the defect.0,15%
  • 27 апр. 2023 г.Which locator you are using in your framework and why? Ans: Mostly we used ID and Xpath because Id is the fastest and unique one and after that we prefer Xpath.Anyways we have other locators as well like css , class,name, tag name, Link text,Partial Link text.0,13%
  • 4 апр. 2024 г.Validation Vs Verification0,10%
  • 26 апр. 2023 г.Can you convert string a =”110a” in integer? Ans: No we got NumberFormatException while converting the above string.0,10%
  • 25 апр. 2023 г.What is Automated Testing? Ans: Testing employing software tools which execute tests without manual intervention is called Automated Testing. Can be applied in GUI, performance, API, etc. testing. The use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions.0,10%
  • 25 мая 2023 г.How you can handle the list box? Answer:Using selenium Select class &it's methods like selectByValue, selectByIndex etc.0,09%
  • 17 июн. 2024 г.Reverse the words in String (Python) #function string def reverse_words(input_string): words = input_string.split() reversed_words = words[::-1] reversed_string = ' '.join(reversed_words) return reversed_string # Main program if name == "main": user_input = input("Enter a string: ") result = reverse_words(user_input) print("Reversed words string:", result)0,09%
  • 3 апр. 2024 г.Java code to find Prime Number 1 to 1000 public class PrimeNumber { public static void main(String[] args) { int start = 1; int end = 1000; System.out.println("Prime numbers between " + start + " and " + end + " are:"); for (int i = start; i <= end; i++) { if (isPrime(i)) { System.out.print(i + " "); } } } // Method to check if a number is prime public static boolean isPrime(int number) { if (number <= 1) { return false; } // Check for divisibility from 2 to the square root of the number for (int i = 2; i <= Math.sqrt(number); i++) { if (number % i == 0) { return false; // If divisible, not prime } } return true; // Prime number } }0,08%