Screenshot of TestNg Report

When it comes to using TestNG for reporting, I often attach screenshots as hyperlinks to test cases using Reporter.log. However, the issue arises when these screenshot file paths are located on my local system folder. How can others access these screenshots through the report when I email it?

Answer №1

It seems that the screenshot files sharing process is not dependent on your TestNG implementation in this case. Utilizing a CI server like Jenkins, Bamboo, or a similar tool would make it more efficient. If you are working on Windows and the path is located in your local system folder, you can grant access to other specified users for your folder system. To enable the Sharing Wizard:

path is my local system folder

You can follow these steps:

  • Select the folders or files you want to share in Windows Explorer.
  • In the Command bar, click Share or right-click and select Share.
  • Add the name of the user with whom you want to share files or folders and click Add.
  • Set permission levels for each user.
  • Click Share.
  • Choose any additional tasks (such as sending an email) in the final step of the wizard.
  • Click Done to complete the process.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Running tests using Selenium and Maven works fine on a local machine, but encounters an issue in Azure Pipeline with the error message "unable to access org.testng.Assert."

Running TestNG or Maven tests locally shows that all test cases are working correctly. However, when running the tests in a pipeline, an error is encountered stating "cannot access org.testng.Assert". Attached below are error screenshots of Azure Pipeline: ...

Exploring ways to interact with Span elements using Selenium in Python

Greetings! I am currently attempting to access a specific element called span. My goal is to retrieve this element in a manner that allows me to append it to a list. Each span contains an attribute wordnr="1" or a different number. The objective is to extr ...

Troubleshooting Extent Report Issues in Parallel Testing

Here is the Reporting code I am working with: public class Reporting { private ExtentHtmlReporter extentHtmlReporter; private static ThreadLocal<ExtentReports> extentReports = new ThreadLocal<>(); private static ThreadLocal<Ext ...

Using Selenium Webdriver to Manage Pop-ups for File Saving

Currently, I am working on automating tasks using Selenium and TestNG on my Ubuntu operating system. One of the tasks involves downloading a PDF file and verifying its content. After clicking on a button, a new window opens which displays content similar t ...

Python automation with selenium - capturing webpage content

I am utilizing selenium to scrape multiple pages while refraining from using other frameworks such as scrapy due to the abundance of ajax action. My predicament lies in the fact that the content refreshes automatically nearly every second, especially finan ...

The current version of ChromeDriver is only compatible with Chrome version 99. However, the current browser version is at 98.0.4758

My current chrome version : 98.0.4758.102 I am currently using selenium version: 4.1.1, but I am unable to download chrome 99. My chrome 98 is up to date, so how can I obtain chrome 99 assuming it's a beta version? Trace log : ChromeDriver was start ...

Unable to run if-else statement code while verifying the enabled status of a button

I've been attempting to verify the functionality of the button on indeed.com that appears after clicking "apply job," but my code isn't producing the desired outcome. The initial if statement checks if the continue button is enabled; if not, it w ...

Is it possible to use Webdriver (ChromeDriver) alongside Play framework?

Currently, I am facing an issue with ChromeDriver within the Play! framework. In my UnitTest, I have instantiated ChromeDriver to make a get request to my Dyndns URL. However, upon initiating the test, Chrome opens, makes the request, but unfortunately, th ...

Guide to choosing options from a dropdown menu with Selenium and Python

I am trying to search for a specific item on the microcenter store website. However, I am facing a challenge in selecting a store from the dropdown menu before proceeding with the search. Despite my efforts, I have been unable to figure out how to open up ...

Utilizing C# Windows Forms to Engage With a Web Browser

Currently, I have created a Windows Form application using C# that is able to communicate with a phone system. My next goal is to incorporate click-to-dial capabilities into the application. The idea is that when a telephone number is clicked on in a web ...

The problem with the code is that it is showing a fatal error related to the class 'Mail' not being found in

I'm encountering difficulties while trying to use the send mail feature of Pear with Wamp. I followed the steps in this link () to verify if my Pear installation was correct, and it appears to be set up correctly. <?php require_once 'System.p ...

Jenkins is having trouble running Selenium tests with the FirefoxDriver, even though they work perfectly on a local desktop setup

I am currently facing an issue while trying to execute my Selenium tests in Jenkins. These tests are running smoothly on my local machine using Maven test or IntelliJ. Here is the setup I am using: Firefox 39 x64 Selenium 2.46.0 SeleniumHQ pl ...

The PyQt progress soars to 100% as soon as it begins

Running the code in the doWork method and clicking on button1 makes the progress bar function correctly. However, if I pass the list to the doWork method from other methods like btn2 or btn3, the progress bar suddenly jumps to 100% as soon as it starts. ...

TeamCity Server experiences issues with WebDriver's ImplicitlyWait功能

In the process of developing functional tests with Selenium 2 framework on a Firefox 10 environment, we have encountered an issue with a special functionality: driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5)); We are attempting to set u ...

Is there a way to extract and exhibit the text from an image using Python?

Could someone assist me in extracting only the text within the highlighted red area? I have been experimenting with Python but haven't been successful in achieving this. My goal is to create a script that prompts for an address, then opens Firefox (or ...

Step-by-step guide to interact with ng-click AngularJS element through Selenium in Python

Having trouble clicking a button on a webpage that uses angularJS with ng-click. The specific page is located at: The button in question is the "Show all" button. To access the HTML, right-click on the button and select inspect. <a class="button b ...

How can I determine the specific quantity of XPATH links with unique identifiers in Selenium?

Seeking automation with Python3 and selenium to streamline searches on a public information site. The process involves entering a person's name, selecting the desired spelling (with or without accents), navigating through a list of lawsuits, and acces ...

Encountering an issue while trying to execute a selenium application in the terminal: (Error message: ImportError - Unable to

Although I am a beginner in Python and Selenium, I have encountered an issue: When I execute my Python script using the IDLE (pressing F5), Selenium works perfectly (it opens Firefox, navigates to a website, and performs tasks). However, when I attempt to ...

Enhancing Automation with Multiple Processes in Selenium Using Python (Cookie Clicker)

I'm looking to develop a cookie clicker bot that runs on one Chrome tab but in different processes to increase clicking speed import math import os from multiprocessing import Process, Pool, queues from selenium import webdriver from selenium.webdrive ...

Tips for selecting a button within an Alert popup

I am currently tasked with automating this particular page using Java and Selenium. The objective is to locate and click on the link labeled terms and conditions, which triggers a pop-up box. Subsequently, I need to scroll down within the box and click on ...