Automation Testing Interview Experience| Real Time Interview Question & Answer|

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so sharda can you tell me something about you yeah can you tell me something about yourself yeah yeah um so my name i have is my bachelor's of engineering from kuni university and i have total 3.3 years of experience in software testing out of which i have two years of experience in automation and one was when you have experience in mobile manual testing okay great so can you tell us something about your framework automation framework yes um so currently um we have already built a framework that we are using in our project um i was not a part of it while they were building it but i have an idea so i can explain that yeah so okay uh so currently uh we have created one customized uh hybrid framework uh which uh by i mean using which we create automation test cases using test ng uh test ng tool and we use um excel file and properties file uh to fetch the data from and we use html reports and we use html reports created by um test ng and we use um design pattern as page object model uh to create our test cases and um um yeah so that is how we create our test cases okay great and which is the tool that you are using for continuous integration now we are using jenkins too okay so uh can you explain me uh your day-to-day responsibilities and how do you run your automation framework using jenkins okay so once we have created once we have created our test cases i mean i create um i develop the methods okay so if once i have done with my work once i have created all the test cases and executed them and once they are passed i push my code to the git repository and now it is my leads responsibility they take my code and they merge with the master branch okay so so let's say if the automation code during the release time how do you manage uh to get the automation run via jenkins do you do it via batch file or is it the devops team that is taking care of that okay okay fine so generally see uh when you will be going for the interviews you will be asked all these questions on continuous integration and how are you triggering your automation framework so over there you can answer like what happens is at the nightly uh run automation suit is there it is running every night so in the morning when i'm going to the office i am looking at the emails over there so jenkins has a feature of uh of sending the reports via email so you can tell those things and in this way you can give up you know you will get a good impression on the interviewer also and there is nothing you know rocket science and jenkins jenkins has got a pipeline basically and in that there are various stages so first stage would be the all the development code would get downloaded from the bit bucket or from the git whichever tool the developers are using then the second stage is the machine would get created the virtual machine would get created on the fly now it is also dependent on the operating system some people choose 2016 server os some people go for 2019 some people still use 2012 os so based on that configuration on that batch well on the stage 2 the machine would get created on the fly again with those parameters like 32 bit 64-bit then in the third stage the automation your automation code would get downloaded okay then on the fourth stage the installation of the product would happen installation or configuration right and then the fifth stage is the entire automation suite that is the selenium would get uh executed six stages the email would be configured so and so xyz email would be given for the successful results unsuccessful results to the stakeholders or to your managers to your leads so if you explain in this manner no so it will give a good impression on the interviewer okay it is i'm making the points yeah it is totally taken care by the devops team but these days you know in the companies you know in 2021 it is expected from a software tester to at least know what is happening behind the things right okay so just this on a high level if you can explain it would be great yeah okay yeah so uh what what is test ng actually um test ng is um actually um automated tools which gives us the control over all the test cases which test cases to be executed and and which test cases to be uh skipped also we can run the test cases as a as a as a part of um as a part of packs like sanity test regression test etc that we can or integration testing you know that we can do with the test ng and testing allows us to create to create the html reports automatically they they give us the html reports of all the results of test cases which are passed over just which are filled correct so what are the advantages of test ng over j unit um i haven't used okay so i have no idea if you can explain yeah yeah sure so basically see one of the key there are three key advantages of test ng one is the parallel testing is possible using test edge again next thing is test cases can be grouped easily then annotations are easy to understand like at before or right after after suit before suite so all these annotations are very easier and those are user friendly so you can see right junit was earlier used before people came to know about the advantages of test ng but as far as test ng has come into the industry and test engine is nothing like you know you rightly mentioned it is and it is next generation test ng means test stands for test and ng means next generation level of testing you can use for that and since the test ng has been discovered then j unit people are not using so many people might ask you these question like what are the advantages of test ng over j unit so the key advantages are parallel testing group testing and easy to understand annotations are very easy right so those things you can just one question can we create html or reports using jmu okay so this is a good question that has come up so let us leave it to the you know viewers of this video once we'll be uploading this video on the youtube so i'll request all the viewers who are watching this video to give the answer of this question and we'll from our general side our team will be posting the answer in next 24 hours the question is can the html reports be generated using junit okay so you were mentioning about the automation framework so which selenium version you are using selenium 3.2 3. okay yes yeah so are you aware about selenium 4.0 um we haven't used it but i have heard that they have uh they have included many features in selenium okay so i i mean yet i didn't go through it but i go through each other yeah no problem so uh can you tell us the file locators that are newly added in selenium 4 we won't go much into the detail of selenium 4 because you are more comfortable with selenium 3 but can you tell us the five new locators that have been added into selenium 4.0 version if you would have read it yeah if you would have read it somewhere okay fine i haven't read it yet okay no problem so there are five new locators that are added in selenium four one is the above above means it is it is used to locate a web element just above the specified element next is below so below same as you know opposite of above it would be used to locate a web element below the specified element similarly two left off and two right off so you can specify you can locate a valve element present on the left side direction of the specified element and similar goes for to write off and near means approximately 50 pixels away from the specified element so you can locate the web element so these are you know major file locators that are newly introduced in selenium iv okay yeah okay so can you tell me that yes we can we can also locate uh elements in selenium three in an easy way instead of using above and below right right you can use but over uh you know they came up with some these few few of the new things that have come up in the selenium 4 and many of the users were finding it difficult maybe so they have just done the coding in that direction okay yeah okay so can you tell me which are the annotations you are using in test engine yes so the annotations are addressed before suit then at the right after suit at the right before test after test before class after class and before method after method right yeah so its order will be of suit then test then class then method correct okay so what is the importance of test ng xml file yes so test ng xml file is actually the key that allows us to take control over our test suit um i can i can run the test i can run my test cases by using um a test ng.xml file as per my requirement so for example if i want to exclude any method or any class i can i can use exclude a keyword in my testchanger.xml file and i can i can exclude that method of class i mean as per my requirement i can do that also test engine.xml file is used for the parameterization as and for executing the test cases parallely we can use test engine.xml file we can configure the uh that we have that we can run the test cases in parallel and by using a parallel keyword we can run our test cases in a parallel manner wonderful answer yeah so i think you covered almost all the points one was it allows to pass the parameters then it allows to put the priorities then you know you can configure parallel execution of test cases using xml file then it allows you to parameterize the test cases and it allows you to add the group dependencies so these are i think you covered almost all of them okay so what is test ng asset uh the selenium assaults uh yeah uh the asset or you know uh you might be writing some code in selenium with java thing and you will be verifying something so yeah so yes now can you tell more about that yeah yes so assertions are actually used to put the validations in so uh let's let's uh i i'll explain it with an example so i know that on the fifth on the fifth um statement i know that this is gonna fail the boolean that i'm receiving is gonna fail but i don't want to display it in my console or i don't want to explicitly fail my test case so like what i can do i can put one method asset dot asset false and i can put one boolean um a statement that will written me boolean value a set of asset false and the result of whatever i am putting inside it it should be false then my test case won't won't fail and it will continue with the execution and same allows with asset dot asset true in that i'll have to use the true boolean statement you know so for example if there is uh one paper element that should display and if i'm i and if that statement like the element is not displaying to us so what i'll do i'll put asset dot asset false and element is not i mean for example elements is this like let me just take that example and i'll put one driver dot find element and i locate that volume so it is returning me the value as false but it is not displaying so my test case will not be filled in that case and same goes with the asset dot asset true also there are different uh other methods as well as a dot no null asset dot null asset dot equals say dot not equals so these are the six uh methods that are associated with yourself correct and one more method is sr dot uh asset all so whichever the assertions that you have used in the code all in the test case in that particular test case all would be verified right so that is that okay now so consider a scenario where you had written 10 test cases in your selenium suite now there is a requirement from the there is a change in the requirement from the project manager so yeah instead of um you know two features into your product they are disabling one of the feature now the developer is also disabling that feature from the product now what will you how will you manage your test suite will you discard your entire test suite or how will you manage these 10 test cases let's say two test cases were of the disabled feature so how will you manage your test with them okay so in that case in testing.xml file for those test cases we can use an attribute which is enabled so if i'm putting enable equals to false then it will not include those test cases in the execution so instead of removing the test case you can just use one helper attribute so it was a perfect answer okay now consider uh your test manager comes to you on one fine day and they and you have developed one ecommerce website into your organization okay now they want to know how which are all the links that are working or which are the broken links on that or broken images in that particular e-commerce website so is it possible to you know find out why automation uh yes it is possible uh but i mean i don't know the code but i need the logic in that case actually it it provides as the methods or classes to check if the status of that links are four zero four so if it is four zero four or uh or greater than four hundred it means that the link is not working and i mean in that way we can find out that these are the broken links right so uh first of all you know there are five response codes that a particular link can have one is 200 okay 200 okay means if the link is giving you the response vote is 200 that means it is a valid link if it is 404 that you were mentioning so that is linked not form then one more code is 400 that is bad request 401 stands for unauthorized let's say if there are two users and one user is authenticated to use that particular link but for other user it should uh it should not allow to access that particular link so for that user you will get 401 unauthorized okay then one is 500 internal server error itself okay so what you can do using selenium you can find the links of the webpage on that ecommerce website using a tech okay then you can send the http request to all the links and you can read the http response codes now you can loop it you can iterate it through all the links that are present on the web page if you are getting any of these uh 200 okay as a code that means it's a perfect link apart from 200 okay if you are getting any other response code that means those links are broken so so generally in this e-commerce websites like amazon.com is there flipkart is there they are using this automation and what they'll do immediately after the new build has been deployed by the developers they will quickly run their automation suite using these response codes and they'll check whether all the links are clickable whether whether they have not applied only any broken links into their web pages okay okay [Music] okay now consider there is a application which you have to automate using selenium and it has got a image so how will you automate it okay no problem so there is a you know seculi is known for automating the images and security is an open source library so that is a jar file which you can integrate with selenium your eclipse or intellij whichever you are using you can download all those jar files and what secular is doing is equally is uh capturing the image of that particular object and then it would make a click on it like that so many times you know when we are doing end to end automation like let's say the product needs to be installed via automation and then the automation so it has to be run now if some person would have used install shield wizard or you know some kind of desktop application is there now selenium cannot uh you know uh click on the windows based on desktop based applications so over there either people are using auto id or they'll go for sql if it's a completely image based uh click for capturing then they'll go for sql right now there are drawbacks also like you know there are two sites of coin so squee has got its own advantages like image based but what if the window resolution keeps on changing okay so over there there are some time chances that security might fail so you have to capture the image image of that object very carefully very consciously so that it can be used in subsequent automations on any operating system because even let's say in the jenkins every time if you are deploying windows server 2016 as one of the os to run the automation so then if it's a single os so you will capture the image for one one time and you will make the automation run but if what if the operating system are getting changed every day right sometimes 2012 or sometimes windows 10 or sometimes windows 8 windows 7. so over there sometimes you know that reliability is not being uh achieved by us equally so you have to be very much conscious while capturing those images basically so do we have any link or resource well from where we can find information about this if you can share that sure sure so else i'll share but on the google if you will just write sikholi s i k uli and you'll get all the libraries all the open source you know people have written blogs also on it like how you how it can be implemented or integrated into your existing automation code so just try those things because these things are you know very rare and people uh might it depends on the use case to use case some people have created entire automation suit using sequel itself as their uh you know their web applications or applications were not having that much you know object recognition things and the developers have also left the companies or they have been shifted to other projects now organization the management team is telling you that you have to automate it by anyhow so then they'll be using sql auto id or even powershell scripts are useful at this time okay yeah so i'll share the link immediately after this interview and if you can just type on the google also so you'll get all the information okay now how will you handle the ssl security certificate error in the automation okay so there is this class desired capabilities and by using desired capabilities we will create one object so for example i mean for chrome we will first we will first do it for the global you
Info
Channel: RD Automation Learning
Views: 16,776
Rating: 4.9308357 out of 5
Keywords: Deloitte Telephonic Interview, deloitte selenium interview questions for experienced, deloitte mock interview, deloitte selenium interview questions, automation testing interview questions and answers, deloitte interview questions and answers, telephonic interview, java interview questions for selenium testers, selenium interview questions and answers, deloitte interview, testing interview questions and answers, rdautomationlearning
Id: 6tO66Dyynr4
Channel Id: undefined
Length: 23min 2sec (1382 seconds)
Published: Thu May 27 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.