Closed swahelamulla closed 2 years ago
Hi Swahela, Thank you for reporting the first issue of Test Base!
We currently only allow the package to be uploaded to Test Base specified blob path. You can retrieve it by calling this API: https://learn.microsoft.com/en-us/rest/api/testbase/test-base-accounts/get-file-upload-url?tabs=HTTP So the steps should be:
You can refer to this example for reference: https://github.com/microsoft/testbase/blob/6191b1237576238db1e1adff18fa205c3ac5f381/Utilities/CICD/Azure-DevOps/CreateOrUpdatePackage.ps1#L118
We will update our documentation to make this clear.
Thanks, Yan
Thank you soo much yazeng.
In API doc the blob path is [storageAccountPath/package.zip] so, it is confusing.
Also I want to ask you one more question . If we use Test Base Create Package API then we can upload only pre-built package right? Is there any option to proceed with application files only(.msi/.exe) as we have option in azure portal build package from scratch like that, because I have tested with msi&exe files it is not working showing error message .zip is necessary.
I'm glad that helped. This is a good question. We do not have such rest API for now. But I'm curious what your user scenario is, why do you want to upload (msi/exe) only? If you build the package on Azure Portal, you still need to update the script files (install/launch/close/uninstall) manually.
Hi Yan,
I'm excited to learn Azure Test Base service, I have more no of applications so I had to test them with test base . Rest API is good option than azure portal but we need to build package(It will be very difficult to build package every time for so many apps) and this is main problem. is there any option to test applications in bulk using any work flow. It would be better for me if you give any advice.
Thanks!
Hi Swahela,
Thanks for sharing! We have an example workflow, which includes: build the app, compress the package and upload to Test Base. I hope it will give you some help. I'm waiting for you feedback.
Thanks, Yan
Okay, I will try with this solution. Thank you very much @yazeng
Hi @yazeng what exact changes we have to make with editor in that 4 scripts (Install, Launch, Close and Uninstall). I know we have to change msi name, Process name but other than this we have make any other change?
Hi Swahela, Sorry I reply to you late, because we are taking national holidays this week. Quick answer to your question is yes, only msi and process name need to be modified. But if you have your own functional test cases, it will be another story.
No problem @yazeng and Thanks For your Support
$exePath = "C:\Program Files\Test Base M365\DigitalClock\DigitalClock.exe"
What about this path if we have to change then can i change only this much of part(DigitalClock\DigitalClock.exe) and make (C:\Program Files\Test Base M365) remaining part is comman for everytime is it right?
I want to ask you 1 more question what is exactly process name. Suppose if i have Outlook.msi/exe then we have to take only Outlook as process name correct? or any other possibilities we have in process name.
Thank you for the clarification.
Hi @yazeng I'm lil bit confuse in Feature Update and I want some clarification. I have selected Insider Channel values but the values are not present inside JSON file.
Hi Swahela, Try this:
{
"osUpdateType": "Feature updates",
"targetOSs": null,
"baselineOSs": [
"Windows 10 21H2"
],
"insiderChannelIds": [
"1772747126",
"2120650206"
]
}
@yazeng I want that third insiderChannelId also for Windows 11 22H2 (Insider Beta Channel, RTM) and targetOS's value is always null in feature update case?
Yes, it is always null. It's represented by the insiderChannelIds field for Feature Update
Thank you !
@swahelamulla I'll close this issue. You can create a new one if you have any other questions regarding Test Base.
Okay
I'm trying to upload my package to azure test base using azure rest API, Every time package get's uploaded successfully to test base service but package get failed (every time verification status is verification failed ) showing some blob related error message.("The specified blob does not exist.") I have taken blob path from file upload URL of a Test Base Account.(I have stored my package inside storage account with a container have public access)
When I run rest API the Response Code: 201
Error in JSON File after failure in verification.
"packageStatus": "Error", "validationResults": [ { "validationName": "Sanity Checks Validator", "isValid": false, "errors": [ "The specified blob does not exist." ] } ], "validationRunStatus": "Failed"