I have a automation suite which is using TestNG ExtentReport.. I need the same step to be updated in the test rail..
Is there anyway that we can extract the string value from ExtentTest to post in test rail as a comment..
Thanks,
Chandra
You can use the underlying domain to extract any information available to it:
test.getModel()
Related
I want to configure the name of the test case in Sauce Labs when viewing the test results. Currently the name that I am passing in the desired capabilities is popping up in the sauce labs and I am not able to understand which result is for which test case. So I want to see the test case name there so that I can easily identify the test results from the test case name. Can anyone please help in this matter.
The capability that I am passing now:
Capabilities = "name:Win10+Chrome,platform:Windows 10,browserName:chrome,version:89.0"
I want to have the test case name in place of Win10+Chrome.
enter image description here
The name capability can be set to any string value. It looks like your capabilities do connect to Sauce Labs, so that's a good start. If you'd like to set the name capability to your Robot test suite, try this:
Capabilities = "name:%{TEST_NAME},platform:Windows 10,browserName:chrome,version:89.0"
You can see a full example of how to run Robot Framework tests on Sauce Labs here: https://github.com/saucelabs-training/demo-python/blob/main/examples/robotframework/desktop_web/Tests/resource.robot
So, I am trying to publish my Xamarin.Ios app to the app store (really test flight but I have to get an ipa) I'm following along the Microsoft documentation and trying to register a new identifier, however, when I insert my Bundle ID (gotten from info.plist) the web service marks it as "invalid identifier". I've been looking to see if I glanced over a pre-requisite in the documentation but I haven't noticed anything. Any help with this issue would be greatly appreciated. Thank you for your time.
It turns out that I had an underscore in my bundle id and that was the issue, ostensibly changing it to ascii code will fix the issue. However, I'm unsure of how to change it exactly, for instance, _ is 95 using ascii code but if I have blah_app and change it to blah95app that would allow me to register but I'm not sure if that is in the correct format.
I'm using the Custom Vision API and the sample I found out on github / docs included the training and creation of a project. However, I have done the training and creation part online (http://customvision.ai).
Now in order to predict the image, I need project ID.
endpoint.PredictImage(project.Id, testImage);
Where can I get this one from?
I am only interested in using the Prediction API without having to train from my code.
Your thoughts please.
The simplest way to get the project url from the website is to open the project in a browser and look at the URL; the project id is the GUID listed after /projects: customvision.ai/projects/<ProjectID>#/manage
Or you can call TrainingApi.GetProjects() to retrieve a list of ProjectModel objects, and get the project id you need by checking its properties (like Name or Description).
I created multiple suites, say 'StarterKit Registration','White SIM Registration', 'Add VAS' ..etc.,
I want to run all these suites together through RIDE and I want to run in my own order i.e not in alphabatical order.
Can any one help on this to achieve.
Thanks
Sarada
You can either use prefixes to suite names as mentioned before.
Or
as you said, Use -A arguments file which will have list of your test suites
Agr_sample.txt
------------------
StarterKit Registration
White SIM Registration
Add VAS
... so on
then pass the same argument file while triggering the pybot command as
pybot -A Agr_sample.txt
It will trigger the suites in the order they are mentioned in the file.
Hope it helps! and thanks for telling me about argument file :)
Trying to understand how TestNG concatenates method name + group name + description to display on report. I have a test suite which only shows the method name on my TestNG report but then I have other test suites that are concatenating the test description after the method name and displaying that entire string on the report (under the 2nd column after the class name column). I can't figure out what controls this difference.
Does anyone understand how this works and is enabled/disabled in the suite? In this scenario, TestNG is being executed by the Maven Surefire plugin, which as you know, places the emailable report under the "target" directory rather than under "testng-output".
Also, an additional detail I am wondering about is: can the description be altered during the Test method so that the altered description can be shown on the report?
This screenshot shows the favorable display of group and description but I have many other test suites that do not show this information and I want to know how to enable it.
Not sure about the report generated by SureFire, but if you use TestNG without Maven it generates two reports - emailable-report, index. Both display the same data but in different presentation. And we can customize the report content by creating a listener and overriding the default methods.
Refer this post on how to customize the report.
To your first question, it seems old versions of testng (prior to 6.8.1) used to have emailablereporter as its default reporter. Later versions have emailablereporter2 as it's default which doesn't show description. Try specifying listener as below to see descriptions against methods.
<listener class-name="org.testng.reporters.EmailableReporter"></listener>
The description can be altered by implementing IAnnotationTransformer.