I would like to be able to email my automation test results to my team. I am not sure how to get this done so a point in the right direction would be really helpful. I have found code that will be able to send out an email, however to fill the body with the results I would need to know the file that xCode is storing them in, which I am not able to find.
This is just ideas that I am throwing out there, if there is a better way to go about this I am all ears.
Thank you for your help
ui automation test results are in plist format (TestSummaries.plist) so you need to parse this plist file to extract the test result.
We are using trainer gem to convert results to junit xml format. I think it would be good starting point for you to use above gem and attach xml file in your email.
You could look into running your suite on Jenkins server. There is an option you can set up to send result to an email address. However be warned that since xcode 8 has been release Jenkins and Xcode are not the best of friends.
Related
I have a KSC report that i run once a month that gives me the previous months usages on specific firewall interfaces i am interested in.
Is there any way to get this report via email in a PDF for example? Or Alternatively get the output via a script onto the file system?
Thanks
Joe.
Not at the moment.
There is some work ongoing to make KSC reports available via Grafana, which has a "snapshot" feature that might meet your requirement.
Since this is my first time posting a question on stackexchange, please excuse me if I've not included anything. Suggestions for a better post are very welcome!
Background
I'm looking for a way to create a file:// link in e-mails with a specific purpose. In my company we're all using Macbooks with Outlook as our e-mail-client. As soon as a specific document is updated, I would like to be able to e-mail a colleague saying: "here is the to the file". My personal link would be: file:///Users/<MyUserName>/Dropbox/Filepath.ext. However, this does not evaluate correctly on my colleagues computer. I have made it to work with a manual username change, but I'm hoping that there is a way to automatically fill in the username of that person.
My Question:
How can I make the link in such a way that it will always refer to that user's specific user folder?
Resources explored
I've tried working with file://~/ but that always gives a 'can't find the document' error. I've tried googling it but Dropbox and other services only point towards URL-links or to their website. Stackexchange hasn't provided me with an answer so far (Internal links / ":file//" links is without answer). Searching for 'computer independent file links' haven't given me any solace either.
Any help would be greatly appreciated!
not sure if this is what you want. You can check the dorpbox API and read a bit about it. But an easier way might be IFTTT, a free tool which launch triggers. So basically you need to create a folder in dropbox for each user and then use this tool to make triggers for each user. You can send an email and include the new dropbox link and as well you can program the IFTTT to send a file://Users//Dropbox/USER_DROPBOX_FOLDER/{{FILENAME}} whenever a file is placed in his folder.
In a uiautomator test, using takeScreenshot(), is there a way to store the image on the machine running the tests instead of the device?
If it cant be done with takeScreenshot, id be interested in hearing any alternative methods anyone has come up with.
Thanks
You could define a store path (screenPath) and save the screenshot on the device.
The you could use adb pull like this:
adb pull screenPath localPath
To copy the screenshot locally.
Not yet fully covering all UiAutomator cases but AndroidViewClient/culebra could give you an alternative. You may replace some of your tests and take screenshots and they will be saved on the machine running the tests.
There's a extremely simple way of generating test cases using Culebra GUI, just run:
$ culebra -UG -o mytest.py
to generate a test case. Then, during the test generation, you can use CTRL+F (or the context menu) and the screenshot will be saved and a line like this
self.vc.writeImageToFile('/tmp/${serialno}-${focusedwindowname}-${timestamp}.png', 'PNG')
will be generated in the test script, so everytime you run it will be saved without overriting the previous one.
Hope this helps.
Is there a way to make Jenkins accept and graph test results that aren't binary passes/fails?
I'm writing a performance test for an Open Source project I contribute to. After each successful build, I would like Jenkins to run a bash script I've written, then report as the test result a value I compute during the test. The value would be on the order of 10k, if that matters. The idea is to allow devs to view the historical performance of the codebase, as well as how their commits changed it.
I'm new to Jenkins, but I've Googled pretty hard and found nothing relevant. Links are appreciated, even if you don't have a full answer.
The Plot plugin should be able to do what you need; you can store the test results in csv format and then graph them across all builds.
I have a test hub .Net application which can fire off different selenium tests.
I'm looking for a good way to record the results of that specific test and tell the user if there has been an error.
I've added the "-log selenium.log -browserSideLog line" but, can I access the log programatically?
The idea being that at the tear down stage I can look at the entries and search for "Error" and report this to the user.
I know there is the "RetrieveLastRemoteControlLogs" command but that only gets part of log.
if you know PowerShell, then you can to use cmdlet get-content.
In .Net you can to use methods from the class File MSDN, but i dont work with it.
you can run "get-content" after each test and check whether there are errors
if i have not answered your question, then you can add tags, because it is not only selenium-rc`s question.