Question:- How to launch a browser using WebDriver?
Answer:- For Firefox: WebDriver driver = new FirefoxDriver(); For Chrome: WebDriver driver = new ChromeDriver(); For Internet Explorer (IE): WebDriver driver = new InternetExplorerDriver();
Question:- Are there any technical challenges with Selenium?
Answer:- • It supports only web-based applications. • It does not support the Bitmap comparison. • No vendor support is available for Selenium compared to commercial tools like HP UFT. • As there is no object repository concept, maintainability of objects becomes very complex.
Question:- When should I use Selenium Grid?
Answer:- It can be used to execute the same or different test scripts on multiple platforms and browsers, concurrently, in order to achieve distributed test execution. It allows testing under different environments, remarkably saving the execution time.
Question:- Describe the difference between driver.close() and driver.quit().
Answer:- The driver.close command closes the focused browser window. But, the driver.quit command calls the driver.dispose method which closes all browser windows and also ends the WebDriver session.
Question:- I have 40 jobs in the Jenkins dashboard and I need to build them all at once. Is it possible?
Answer:- Yes, it is. With the help of a Jenkins plugin, we can build projects one after the other. If one parent job is carried out, then automatically other jobs are also run. We also have the option to use Jenkins Pipeline jobs for the same.
Question:- How will you secure Jenkins?
Answer:- The way to secure Jenkins is as follows: • Ensure that the global security is on • Check whether Jenkins is integrated with the company’s user directory with an appropriate plugin • Make sure that Project matrix is enabled to fine-tune access • Automate the process of setting rights or privileges in Jenkins with a custom version-controlled script • Limit physical access to Jenkins data or folders • Periodically run security audits
Question:- The way to secure Jenkins is as follows: • Ensure that the global security is on • Check whether Jenkins is integrated with the company’s user directory with an appropriate plugin • Make sure that Project matrix is enabled to fine-tune access • Automate the process of setting rights or privileges in Jenkins with a custom version-controlled script • Limit physical access to Jenkins data or folders • Periodically run security audits
Answer:- To create a backup, all we need to do is to periodically back up our JENKINS_HOME directory. This contains all of the build configurations of our job, our slave node configurations, and our build history. To create a backup of our Jenkins setup, just copy this directory. We can also copy a job directory to clone or replicate a job or rename the directory.
Question:- What is Jenkins Pipeline and CI/CD Pipeline?
Answer:- Jenkins Pipeline can be defined as a suite of plugins supporting both implementation and integration of Jenkins continuous delivery pipeline.
Question:- What are Puppet Manifests?
Answer:- Every Puppet Node or Puppet Agent has got its configuration details in Puppet Master, written in the native Puppet language. These details are written in a language that Puppet can understand and are termed as Puppet Manifests. These manifests are composed of Puppet codes, and their filenames use the .pp extension. For instance, we can write a manifest in Puppet Master that creates a file and installs Apache on all Puppet Agents or slaves that are connected to the Puppet Master.
Question:- How can I configure systems with Puppet?
Answer:- In order to configure systems with Puppet in a client or server architecture, we have to use the Puppet Agent and the Puppet Master applications. In a stand-alone architecture, we have to use the Puppet apply application.
Question:- What is a Puppet Module? How is it different from the Puppet Manifest?
Answer:- A Puppet Module is nothing but a collection of manifests and data (e.g., facts, files, and templates). Puppet Modules have a specific directory structure. They are useful for organizing the Puppet code because with Puppet Modules we can split the Puppet code into multiple manifests. It is considered as the best practice to use Puppet Modules to organize almost all of your Puppet Manifests. Puppet Modules are different from Puppet Manifests. Manifests are nothing but Puppet programs, composed of the Puppet code. File names of Puppet Manifests use the .pp extension.
Question:- Can you tell me what a Puppet codedir is?
Answer:- It is the main directory for code and data in Puppet. It consists of environments (containing manifests and modules), a global modules directory for all the environments, and your Hiera data.
Question:- Where do you find codedir in Puppet?
Answer:- It is found at one of the following locations: Unix/Linus Systems: /etc/puppetlabs/code Windows: %PROGRAMDATA%PuppetLabscode (usually, C:ProgramDataPuppetLabscode) Non-root users: ~/.puppetlabs/etc/code
Question:- How does Ansible work?
Answer:- Ansible is an open-source automation tool, which is categorized into two types of servers: Controlling machines Nodes Ansible will be installed on the controlling machine, and using that machine nodes are managed with the help of SSH. Nodes’ locations are specified by inventories in that controlling machine. Since Ansible is an agentless tool, it doesn’t require any mandatory installations on remote nodes. So, there is no need of background programs to be executed while it is managing any nodes. Ansible can handle a lot of nodes from a single system over an SSH connection with the help of Ansible Playbooks. Playbooks are capable of performing multiple tasks, and they are in the YAML file format. Are you interested in learning DevOps from experts? Enroll in the DevOps Course in Bangalore provided by Intellipaat!