Crestech Software
Petrofac Interview Questions and Answers
Q1. relative xpath vs absolute xpath
Relative xpath is based on the current element's position, while absolute xpath starts from the root element.
Relative xpath is shorter and more flexible, as it can adapt to changes in the structure of the page.
Absolute xpath is longer and more specific, making it more prone to breaking if the page structure changes.
Relative xpath is preferred for automation testing as it is more robust and easier to maintain.
Absolute xpath is useful when the element's position is fixed and un...read more
Q2. manual vs automation?
Automation testing is more efficient for repetitive tasks, while manual testing allows for more exploratory and creative testing.
Automation testing is ideal for repetitive tasks that require frequent execution.
Manual testing is better suited for exploratory testing and scenarios that require human intuition.
Automation can provide faster feedback and increased test coverage.
Manual testing allows for more creativity and adaptability in testing approaches.
A combination of both m...read more
Q3. waterfall vs agile models
Waterfall model is a linear sequential approach, while Agile model is iterative and incremental.
Waterfall model follows a sequential process, where each phase must be completed before moving on to the next.
Agile model breaks the project into small iterations, allowing for flexibility and continuous feedback.
Waterfall model is best suited for projects with well-defined requirements, while Agile is ideal for projects with evolving requirements.
Waterfall model has less flexibili...read more
Q4. Locators in selenium
Locators in Selenium are used to identify web elements on a webpage for automation testing purposes.
Locators can be used to find elements by ID, class name, name, tag name, link text, partial link text, CSS selector, or XPath.
Using unique locators is important to ensure stable and reliable test automation scripts.
Examples of locators include driver.findElement(By.id("elementID")), driver.findElement(By.className("elementClass")), and driver.findElement(By.xpath("//xpathExpres...read more
Q5. Test Cases of Lift
Test cases for testing the functionality of a lift
Test the functionality of each button (e.g. open, close, floor selection)
Test the emergency stop button
Test the response time of the lift to calls
Test the capacity of the lift by overloading it
Test the door sensors for safety measures
Q6. What is Restosepctive
Retrospective is a meeting held at the end of a project or iteration to review what went well, what didn't, and how to improve in the future.
Retrospective is a key part of Agile methodologies like Scrum and Kanban.
It involves the team reflecting on their work, discussing what worked well and what could be improved.
The goal is to identify areas for improvement and make actionable plans for the next iteration.
Common retrospective formats include Start-Stop-Continue, Liked-Learn...read more
Q7. What is the INVEST
INVEST is a set of criteria used to evaluate user stories in Agile development.
INVEST stands for Independent, Negotiable, Valuable, Estimable, Small, and Testable.
These criteria help ensure that user stories are well-defined and ready for implementation.
For example, a user story that is too large to be completed in a single sprint would not meet the 'Small' criteria of INVEST.
Interview Process at Petrofac
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month