Skip to content

This is repository for Test basic Webscrapper login function

Notifications You must be signed in to change notification settings

ruchikaJagotta/WebScrapperTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebScrapperTest

This is repository for Test basic Webscrapper login function

Softwares used

Eclipse IDE 

Selenium Server             version 3.11.0

Apache maven plugin         eclipse embedded

ChromeDriver                Version 65.0.3325.181 (Official Build)

TestNG                      Version 6.9.4

Environment Setup

Clone or download source from project code. Clone repository to eclipse git repositories. Import project from cloned git repository. It is an maven project.

Install TestNG plugin to eclpise if it is not installed.

Running the tests via Eclipse

Open or navigate to TestLogin.java file and run as TestNG.

Run As TestNG > TestLogin.java 

Running the tests via command line mvn .

Navigate to Base folder when project source is extracted.

mvn clean install 

Results

If execution is done as TestNG then report index.html will be found in test-output folder.

If execution is done as mvn then report index.html will be found in /target/surefire-reports folder.

Note: In case, interactive Selenium Driver like ChromeDriver is required to test

Then, uncomment below section from TestLogin.java in getWebDriver() method.

/*  
   System.setProperty("webdriver.chrome.driver", "src/main/resources/drivers/chromedriver.exe");
   driver = new ChromeDriver();
*/

And comment section for HtmlUnitDriver.

driver = new HtmlUnitDriver(true);

About

This is repository for Test basic Webscrapper login function

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages