How to link MSTest with Report Portal? - reportportal

We have a Coded UI solution in TFS and run tests from MS Test Manager. How can I post test results into Report Portal?
I have just installed NUGet package from github
But it is unclear for me how to use it. Is there some documentation about using of Report Portal API?

Unfortunately, ReportPortal have no MSTest agent yet. But it has reach API so you could try to implement agent by yourself.
There are couple of other .NET-based clients (as example):
NUunit, Specflow
Server-side API is quite powerful to implement integration with any testing engine. You can have a look at it by the following link (must be logged in):
YOUR_RP_URL/ui/swagger-ui.html

I believe there now there is something that can connect reportportal and mstest: https://github.com/reportportal/agent-net-vstest

Related

Run API test in CI (Jenkins)

What is the best way to run an API test that was created via the IBM API Connect Test and Monitor ?
I published a test and I would like my CI sever (jenkins or azure devops) to run it?
Many thanks,
Assaf
Great question Assaf. It is currently not possible in the product, however, is on the roadmap and is coming soon.
We will have APIs and Webhooks to help execute tests as part of your CI/CD processes. Meaning, the same tests you generated using the test composer and run in production can be recycled to ensure your deployments are error free.
As well, Jenkins is an industry standard so we will be providing a plugin to help facilitate the API testing processes via GUI. More details to come, will update this space when it does.
Alternatively keep your eye out here: http://ibm.biz/apitest

Azure CLI returns an incomplete list of webapps

I have been building applications that run on Azure using the Portal and Visual Studio for several years, and I am very happy with it, but after seeing Scott Gutherie demo the command line tools, I decided to give it a go.
When I try to get a list of my web apps, the list is incomplete. az webapp list returns data on one of the two App Service apps that I have in my account, but the other is conspicuously missing, and I haven't been able to sort out why.
Both apps appear in the Azure Portal.
The two apps run in different locations (East US and East US 2), and they belong to different resource groups. Those are the only difference that I can think of. Both were created by deploying an ASP.NET MVC app from within Visual Studio.
Any ideas? Is there something that I am missing?
It seems a known issue. I test in my lab, I get the same result with you. Following is my test steps.
Publish a web app to Azure new resource group from Visual Studio.
Use az webapp list check, I could not find the webapp I publish. Only could find web app created on Azure Portal.
Use az web list -g shuivs. the result is null.
C:\Users\v-shshui>az webapp list -g shuivs
[]
Use az webapp show -n <name> -g <rgname>, I get the following error.
C:\Users\v-shshui>az webapp show -n "WebSite1120171130022504" -g "shuivs"
Usage Error: WebSite1120171130022504 is not a correct app type
I find webapp publish from Visual Studio have different web app kind with created on Portal. I use Power Shell to check it.
According to my test, Azure Cli 2.0 list web app according to web app attribute ‘Kind’. Azure Cli 2.0 can not list web app published from Visual Studio.

accessing Jenkins HTML report

I have a Jenkins job which uses HTML publisher plugin and executes selenium automation cases and generates a HTML test result report link on Jenkins job details page. i want to pass this HTML report link to stakeholder who can view the report without logging in to Jenkins server but the problem is all the stakeholders may not have Jenkins account/login setup so is there a way to bypass the authentication part and directly access the html report link(make the report public) which is on Jenkins.
any help highly appreciated..
you can configure this from global security setting in Jenkins. if you are Admin you will have access to this, if not you need to ask your Jenkins Admin for it.
http://<JenkinsHost>/configureSecurity/
Give read-only permission to Anonymous Users for Job should fix the issue. I haven't tested it but it should work I guess.
Caveat: if Jenkins is deployed on public domain or cloud anyone having access to Jenkins URL will be able to see your job and all the important information mentioned in Job Config. So I would not suggest to do it. if it's on private domain, I don't see much risk.

Selenium Capabilities

I'm drowning in the Selenium documentation. What I've got so far is the ability to record a script in FireFox, export it to the new WebDriver format (JUnit4), open and tweak the test in Eclipse, then run it as a JUnit test in Eclipse.
What I'm wanting next:
to run the same test on multiple browsers
to have a suite of tests run on a remote server at a set interval
receive notification if a test fails
Is this possible using the path I've started down above? It's hard to tell, but I'm not sure that WebDriver is compatible with the RC server. Or, should I just take my suite of JUnit tests and integrate them with something like Cruise Control?
Thank you...
to run the same test on multiple browsers
See: How to run Google Chrome with Selenium RC?
to have a suite of tests run on a remote server at a set interval
This is hard, especially when you are running on headless (terminal only) machine. See this article. But not impossible, read further.
receive notification if a test fails
The typical configuration is to use CI server like Bamboo, take advantage of cargo-maven-plugin to deploy your application and run Selenium tests during integration-test phase. Easier said than done. Since CI server is typically headless, you will need freaks of nature like xvfb, taking a lot of screenshots since you have no idea what is happening during the build when it fails, and so on... But it is possible, we managed to setup such a process in our company and are very happy for it.
Bromine helps you to run on several browsers. Regarding "Scheduling" as already said, maven would help. Try to gather infos about Hudson. It helps a lot in scheduling. It supports selenium too. It helps to send notification also.

A rails web app, quickbooks, and mysql

I've gotta use the inventory from quickbooks in my rails web app...it would be nice if I could get quickbooks to use mysql, as that way I could just use mysql between the app and quickbooks, which would make things easy.
Does anyone know how to get quickbooks to use mysql? Or will I be forced to have my app communicate directly with quickbooks, which I wanna avoid :P
There are a few ways of integrating with QuickBooks, but if it's a web application, your best bet is to use the QuickBooks Web Connector, or to use a commercial package for SQL access.
The Web Connector is the only Intuit-supported solution to integrating with QuickBooks from a web application. Basically, you build a SOAP server / Web Service which speaks a specific set of methods. The Web Connector then is installed on the machine running QuickBooks, and polls your web service asking "Hey, got anything for me to do?" Your web service can then respond with qbXML requests (examples of qbXML here: QuickBooks qbXML Examples) which tell the Web Connector "Add this customer: ..." or "Send me invoices which match: ..." or etc. etc. etc. The Web Connector then relays those requests to QuickBooks, QuickBooks processes them, and the response is relayed back to your web service. Your web service might then process the response somehow, and then send the next request over to the Web Connector. This can continue in a loop for as long as you like, continuing to send requests to QuickBooks and receiving the responses.
You might also look into AccessBooks and QODBC. Both are commercial wrappers around the QuickBooks qbXML SDK which allow direct SQL access to QuickBooks.
Here is some additional information on my QuickBooks Integration Wiki about how to integrate applications with QuickBooks.
You might also want to search around on Google. I know there were some QuickBooks Rails packages/gems out there somewhere, but last I looked it did not support the QuickBooks Web Connector. Instead, the Rails application had to be installed on the same machine as QuickBooks, and it communicated via COM.
Pretty sure you will have to interface with Quickbooks directly. The other problem is going to be that because Quickbooks is a client-side application you will need to have an app on the client that pushes the data to the server. It's definitely doable.
Alternatively, you could just use the export functions of Quickbooks to periodically export the inventory as CSV.
http://behindlogic.com provides a Rubygem (for sale) that will deal with all of the pains of QBXML for you, and an HTTP Connector for QuickBooks that allows you to send/receive messages with QuickBooks through HTTP, which opens the door for connecting from another computer. The gem has an adapter built to use the Connector as well, so you can very quickly get up and running with QuickBooks on Windows and your Rails app on Linux or on your development Mac.
EDIT: Unfortunately, the maintainer of Behind Logic and the gem mentioned above has passed away. I hate bringing this up, however it took me a while to figure out why the GitHub repo was inactive and the site had gone down.
We have been using the Web connector for a while now, and let me tell you its been pretty smooth so far. Though the Intuit Quickbooks SDK doesn't let you do wt exactly QB UI would let you. Problems occur especially when you want to enter group items to QB using the SDK. Use a webservice and let it build requests and process responses and push the required data to your database which can simply be anything from a SQL server to MySql/Oracle etc etc. Using this approach good amount of error handling can also be done.