Azure Web App Performance Test - azure

Noticed a Performance Test feature on Azure Web Apps.
Appreciate if I can get clarification on below:
Is it possible to test multiple pages?
Possible to specify which pages to test?
Possible to test the login state of the user so that performance test including backend API call etc?

Each test only test on a single URL.
Can specify which URL to test.
Only HTTP GET requests can be made from tests. If API calls depend on tokens in the URL only, they can be tested by this feature.

Yes, you can create a WebTest with Visual Studio to test multiple pages and have specific validations. https://msdn.microsoft.com/en-us/library/ms182536(v=vs.90).aspx. Once created, you can upload as the test
Yes, see #1
Yes, the WebTest will record all steps and reproduce them, cookies and all.

Related

Docusign is not loading when opened through cypress test

I have an iframe with an embedded DocuSign. When I try to navigate to this page using cypress tests, the document won't open. I couldn't find much information on google. Is it a drawback in cypress that won't support docusign inside iframe?
Cypress has hard time working with iFrames; however, there are ways around it in most situations, which you can read about here.
The problem with DocuSign, from what I remember, is the document originates from a different domain than your test application. If that's the case, Cypress isn't able to test elements within a different domain, as it is bound to a single origin.
If that is the case, I would see about using Cypress to interact with the DocuSign API directly and testing its integration with your application that way, if possible.

Using Postman to test Web Api 2 with [Authorization]

Edit: I apparently need to fumble around just to realize what question I'm actually trying to ask..
I am using MVC5 and EF6 to build a local web application and am trying to test my web api 2s with Postman. I'm fairly new to http and ASP.NET and am wondering if there exists a tool to make api requests without too much authorization configuration. I understand that entity framework saves validation tokens in the browser, but I can't seem to find a good Chrome extension that will utilize the validation token to test CRUD operations before building out the UI to use them.
I should add this is a large practice project - I'm learning to swim in EF, not dependent on airtight security at this point.
I've tried following the instructions here:
ASP.NET Web API Authorization with Postman
but I can't seem to get Postman and IIS to get along.

How to list all app services in google cloud platform using python API

I'm trying to write a simple python code to list out the app services in google-cloud-platform ,
In command prompt i'm able to list it by passing the below command
gcloud app services list
When i searched in stack overflow and other websites i couldn't find any piece of code that can list me app services . Any information related this will be thankful. Thanks in advance
One possibility is to use the Admin API, for example by making HTTP requests to its REST apps.services.list method:
Lists all the services in the application.
HTTP request
GET https://appengine.googleapis.com/v1beta/{parent=apps/*}/services
Or you can always fallback to plain invoking from your python code the same commands that you can run manually and process their outputs, for example via subprocess.Popen().
As you have mentioned that you were unable to find a proper documentation to list out the services or the versions for an application in the Google Cloud Platform, for requests regarding documentation modification you can definitely provide a feedback on the documentation page and we would definitely provide as much information as possible.
Regarding the question, I would have to agree with the previously mentioned solution posted by Mr. Dan Cornilescu, also for further clarification you would be able to call the Admin API that would create a HTTP requests to the REST and provide the List of services of an application. On the top of that you can also request a call to List of versions under the service of an application.
Over there if you could provide the requested parameters under the parent section (for your case your application name after 'app/') and execute (at the bottom) the call using your preferred authentication to request the list of services.
You can also click on the icon on the top right corner to able to go to following page where it provides the functions and the method calls in JavaScript. We would try our best to update the calls in Python as well. Thank you so much.

Service or technology developer portal is using to render the RALM

The https://beta.developer.spotify.com/ and https://beta.developer.spotify.com/
uses which service or technology to generate the UI? I know spotify uses RAML but use which tool/service to generate the UI, the descriptions and endpoint call e etc?
We hand-wrote the code that interprets our RAML and generates our API console. It uses a build script to generate Jekyll files with each of the endpoint's data, and a React component that grabs that data when the page gets loaded, presents a UI, and handles network requests. Source: I'm one of the devs who wrote that code! If you're looking to build something similar without having to write the code yourself, you could check out this api-console by Mulesoft. Hope that helps!

How to write TFS API using pseudo code?

I am just wondering is it possible to test the TFS API given in the Microsoft website to test the API whether it's working or not? If so is it possible with pseudo code? Can you guide me? I need to test it before i implement it. Or do you have other ways to test the API?
This are the TFS API I am going to test whether it's working,
I need to make sure the API are available in sharepoint to use
Unfortunately, there is no such Microsoft website to test the API or any pseudo code to handle it.
You could submit a uservoice here, and there has been a similar one:
Enable to impersonate user in Rest API
https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/17996818-enable-to-impersonate-user-in-rest-api
However, for the API you are using--Create a work item, there is an alternative way to verify whether the work item field could be created or not. By using op parameter:
Use test to verify that the value is valid without actually saving the work item.

Resources