OpenText Overview
- www.opentext.com
- Waterloo, ON (Canada)
- 10000+ employees
- 1992
- Public (OTEX)
- Computer Hardware & Software
- โน100 to โน500 billion (INR) per year
- Unknown
OpenText Java Selenium Automation Interview Questions: In The Various companies testing interview questions series of posts, we added the latest interview questions and answers for SDET, Software Tester, and Manual & Automation Testing Questions and Answers For Freshers and experienced Testers.
OpenText Exstream Hacker Rank Interview Questions
Round 1:
- Given a string s, find the length of the longest substring without repeating characters.
Example:
Input: “abcabcbb”
Output: 3
Explanation: The answer is “abc”, with a length of 3.
Approach: Use a sliding window technique with two pointers - Write a function that, given a m x n matrix where each row and each column are sorted in ascending order, searches for a given integer target.
matrix = [
[1, 4, 7, 11],
[2, 5, 8, 12],
[3, 6, 9, 16],
[10, 13, 14, 17]
]
target = 5
Output: True
Approach:
Start at the top right of the matrix.
If the current number equals the target, return True.
If the current number is greater than the target, move left.
If the current number is less than the target, move down.
Continue until you find the number or exit the matrix bounds.
Round 2:
- Given a string, reverse each word in the string and replace spaces with the % character. The order of the words should be maintained, but the characters within each word should be reversed.
๐๐ง๐ฉ๐ฎ๐ญ:
“This is a tree”
๐๐ฎ๐ญ๐ฉ๐ฎ๐ญ:
“sihT%si%a%eert”
Approach: Split the input string by spaces into an array of words.
Reverse each word in the array.
Join the words with % as the delimiter to form the final output string. - Questions on Automation framework, architecture, Performance and Security Testing.
Round 3:
- Puzzle: You are given two eggs and a 100-story building. Your task is to determine the highest floor from which you can drop an egg without it breaking, using the fewest number of drops in the worst-case scenario.
- Questions on the Test plan, Cloud specifically on AWS, how the release cycle works, and different release or deployment strategies.
- Imagine you are assigned to test the search bar functionality of an e-commerce website. The search bar is designed to help users find products quickly by displaying search results and suggestions as they type. Your goal is to create a comprehensive testing strategy to ensure the search bar behaves as expected under different conditions.
Round 4:
- You are the QA lead for a comprehensive e-commerce platform that handles multiple functions such as user authentication, product search, checkout process, and post-purchase features like reviews and returns. The platform is gearing up for a major release with significant updates to its search algorithm, a redesigned checkout experience, and new security features.
Your task is to design a complete test strategy and testing cycle plan to ensure a smooth release with minimal issues post-deployment. This involves handling multiple test types, ensuring proper coverage, and maintaining efficiency throughout the release cycle. - Questions on AWS Lambdas, Serverless architecture.
Updated on: 07-07-2022
Program: Write a Java program for a given input array A consisting of N integers, and return the biggest value X, which occurs in A exactly X times. If there is no such value, the function should return 0.
Input/Expected Output:
int[] intArray = { 3, 8, 2, 3, 3, 2 }; // Output : 3
int[] intArray1 = { 7, 1, 2, 8, 2 }; // Output : 2
int[] intArray2 = { 3, 1, 4, 1, 5 }; // Output : 0
int[] intArray3 = { 5, 5, 5, 5, 5, 5 }; // Output : 0
int[] intArray4 = { 5, 5, 5, 5, 5 }; // Output : 5
package com.SoftwareTestingo.InterviewPrograms; public class OpentextInterviewPrograms { public static void main(String[] args) { int[] ar = {3,8,2,3,3,2}; int[] ar1 = {7,1,2,8,2}; int[] ar2 = {3,1,4,1,5}; int[] ar3 = {5,5,5,5,5,5}; int[] ar4 = {5,5,5,5,5}; System.out.println(validate(ar)); System.out.println(validate(ar1)); System.out.println(validate(ar2)); System.out.println(validate(ar3)); System.out.println(validate(ar4)); } public static int validate(int ar[]) { int bigNumb=0; int count=0; for(int i=0; i<ar.length; i++) { for(int j=0;j<ar.length;j++) { if(ar[i]==ar[j]) { count++; } } if(count==ar[i]&&bigNumb<ar[i]) { bigNumb=ar[i]; } count=0; } return bigNumb; } }
Program: Write a Java program for a given array A of N integers and return the smallest positive integer (greater than 0) that does not occur in A.
Examples:
- Given A = [1, 3, 6, 4, 1, 2], the function should return 5.
- Given A = [1, 2, 3], the function should return 4.
- Given A = [โ1, โ3], the function should return 1.
Assumption:
- N is an integer within the range [1..100,000].
- Each element of array A is an integer within the range [โ1,000,000..1,000,000].
package com.SoftwareTestingo.InterviewPrograms; import java.util.Arrays; public class SmallestPositiveIntegerNotInArray { public static int solution(int[] inputArray) { int smallestInt = 1; if (inputArray.length == 0) return smallestInt; Arrays.sort(inputArray); if (inputArray[0] > 1) return smallestInt; if (inputArray[inputArray.length - 1] <= 0) return smallestInt; for (int i = 0; i < inputArray.length; i++) { if (inputArray[i] == smallestInt) { smallestInt++; } } return smallestInt; } public static void main(String[] args) { int[] inputArray = { 10, 2, 25, 43, 0, 67, 1, 7 }; // Output: 3 int[] inputArray1 = { 1, 3, 6, 4, 1, 2 }; // Output: 5 int[] inputArray2 = { 1, 2, 3 }; // Output: 4 int[] inputArray3 = { -1, -3 }; // Output: 1 System.out.println(solution(inputArray)); System.out.println(solution(inputArray1)); System.out.println(solution(inputArray2)); System.out.println(solution(inputArray3)); } }
Program: Write a Java program that, given integer N, returns the smallest non-negative whose individual digits sum to N.
Example:
- N = 16; the function should return 79. Many numbers, such as 79, 97, 808, 5551, 22822, etc., have digits that sum to 16, but the lowest such number is 79.
- N = 19; the function should return 199. The sum of digits 1+9+9=19.
- If N = 7; the function should return 7;
- Assume N = 0 to 50.
package com.SoftwareTestingo.InterviewPrograms; import java.util.Arrays; public class Smallest { public static boolean sumNo(int n, int N) { int sum=0; while (n!=0) { sum=sum+n%10; n=n/10; } if(sum==N) { return true; } return false; } public static void main(String[] args) { // TODO Auto-generated method stub int[] arr = { 97, 898, 5506, 79, 22822 }; Arrays.sort(arr); for (int i= 0; i < arr.length; i++) { if (sumNo(arr[i], 16)) { System.out.println("smallest no" + arr[i]); break; } } } }
OpenText Automation Interview Questions
Updated on: 18.05.2019
- Program: Write a Java program to select a particular character from a string using a regular expression.
- Program: Write a program to reverse a string.
- Which part of the selenium overloading and overriding method concept implemented
Ans: Overloaded Methods of Selenium are:-
.frame(string), frame(int), frame(WebElement).
.findElement(โ<All type of locator e.g. id , XPath , cssClass>โ).
wait(), wait(timeout), wait(timeout,Nanos)
and WebDriverWait methods - How to handle exceptions in Java
- What is finally finalize and final in Java?
- What is the difference between HashMap and HashTabel?
- What is the return type of window handles?
- What is the return type of getattribute() and gettext()
- How to handle multiple browser windows.
- What is the glue in cucumber?
- What is background, datatable in cucumber?
- When to use AutoIT?
- Which test cases should not be automated and why?
- How much percent automation is covered in your project
- Program: Write a program for the Fibonacci series.
- Write a program to write data into the c3 column by dividing c1/c2. C3=c1/c2
- They want candidates who know ETL testing.
About OpenText Company
OpenText offers an attractive and unique opportunity to be part of an exceptional team. Weโre one of the fastest-growing success stories in the digital world.
OpenText began in 1991 as a project from the University of Waterloo in Canada. Over the next 25 years, it evolved with the shifting digital landscape, acquiring companies and products along the way. Today, OpenText has 12,000 employees in more than 130 locations.
OpenText has a clear vision of enabling the digital world. Our employees help us define and enable the digital future with market-leading enterprise solutions for digital transformation.
Weโre also committed to fostering the best possible work environment for our people in each location worldwide. Team socials, volunteer events, excellent technology, and supportive co-workers come together at OpenText to create a winning team.
The diversity and strength of our workforce are fundamental to our success. People are our greatest strength. We strive to attract and retain the very best talent the industry has to offer. Learning Services can accelerate your knowledge and skills with OpenText best practices to maximize the value of your deployment and ongoing operations.
Our comprehensive education programs are designed to meet the needs of all users. Our goal is to help you develop the technical know-how and creative vision to meet your most demanding business challenges.
The new Learning On Demand Subscription pricing for a single named user provides access to training materials and learning paths for over 400 courses across OpenText product suites. Whether you are an end user, power user, business analyst, system administrator, or developer, there are learning solutions for you, all for approximately the price of one regular training course.