Skip to content

NinadKarlekar/Project_actiTime_Ninad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project_actiTime_Ninad

  • Project on actitime Automation Testing using selenium

GitHub GitHub last commit HitCount

Selenium JAVA TestNG Eclipse Chrome

Index

  1. Prerequisite
  2. Steps to run project
  3. Test cases and Output(video)

Prerequisite

  1. Java
  2. Eclipse
  3. Selenium
  4. ChromeDriver
  5. DataDrivenFramework
  6. TestNG

java

To download java click here


Eclipse

To download Eclipse click here


Selenium

  1. To download Selenium click here and click on latest stable version

SS_SeleniumDownload

  1. After downloading create a folder in java project named as "jar".
  2. Copy-Paste .jar file in "jar" folder.
  3. Select .jar file -> Right click -> Go to build path -> Click on add to build path.

ChromeDriver

  1. To download ChromeDriver click here and click on latest stable version

SS_ChromeDriverDownload

  1. After downloading create a folder in java project named as "driver".
  2. Copy-Paste chromedriver.exe file in "driver" folder.

DataDrivenFramework

STEPS to download POI

  • To download POI follow this steps:-
  1. Go to Google and type POI jar file download and select first link or Click Here.

        https://poi.apache.org/download.html
    
  2. Under Binary distribution click on .zip link.

SS_BinaryDistribution

  1. Click on suggested link for download. The zip file gets downloaded automatically.

SS_SuggestedLink

  1. Extract the zip file.

  2. Copy paste all jar file from folders and subfolders into jar folder of eclipse.

SS_jarFolderpaste

  1. Select all .jar files -> Right click -> Go to build path -> Click on add to build path.

SS_BuildPath

  1. Create folder called data in java project and copy-paste excel sheet.

SS_DATAExcel

  1. Type USERNAME and PASSWORD in excel sheet and give sheet name as input.

SS_Book1




TestNG

  1. TestNG_Installation
  2. TestNG_Configuration

TestNG_Installation

Steps:-

  1. Open Eclipse and create java project

  2. Go to Help -> Eclipse marketplace

    SS_Help_Marketplace
  3. Type testNG for eclipse in searchbox and install.

    SS_testng_for_eclipse
  4. During Midway of installation we get a popup. Click on install anyway and after installing restart eclipse.

    SS_InstallAnyway

If this is not working try these steps:-

  1. click on Help menu -> Click on Install new software.

  2. In popup click on add button. We get add repository popup.

  3. Type TestNG in name textfield and paste following link in location textfield

    SS_AddrepoLINK
    https://testng.org/testng-eclipse-update-site
  1. Select TestNG Checkbox and click on next and finish.

  2. During Midway of installation we get a popup. Click on install anyway and after installing restart eclipse.

    SS_InstallAnyway

TestNG_Configuration

  1. Right click on java project -> build path -> add libraries

    SS_AddLibraries
  2. Select TestNG from popup click on next and finish.

    SS_TestNGPOPUP
  3. By doing this the TestNG library is added into project.




StepsToRun

  1. Download and open project in Eclipse.

  2. Go to actitime project -> src -> Right click on actitime_testscripts -> TextNG -> Convert to TestNG

    convertToTestNG
  3. Enter Suite name & Test name -> click on finish.

  4. Right click on newly generated .xml file -> Run as -> TestNG Suite.

    runas
  5. If you want to change Order of Execution of programs then, Right click on .xml file -> Open with -> Text editor

  6. Change the order of execution in .xml file (Changes should be in between <classes> & </classes> only)

    XML.png



Outputs

Tasks (Click to expand 👆)
  • Task 001
       Task 001
    
       1.Launch the browser
       2.Enter the url
       3.Enter username
       4.Enter the password
       5.Click on 'Tasks' in Menu bar
       6.Click on '+ Add New' in Tasks
       7.Click on 'New Customer' in '+ Add New' drop down list
       8.Enter customer name under 'Details' in Create New Customer page
       9.Click on 'Copy Projects from an Existing Customer:' drop downs.
       10.Select any option from the 'Copy Projects from an Existing Customer:' drop down
       11.Click on '+ Create Customer' button in Create New Customer page
       12.Logout from actiTime
       13.close Browser
    Task_001_2022-10-25.23-45-46.mp4
  • Task 002
       Task 002
    
       1.Launch the browser
       2.Enter the url
       3.Enter username
       4.Enter the password
       5.Click on 'Tasks' in Menu bar
       6.Click on '+ Add New' in Tasks
       7.Click on 'New Task' in '+ Add New' drop down list
       8.Click on 'Select Customer' drop down under 'Details' in Create New Task page (1st Dropdown)
       9.Click on 'any customer' from drop down in Create New Task page
       10.Click on 'Select Project' drop down under 'Details' in Create New Task page (2nd Dropdown)
       11.Click on 'any project' from drop down in Create New Task page
       12.Click on 'Enter Task Name' text field in in Create New Task page
       13.Enter task name in 'Enter Task Name' text field in Create New Task page
       15.Click on 'Estimate' text field in Create New Task page
       16.Click on 'Deadline' text field in Create New Task page
       17.Click on Checkbox in Create New Task page
       18.'Click on '+ Create Task 'button in Create New Project page
    Task_002_2022-10-26.00-03-59.mp4
  • Task 003
       Task 003
    
       1.Launch the browser
       2.Enter the url
       3.Enter username
       4.Enter the password
       5.Click on 'Tasks' in Menu bar
       6.Click on '+ Add New' in Tasks
       7.Click on 'New Task' in '+ Add New' drop down list
       8.Click on 'Select Customer' drop down under 'Details' in Create New Task page (1st Dropdown)
       9.Click on 'any customer' from drop down in Create New Task page
       10.Click on 'Select Project' drop down under 'Details' in Create New Task page (2nd Dropdown)
       11.Click on 'any project' from drop down in Create New Task page
       12.Click on 'Enter Task Name' text field in in Create New Task page
       13.Enter task name in 'Enter Task Name' text field in Create New Task page
       15.Click on 'Estimate' text field in Create New Task page
       16.Click on 'Deadline' text field in Create New Task page
       17.Click on Checkbox in Create New Task page
       18.'Click on '+ Create Task 'button.in Create New Project page
    Tasks_003_2022-10-24.mp4