Automation Testing Interview For Experienced| Mphasis Interview Questions

  Рет қаралды 65,274

RD Automation Learning

RD Automation Learning

2 жыл бұрын

Throw Vs. throws
Explain the priorities of the Locators you applied in your project. How do you decide?
What does New do While object creation?
The Java new keyword is used to create an instance of the class. In other words, it instantiates a class by allocating memory for a new object and returning a reference to that memory.
Given string test234, extract the only number, write a logic?
How do you handle an element not visible exception?
First Solution: Try to write unique XPATH that matches with a single element only. Second Solution: Use Explicit wait feature of Selenium and wait till the element is not visible. Once it is visible then you can perform your operations
Why is PageFactory used?
The PageFactory can be used to initialize elements of a Page class without having to use FindElement or FindElements. When you are using the webelement(s) more then once your code gets better readable.
How to switch over the elements in iframes using Web Driver commands:
Basically, we can switch over the elements and handle frames in Selenium using 3 ways.
By Index
By Name or Id
By Web Element
How to handle nested iframes in Selenium WebDriver?
Print the number of frames with Selenium WebDriver inside this web page. ...
Switch to the parent frame using the id of the frame.
Print the number of frames using Selenium WebDriver inside the parent frame.
How do I switch my child to a parent window?
In order to switch its focus from the parent to the child window, we shall take the help of the switchTo(). window method and pass the window handle id of the child window as an argument to the method. Then to move from the child window to the parent window, we shall take the help of the switchTo().
How to close child browser window in Selenium WebDriver using Java?
Clear browser Cookies with Selenium WebDriver Java bindings.
We can clear browser cookies in Selenium. The method deleteCookieNamed shall delete a cookie with a specific name. The cookie named is passed as an argument to the method. First, we will add a cookie, then get it and finally delete it.
Syntax
driver.manage().deleteCookieNamed("foo");
Another method called the deleteAllCookies deletes all cookies from the existing domain. First, we will add the cookies, then get and delete them.
Syntax
driver.manage().deleteAllCookies();
what is build tool Maven
Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages. The Maven project is hosted by the Apache Software Foundation, where it was formerly part of the Jakarta Project.
There are @Test1 and @Test2 methods in TestNG, but there are methods in Test1 which get executed only if Test2 gets executed. So how to approach?
How to rerun failed TestCases?
Explain how do you approach the Testing process if you are on day 1 of the sprint?
Explain which priority Test Suites you run in Automation,i.e., do you run all P1, P2, P3 suites in all the sprints every day?
Explain the priorities of the Locators you applied in your project. How do you decide?
Explain Regression Testing w.r.t Manual and Automation testing, what is the Approach?

Пікірлер: 115
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
kzfaq.info/sun/PLTGn8a4YcF3wp7Jb7VKtkYLiIpvyL0pl7 QA Success Stories
@payalsahu1539
@payalsahu1539 2 жыл бұрын
The most humble and most patient interviewer i would say i have seen. And the best part is you give the answers and solutions right away which makes the video more interacting and useful.
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks for watching!
@sushilraut9384
@sushilraut9384 3 ай бұрын
I have seen many of your video and those are helpful. You make candidate more comfortable and easy to answer or express knowledge.
@sahilsharma-jz3pj
@sahilsharma-jz3pj Жыл бұрын
You are really a great man Rakesh !! Doing a great job to improving your community skills Thanks 🙏🙇
@bumore2870
@bumore2870 2 жыл бұрын
Suggestions you gave are really helpful..... Thank u
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks for watching.
@SantoshSingh-ru5lm
@SantoshSingh-ru5lm Жыл бұрын
wow sir what an interview, thanks
@Netapaul
@Netapaul 2 жыл бұрын
You are great sir, learned a lot from you
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Glad to hear that
@Maverism
@Maverism 2 жыл бұрын
Thank you sir you are such a great motivator...
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks for watching!
@heenakouser7733
@heenakouser7733 2 жыл бұрын
Really helpful 😍, thanks both of u
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Most welcome 😊
@harshadkhairnar7362
@harshadkhairnar7362 2 жыл бұрын
I think we can use parameters. Such as depends on and also we can give priority for that test case 2 as 0 and test case 1 as as 1 ==> so that we can achieve test 2 execute first and then test 1 execute
@shyamvittal
@shyamvittal 2 жыл бұрын
For the card payment scenario, two of the most important scenarios would be Payment Success and Payment Failure.
@poojajarugu4845
@poojajarugu4845 2 жыл бұрын
The Feedback or comments which you gave to Ankitha is a really good booster to me as well ("Support yourself")👍
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks Pooja for watching!
@ranipatil8151
@ranipatil8151 2 жыл бұрын
It really helps ...thank you so muchhhhhhhh 🥰
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks for watching.
@maheshzende5828
@maheshzende5828 2 жыл бұрын
Sir Your are genius,.
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks Mahesh we all are genius 😊
@ramneekvlogs9105
@ramneekvlogs9105 2 жыл бұрын
Regarding 'new' keyword. It basically calls the constructor of that class and then it's constructor's job to create the instance and allocate memory to that object
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Wonderful answer Ramneek!
@sumaiyaansari6191
@sumaiyaansari6191 Жыл бұрын
@@rdautomationlearning609 new is a keyword is java which is used to create an object in heap area and assign one address to the object.
@Anish-A-Vector
@Anish-A-Vector 5 ай бұрын
New keyword is used to allocate the memory.
@madhurijadhav8345
@madhurijadhav8345 Жыл бұрын
We use for dependsOnMethods because testNG support dependency of one test method over other method, @Test(dependsOnMethods="Test2") Public void Test1(){ System.out.println("Home page test"); } @Test Public void Test2(){ System.out.println("login test") }
@shyamvittal
@shyamvittal 2 жыл бұрын
There are two scenarios If there are only two methods, a. we can use the dependsOn parameters b. also set priorities for the test cases
@shwetatalakalshetru7626
@shwetatalakalshetru7626 3 ай бұрын
If we assign Priority to test cases according priority test case wil execute,if test2 failed than test1 must be skipped, it won't happen in priority
@shwetatalakalshetru7626
@shwetatalakalshetru7626 3 ай бұрын
As he telling dependency
@sowmyabg1620
@sowmyabg1620 2 жыл бұрын
Can achieve 1.method changing 2.@dependson assertion 3. Priority of test case
@ALLROUNDER_-bh6vc
@ALLROUNDER_-bh6vc Жыл бұрын
in test case 1, use dependsOnMethds=method name(of test case2) it means when test case2 execute then test case 1 will also execute.
@pratikkakad5485
@pratikkakad5485 Жыл бұрын
we set the priority keyword means we set the first test case as a priority 1 and then second test case we set the priority 2
@prakashgnan9830
@prakashgnan9830 2 жыл бұрын
Syntax is not correct but using dependsonmethod we can execute test2 before test1 , second way is by giving priority for methods
@parulagarwal2860
@parulagarwal2860 2 жыл бұрын
Hi, I want your advice I have 8 years of gap in my career. Earlier than that I had worked ad database developer where I extensively works on query writing. Now since 2 years I am learning automation testing. During First year I learnd automation testing using python and now I learned selenium with Java. I also try to learn BDD framework, GitHub, maven and basics of Jenkins like how to schedule a Jenkins job and the stages in jenkins. … so my question is like do companies consider women employees with 8 years of gap. Reason of my gap is I had moved to USA and had no working Visa. Right now I am in Canada. I am not getting any interview call. Please help
@adurilavanya5542
@adurilavanya5542 Жыл бұрын
I will give the priority's to test cases
@Canada1989
@Canada1989 2 жыл бұрын
Depends on method
@PrasadChougale
@PrasadChougale 16 күн бұрын
Using 'dependsOnMethod' attribute within @Test annotation, we can specify the name of the parent test method on which the test should be dependent.
@Pallavichaudhari88
@Pallavichaudhari88 6 ай бұрын
We have to execute only particular test case the we can disable other test case by using keyword enable=false and other methods also there we can use xml file and in that file we can use include or exclude tag
@tanyavohra1361
@tanyavohra1361 Жыл бұрын
Id and Name as a locator must be referred as the first choice in the case of most web apps.
@vaishnavimatode7112
@vaishnavimatode7112 Жыл бұрын
We can use priority one for test1 and give priority test2. Or we can use before for test1 and after for test2
@zindagizindabaad611
@zindagizindabaad611 Жыл бұрын
Because M2 method may have first priority that's why M2 method executed first instead of M1 method
@commonman8370
@commonman8370 2 жыл бұрын
Replace all we can use to remove sting and keep only integers.
@sunilkhanadale2468
@sunilkhanadale2468 2 жыл бұрын
Test 1 (priority =2) Test 2 (priority =1)
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks for the response!
@rahulkarmakar9144
@rahulkarmakar9144 2 жыл бұрын
depends on method("method name")
@e.devendragoudchinna3513
@e.devendragoudchinna3513 2 жыл бұрын
Depends on method method name
@arunkumar-zk4uw
@arunkumar-zk4uw 2 жыл бұрын
You can give like this, @Test1(dependsOnMethods="Test2"}.
@n.nagarajunidumolu2090
@n.nagarajunidumolu2090 5 ай бұрын
About test NG, We need to use the @parameter annotation and by using this annotation we can disable and enable the test cases. Disable =true, Disable=false. Or We can use the run option inside the class
@musicbajaoo7190
@musicbajaoo7190 Жыл бұрын
By giving priority to the test method you can execute the test as you want
@madhvipathak7077
@madhvipathak7077 2 жыл бұрын
Good work ankita👍
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Thanks Madhvi for watching!
@pujaguchait2903
@pujaguchait2903 2 жыл бұрын
class stringNum { public static void main(String[] args) { String str = "test234"; char ch[] = str.toCharArray(); String dig = ""; for(int i=0; i
@rajeshreddy7119
@rajeshreddy7119 Жыл бұрын
We can use priority concept
@akshaykatte6161
@akshaykatte6161 Жыл бұрын
We use dependonmethod =test 2 keywords to test 1 then if test 2 will execute then test 1 will run otherwise it will skip not fail
@maheshbhaise9542
@maheshbhaise9542 2 жыл бұрын
I would use to dependsonmethod=casename, Priority for case
@poojachandurkar7405
@poojachandurkar7405 2 жыл бұрын
Depends on method =method name
@poornimashetty7060
@poornimashetty7060 Жыл бұрын
Using priority or order attributes
@mahanteshmantu2067
@mahanteshmantu2067 2 жыл бұрын
Sir actually we can use annotations like test1= we write @test (priority1) Then we get only test1
@surajgajare9232
@surajgajare9232 2 жыл бұрын
@Test ( Priority = 1)
@user-tl7oj5jp9s
@user-tl7oj5jp9s 9 ай бұрын
We can go for priority to execute test 2 1st
@mohammedsajeed1192
@mohammedsajeed1192 Жыл бұрын
By using Dependency annotation.
@kinjalchaudhari533
@kinjalchaudhari533 2 жыл бұрын
Always be run
@vinayprasads8849
@vinayprasads8849 9 ай бұрын
We can use priority
@GANESHPAWAR-fg2qo
@GANESHPAWAR-fg2qo 4 ай бұрын
We will use dependson method parameter to excute second method
@byrasamudram
@byrasamudram 2 жыл бұрын
Dependaonmethod in test annotation
@subhamd2405
@subhamd2405 2 жыл бұрын
Could you please suggest how we can arrange the array code in Java Like int[] num ={0,1,0,1,1,0} Output like {1,1,1,0,0,0} how?
@koushikkgs7495
@koushikkgs7495 2 жыл бұрын
what time comp or space comp solution you are looking for?
@subhamd2405
@subhamd2405 2 жыл бұрын
@@koushikkgs7495 yes both
@priyankaghorpade2984
@priyankaghorpade2984 2 жыл бұрын
Use descending order
@tariqhussain9626
@tariqhussain9626 2 жыл бұрын
First sort arrays then use for loop with decreasing order
@surajkadam6747
@surajkadam6747 2 жыл бұрын
Arrays.sort method After that use for loop
@sabersayyed975
@sabersayyed975 2 жыл бұрын
DependsOnMethods={"method name"}
@Learn_automation
@Learn_automation 2 жыл бұрын
We will declare dependOn annotation with priority
@varsharaut7247
@varsharaut7247 4 ай бұрын
Test1,Test2-set the priority=0 is Test2 ,Test1is set priority=1
@user-zy5cx4ey4v
@user-zy5cx4ey4v Жыл бұрын
We can add these 2 test cases in one group.
@ajaymalviya7281
@ajaymalviya7281 Жыл бұрын
We have to use dependsOnMethod
@moviegarage2711
@moviegarage2711 5 ай бұрын
Parallel execution
@likhithmp6093
@likhithmp6093 Жыл бұрын
DependsOnMethod
@shriramlandage9441
@shriramlandage9441 Жыл бұрын
Using priority keyword Test 1 (priority =2) Test 2 (priority =1)
@sportsnews7286
@sportsnews7286 2 жыл бұрын
Answer to the open question.. @Test(dependsOnMethods="Test2") Public void Test1() { }
@Learn_automation
@Learn_automation 2 жыл бұрын
Sir I want to join mock how is it possible
@archanagat9334
@archanagat9334 Жыл бұрын
Alwaysrun annotations to run second test
@droid_nest
@droid_nest Жыл бұрын
@Test(priority = 1)
@priyankaOfficial301
@priyankaOfficial301 2 жыл бұрын
Hello sir I have 4 year's of experience so please u can take my mock interview also
@eknathjoshi9273
@eknathjoshi9273 Жыл бұрын
Sir pls confirm these questions asked by mpahsis company.
@shwetatalakalshetru7626
@shwetatalakalshetru7626 3 ай бұрын
@Test(dependsOnMethod=test2) Public void test1() {}
@NareshKumar-gl9fs
@NareshKumar-gl9fs 7 ай бұрын
Priority basis
@PriyaDharshini-bf1hq
@PriyaDharshini-bf1hq Жыл бұрын
dependsOn
@advice5640
@advice5640 10 ай бұрын
We can handle three ways 1.@AfterMethod annotations in Test1 2. @BeforeMethod annotations in Test2 3. @Test(dependsOnMethods={"Test1"}) in Test2
@rdautomationlearning609
@rdautomationlearning609 10 ай бұрын
Correct!!
@sonaljadhav6004
@sonaljadhav6004 Жыл бұрын
Used hard asser
@nikitakamble3842
@nikitakamble3842 2 жыл бұрын
sir I also give the interview
@Dnyanu_zadePatil
@Dnyanu_zadePatil 2 жыл бұрын
Test 1(enable=false)
@tejeshgowda4970
@tejeshgowda4970 2 жыл бұрын
I want to give interview.. How to give..
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Please share your CV at rdautomationlearning@gmail.com
@piyushrajani4354
@piyushrajani4354 2 жыл бұрын
I want to give a mock interview Where I can share my resume?
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Please share your CV at rdautomationlearning@gmail.com
@piyushrajani4354
@piyushrajani4354 2 жыл бұрын
@@rdautomationlearning609 Done
@parulagarwal5749
@parulagarwal5749 2 жыл бұрын
I also want to give interview. Can you please take my interview
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Please share your CV at rdautomationlearning@gmail.com
@nagbhushanbhalerao4662
@nagbhushanbhalerao4662 Жыл бұрын
Could you please take my interview
@user-xi2mk5ih8v
@user-xi2mk5ih8v Жыл бұрын
@Test public void login() { System.out.println("Login"); } @Test(dependsOnMethods = "login") public void searchUser() { System.out.println("Search User"); } in this we can make one test depend over another test .Here if login method is get exicute then only the searchUser method will excute otherwise it will get fail
@user-ld3rp9xu6h
@user-ld3rp9xu6h Жыл бұрын
package Program_testng; import org.testng.annotations.Test; public class sample { @Test(dependsOnMethods="test2") public void test1() { System.out.println("test1"); } @Test public void test2() { System.out.println("test2"); } } this will be better approach ?
@Sarojini343
@Sarojini343 2 жыл бұрын
Sir I too want to give mock interview please give email id to send the cv
@rdautomationlearning609
@rdautomationlearning609 2 жыл бұрын
Please share your CV at rdautomationlearning@gmail.com
@amar-lj5ms
@amar-lj5ms Жыл бұрын
Sir can u share ur mail id
@twinkledeshwal3816
@twinkledeshwal3816 21 күн бұрын
The most humble and most patient interviewer i would say i have seen. And the best part is you give the answers and solutions right away which makes the video more interacting and useful.
@user-tl7oj5jp9s
@user-tl7oj5jp9s 9 ай бұрын
We can go for priority to execute test 2 1st
Automation Testing Interview| Java Interview Questions For Selenium Testers
35:53
RD Automation Learning
Рет қаралды 46 М.
Automation Testing Interview For Experienced| MindTree Interview Questions
34:03
RD Automation Learning
Рет қаралды 38 М.
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 3,5 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 3,1 МЛН
The Top 10 Automation Testing Interview Questions You Need to Know
16:21
The Test Automation Experience
Рет қаралды 2,2 М.
Automation Testing Interview Questions | Java Testing Interview Q&A
35:10
RD Automation Learning
Рет қаралды 16 М.
Managerial Testing Interview Experience| Real Time Interview Questions & Answers
30:41
Automation Testing Interview Questions | Java Testing Interview Q&A
33:38
RD Automation Learning
Рет қаралды 34 М.
How To Explain Test Automation Framework In Interviews For Selenium
13:42
Automation Testing Mock Interview | Selenium Interview| RD Automation Learning
44:10