I am using TestNg for reporting purpose and attaching the screen shot as hyper link to the test cases using Reporter.log but as these screen shot file path is my local system folder. how can some one else access the screen shot through the report, When am emailing the report.
Actually in this case the screenshot files sharing is not up to your TestNG implementation. If you were using some CI server like Jenkins, Bamboo or similar it would be easier. If the
path is my local system folder
and you are on Windows, you can give other specified users access to your folder system. First make sure the Sharing Wizard is enabled, click the Start button Picture of the Start button, type “folder” in the Search box, and then click Folder Options. Click the View tab. In the Advanced settings box, scroll down the list and make sure the Use Sharing Wizard (Recommended) check box is selected. Then:
In Windows Explorer, select the folders or files you want to share. (You can select multiple objects.)
In the Command bar, click Share. (Alternatively, right-click, and then click Share.)
In the file sharing box, enter the name of the user with whom you want to share files or folders, and then click Add. You can type a name in the box or click the arrow to display a list of available names. Repeat for each person you want to add.
For each user, select a permission level.
Click Share
In the final step of the wizard, you can choose tasks to be performed (send email etc.)
Click Done
Related
Where I work we have a TFS 2015 server. I need to get in to Get Latest on a project, which is under a different workspace. However, I cannot change workspaces, no matter what I do.
When I get into VS 2019 (version 16.8.5), without opening any project, I then get into Source Control Explorer. From there I click on the Workspace dropdown. I see the "Workspaces..." in the dropdown, then select the workspace which is associated with the folder I'm trying to get to.
Then nothing happens. In particular, the workspace doesn't change.
If I go to File | Source Control | Advanced | Workspaces... where I can see all the workspaces I have. I select the one I want to in the listbox. I click on the Edit... button.
That opens the Edit Workspace dialog box, which shows me the working folders, including the one I need. Then I click on the OK button.
Nothing happens. The workspace hasn't changed. I cannot get to our code in TFS, which I need to do. This is a total showstopper.
Change TFS workspace
Connect TFS project and click the button Source Control Explorer, at the top of the source control explorer window you should have a toolbar with a few buttons. Somewhere on that toolbar there should be a Workspace dropdown. Just select the workspace you want to use from that dropdown. Then we could change the workspace, check the pic below.
If I go to File | Source Control | Advanced | Workspaces...
Since these steps just check the workspace info instead of change worksapce, after you click the OK button, it will back to Manage Workspaces page.
If you still cannot change your workspace from the dropdown list. You could create a new workspace and re-map the TFS code again, it should work.
Update1
Thanks for Rod sharing.
Just get out of VS 2019 and reboot it, then it works.
One of my colleagues suggested that I get out of Visual Studio, then reboot. This worked. Not saying it will work in all situations, but it is at least worth while giving it a try.
Sometimes we need to work with files in different folders.
Is there a feature in Pycharm or Eclipse that enable us to mark files with tags (or something similar) and show them in logical folders or groups?
Well, I got it.
I can just use (Favorites):
Right Click any file and choose (Add to Favorites).
Select one of the existing lists or add a new one.
To see your favorite lists: Press Alt+2 or click View --> Tool
Windows --> Favorites
I have a feature file as below:
Feature: Log in to the application
#OnlyOneTime
Scenario: Login to application as valid user
When User enter the valid credentials
And Click on Login
Then Home Page should be displayed
Scenario: Login to application as Invalid user
When User enter the inValid credentials
And Click on Login
Then Error Message Should be displayed
But the problem is it is being shown as plain file not at all with the gherkin colors, also I can't see find step option when I right click on a step.
I was also looking for a solution to this. Can't find anything on the web. So I keep looking on eclipse editor and found this.
Window -> Preferences
On the left side Preferences window click General -> Editors -> File Associations
on the right side click Add... Enter *.feature on the textbox then click OK
Select the newly added *.feature on the list
Under Associated editors click Add... then choose the Editor with the green cucumber icon. click okay
Apply and Close
Please follow the following steps
-Right click on . feature file -> Open With -> Cucumber Editor
I found an answer :
When everything is installed right, and if feature file does not display the gherkin colors, We need to first create a sample cucumber.feature file in the same path.
Once this is created if it is auto-populated with sample gherkin code, then other feature file will also work or we can simply paste content of our feature file into cucumber.feature and then rename it.
I am trying to load my customized checkstyle configuration xml in the QA Plug in for IntelliJ.
The following is the graphic interface that I get in order to configure it:
In the label "Jar file", what am I supposed to upload? What kind of jar are they talking about? I have only the checkstyle xml configuration file.
If you just want to use Checkstyle I would recommend to use CheckStyle-IDEA instead. Its included version of Checkstyle is much more up to date then the one provided by QAPlug.
Regarding your question, I think the dialog you presented is to add additional Checkstlye checks, e.g. sevntu-checkstyle. If you would like to have such additional checks then you would need to add a configuration and a jar file with the checks.
To import your checkstyle.xml try as described in import and export analysis profiles on the QAPlug homepage. There it says "You are able to import several coding rules configuration files (eg. Checkstyle, PMD, FindBugs) to one profile simply be repeating import action."
First, save your desired configuration xml file somewhere locally on your computer.
Right-Click/Ctrl-click on the file or directory you want analyzed with QAplug and click "Analyze Code". This should bring up an interface saying "Specify Analysis Scope"
Under the "Analysis Profile" heading, tick the Run with Chose Profile button. Then click on the ... box to search for the proper directory.
This brings up another window titled Coding Rules. Click the + button that pops up and select either project profile or ide profile according to taste.
This brings up yet another window titled New Profile. Name your profile appropriately. Tick the import profile button and then it will allow you to import profile from and point it at the .xml file you saved in #1. Hit Ok.
Now under the analysis profile, you should be able to choose the newly created profile. Click OK and you're good to go.
I'm using MS's VWD to edit some .aspx files in our website (I'm opening it as a website, not a project/solution).
I have some temporary files just for testing and some generate Build errors in VWD 2010.
But VWD won't let me "run" other pages in the website with those Build Errors present.
Is there a way to get it to IGNORE them?
Im using Visual web developer express,
but assume the the settings are the same.
click on TOOLS on the MENUBAR
click on OPTIONS when the TOOLS menu drops down
click on SHOW ALL SETTINGS when the OPTIONS window appears
click on PROJECTS AND SOLUTIONS in the LEFT hand panel
click on BUILD AND RUN in the projects and solutions drop down
in the rigt hand panel, look for the text "On Run, when build or deployment errors occur:"
change it to "PROMPT TO LAUNCH"
click OKAY button to save changes
Voila.