Answered by:
Azure devops Cloud-based Load Test in Pipeline

Question
-
Hi,
I have a web app, lets call it A. A is deployed in a devops pipeline.I have a performance/ load test, lets call it B. B is a visual studio online project, currently on my local machine, when run can be seen in devops under loadtests.
How can I add B, as a cloud-based load test task, in A's pipeline? Do I need to deploy the load test as a separate project?
- Moved by Femisulu-MSFT Wednesday, March 6, 2019 10:23 PM better suited in Azure Devops
- Edited by ralk0023 Thursday, March 7, 2019 4:57 PM title update
Tuesday, March 5, 2019 10:40 PM
Answers
-
Hi rk0023,
Thank you for reaching out!
In order to add a cloud-based load test task to an existing web app devops pipeline, you will need to check in the load testing project under the same repository where the web app project is present.
Let's call the load test project as "LoadTestingProject"
To build your code or deploy your software you need at least one agent.
More information here - https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops
In your build pipeline configure the Cloud-based Load Test task as below. This task uses Microsoft hosted agent 'Hosted VS2017'
LoadTestingProject is at the root level of the repository.
For the build pipeline, System.DefaultWorkingDirectory is the local path on the agent where your source code files are downloaded.
For the release pipeline, System.ArtifactsDirectory is the directory to which artifacts are downloaded during deployment of a release.
Below is a snapshot of the log from the build pipeline, I executed:
Hope this helps!
- Proposed as answer by AmanGarg-MSFTMicrosoft employee Thursday, March 7, 2019 8:08 PM
- Marked as answer by ralk0023 Monday, March 11, 2019 9:16 PM
Thursday, March 7, 2019 8:08 PM
All replies
-
Hi rk0023,
Thank you for reaching out!
In order to add a cloud-based load test task to an existing web app devops pipeline, you will need to check in the load testing project under the same repository where the web app project is present.
Let's call the load test project as "LoadTestingProject"
To build your code or deploy your software you need at least one agent.
More information here - https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops
In your build pipeline configure the Cloud-based Load Test task as below. This task uses Microsoft hosted agent 'Hosted VS2017'
LoadTestingProject is at the root level of the repository.
For the build pipeline, System.DefaultWorkingDirectory is the local path on the agent where your source code files are downloaded.
For the release pipeline, System.ArtifactsDirectory is the directory to which artifacts are downloaded during deployment of a release.
Below is a snapshot of the log from the build pipeline, I executed:
Hope this helps!
- Proposed as answer by AmanGarg-MSFTMicrosoft employee Thursday, March 7, 2019 8:08 PM
- Marked as answer by ralk0023 Monday, March 11, 2019 9:16 PM
Thursday, March 7, 2019 8:08 PM -
Hi rk0023,
It seems that you have added .git folder also from the other project. And that is why it is considering it to be a submodule. Just add the project folder and nothing else parallel to your other project folder.
For example:
Monday, March 11, 2019 5:03 PM -
Do you still get the same submodule repo error as reported above or some other error?
What kind of a repo are you using?
- Edited by AmanGarg-MSFTMicrosoft employee Monday, March 11, 2019 6:15 PM
Monday, March 11, 2019 6:12 PM