use another port

This commit is contained in:
Tian Liao 2024-11-25 18:49:51 +08:00
commit 47b33ec2c6
3 changed files with 6 additions and 6 deletions

View file

@ -160,9 +160,9 @@ jobs:
shell: powershell
name: Install WindowsApplicationDriver
- run: |
netsh http add urlacl url="http://localhost:80/calctesting/file" user=everyone
netsh http add urlacl url="http://localhost:4724/calctesting/file" user=everyone
shell: powershell
name: enable local urls
name: Enable local urls
- uses: ilammy/msvc-dev-cmd@v1 # this is a workaround because microsoft/vstest-action is broken.
name: Setup dev tools
- run: |

View file

@ -7,7 +7,7 @@ namespace CalculatorApp
{
namespace DataLoaders
{
static constexpr auto sc_MetadataUriLocalizeFor = L"http://localhost/calctesting/file/?id=currency+static+data&localizeFor=";
static constexpr auto sc_RatiosUriRelativeTo = L"http://localhost/calctesting/file/?id=currency+converter+data&localCurrency=";
static constexpr auto sc_MetadataUriLocalizeFor = L"http://localhost:4724/calctesting/file/?id=currency+static+data&localizeFor=";
static constexpr auto sc_RatiosUriRelativeTo = L"http://localhost:4724/calctesting/file/?id=currency+converter+data&localCurrency=";
}
}

View file

@ -16,8 +16,8 @@ namespace CalculatorUITestFramework
Prefixes =
{
// to trust below URL on your dev machine, run below command in cmd as admin
// netsh http add urlacl url="http://localhost:80/calctesting/file" user=everyone
"http://localhost/calctesting/file/",
// netsh http add urlacl url="http://localhost:4724/calctesting/file" user=everyone
"http://localhost:4724/calctesting/file/",
}
};
_listener.Start();