Friday, April 24, 2020

TYSYS Interview Questions

1)

public class First {

public static void main(String[] args) {
String str = "ELEVEN"+11+2+"TWO"+"THREE"+3+6+"SIX"+"FIVE"+5;
System.out.println(str);
}

}

OUTPUT : ELEVEN112TWOTHREE36SIXFIVE5\

2)

While Selenium test Execution on Jenkins job, logs shows "Unable to Create Session" error, What could be the possible cause ?
Ans:  we needed to configure Jenkins slave exactly on the user You are trying to use with Jenkins slave service.

So, did you configure the Jenkins slave on the user which you are trying to use with Jenkins?

Ore there is a few configure checboxes to set up before run slave job, like "use active session" etc.

3) Write all Test cases for Lift/Elevator Operation
Ans: 

4)
Which are the Different Test Design Techniques ?

Manual Test Design Techniques 
Walkthrough
Informal Review 
Technical Review
Audit
Inspection
Management review

Static Test Design Techniques: 
With Help of Tools
Analysis of Coding Standards:
Analysis of Code Metrics:
Analysis of Code Structure:


Dynamic Test Design Techniques:
Specification-based: 
Boundary Value Analysis (BVA)
Equivalence Partitioning (EP)
Decision Table Testing
State Transition Diagrams
Use Case Testing

Structure-based
Statement Coverage or Line Coverage
Condition Coverage or Predicate Coverage
Decision Coverage or Branch Coverage
Multiple Condition Coverage

Experience-based
Exploratory Testing
Fault Attack

5)
Where can we configure maven remote repository URL'S ?

GOT BELOW ANS : 
How to add remote repository in Maven
Not every library is stored in the Maven Central Repository, some libraries are only available in Java.net or JBoss repository (remote repository).

1. Java.net Repository
pom.xml
<repositories>
      <repository>
          <id>java-net-repo</id>
          <url>https://maven.java.net/content/repositories/public/</url>
      </repository>
</repositories>
2. JBoss Repository
pom.xml
<repositories>
      <repository>
          <id>jboss-repo</id>
          <url>http://repository.jboss.org/nexus/content/groups/public/</url>
      </repository>
</repositories>
3. Spring Repository
pom.xml
<repositories>
      <repository>
          <id>spring-repo</id>
          <url>https://repo.spring.io/release</url>
      </repository>
</repositories>

6)
What are Benefits of Maven ?
Ans: 
Better Debugging:
Maven storehouses permit an artifacts source code to distributed along by the artifacts JAR. Integrated Development Environments, for example, Eclipse enable designers to automatically download the source code, which gives debuggers a chance to go into the source code and explore why the artifact  did not behave accurately.

Better collaboration:
Maven  repositories  permit an artifacts  Javadoc to distributed close by the artifacts JAR. Integrated Development Environments, for example, Eclipse allows developer to automatically  download the Javadoc and see how to utilize the antique. Get in touch with OnlineITGuru for mastering the Devops.

More  component builds:
Maven makes it simple to recognize when a software, has a dependency on code outside its source control organizers. Developers  and managers alike prefer little, componentized builds since they permit code changes to immediately tried and coordinated.

Reduced duplication:
Maven projects can use a Project Object Model (POM), in order to reduce the duplication that generally exists in Ant ventures. For example, instead of having each and every  Ant build.xml that deals, with each one of the interest  of configuring Sonar properties. Such setup occur in a Maven parent POM  which child project acquire from.

Disadvantages of Maven :
Maven is unreliable:
Generally Maven plug -in  for eclipse  can truly foul up  Eclipse life  cycle. Limitless loops, determined error markers that never evacuated and so on. You regularly get diverse outcomes from the prompt and  with in eclipse . It happened a couple of times that we had infinite loops  of rebuilds  in Eclipse . In particular incremental build  is about the main really incredible  feature  of Eclipse. And with Maven that practically goes down the drain. On the off chance that there is one range where Maven truly sucks it’s the eclipse integration .

Maven is slow :
This is one of my key issues with Maven. Somewhat the dark boxyness is because of java as the language of decision for making plug -ins . For instance, in the event that I need to know how something functions I can simply discover the source and  had a glance at it . In the event that I get a stacktrace I can do likewise. On the off chance  if  there is a bug in the module I can settle it by altering the module source. On the off chance that I sense that it, I can create a fix and submit it. So I won’t need to settle it again while overhauling.

7)
What are pros and Cons of entering defects in defect management system ?
eg. if you have asked to enter found defects in ALM or JIRA or any defect management system, then what can be pros and cons.

8)
Write down best practice of Test Automation Framework 
eg. What all feature, discipline should a framework have

9) 
If Test cases is being Automated, Do you think we should write manual test case as well ? why ?

10)
Write down few Test Cases from Database perspective by considering Security , Performance ?

11) How to Search specific text in multiple files in a directory ? provides as much details as possible.

12) SQL Query - Second Highest Salary 
Table Name  employees
Column : id (INT), name (VARCHAR), salary(INT)

13) For Web Application write down few important security Test Cases ?




No comments:

Post a Comment