Tuesday, April 1, 2025

 

๐’๐ž๐ฅ๐ž๐ง๐ข๐ฎ๐ฆ ๐‰๐š๐ฏ๐š ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ ๐’๐ž๐ญ๐ฎ๐ฉ - ๐‰๐š๐ฏ๐š, ๐Œ๐š๐ฏ๐ž๐ง, ๐ˆ๐ง๐ญ๐ž๐ฅ๐ฅ๐ข๐‰

1. Install & Configure Java
- Check Java installation using `java -version`.
- If not installed, download and install Java from the official Oracle website.
- Set `JAVA_HOME` and add `JAVA_HOME/bin` to the system `Path`.

2. Install IntelliJ IDEA & Maven
- Download and install IntelliJ IDEA (Community Edition).
- Check Maven installation using `mvn -version`.
- If missing, download Maven and set `MAVEN_HOME`.

3. Create a Maven Project
- Open IntelliJ IDEA, create a new Maven project.
- Set Group ID: `com.selenium.framework` | Artifact ID: `selenium-automation`.
- Click Finish and run `mvn clean install` to verify setup.

4. Add Dependencies in pom.xml
- Add Selenium WebDriver, Selenium Manager, and TestNG dependencies.
- Update the project using `mvn clean install`.

5. Create & Run First Selenium Test
- Create a new class `FirstTest` in `src/main/java`.
- Write a basic Selenium script to launch a browser, open a website, and print the page title.
- Run the test to verify setup.

Related Posts:

  • How to pass the Parameter in BDD cucumber? How to pass the Parameter?Passing parameter by using โ€œโ€ (double quotes) OR <> signFrom feature file, we can pass a single parameter by using โ€œโ€ in the step.Example is given below.Step in Feature file Given user loโ€ฆ Read More
  • What Is Hooks In Cucumber? What Is Hooks In Cucumber?Hooks is nothing but the script which run before or after each scenarios. There are some annotation which are used to execute script before or after each scenarioes.Below are the lists of cucumโ€ฆ Read More
  • What is BDD in selenium? What is BDD in selenium?BDD (Behavior Driven Development) is software development approach that allows developer or tester to create the script base on the behavior or functionality of the application.The steps of behavโ€ฆ Read More
  • Test Runner class in BDD Test Runner classTest runner class is the starting point in BDD from where the script get executed with the help of junit annotation. Test runner class use junit class annotation which is @Runwith(). This gets execโ€ฆ Read More
  • Regular expression in step definition in cucumber Regular expression in step definitionBelow are some lists of special character that can be used while writing step definition.1. .(dot)-We can use any character in place of "." In below example, single step definitโ€ฆ Read More

0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

152,290

Blog Archive