This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public Startup(IHostingEnvironment env) | |
| { | |
| var builder = new ConfigurationBuilder() | |
| .SetBasePath(env.ContentRootPath) | |
| .AddJsonFile("appsettings.json", true, true) | |
| .AddJsonFile($"appsettings.{env.EnvironmentName}.json", true) | |
| .AddEnvironmentVariables(); | |
| if (env.IsDevelopment()) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ConnectionStrings": { | |
| "WolfTrackerDB": "Server=(localdb)\\MSSQLLocalDB;Database=wolftracker;Trusted_Connection=True;MultipleActiveResultSets=true", | |
| "WolfTrackerRedis": "<my connection string>", | |
| "WolfTrackerStorage": "<my connection string>" | |
| }, | |
| "KeyVault": { | |
| "ClientId": "7985ad5b-ca56-4013-b627-4de75291cace", | |
| "ClientSecret": "2MJMMybvsVGzn7la5gTSACWXvKeua50GzxKE7CgxEEU=", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Launch Chrome against localhost", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="hello"> | |
| <h1>{{ msg }}</h1> | |
| <h4 v-if="authenticated"> | |
| You are logged in! | |
| </h4> | |
| <h4 v-if="!authenticated"> | |
| You are not logged in! Please <a @click="hi()">Log In</a> to continue. | |
| </h4> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install yolk | |
| pip install robotframework | |
| pip install robotframework-selenium2library | |
| pip install robotframework-faker | |
| pip install robotframework-ride | |
| Test using 'robot --version' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Note I'm using the clean option in the Get Sources area | |
| Write-Host "Copying all items in the project" | |
| copy-item * $(Build.ArtifactStagingDirectory) -recurse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remove any existing files and then copy in the new one from the build | |
| remove-item C:\agent\_work\_robotframework\* -recurse | |
| copy-item "Robot framework tests\drop\*" "C:\agent\_work\_robotframework" -recurse | |
| Write-Host "Copied Selenium test items" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "Running Robot Framework tests" | |
| C:\Python27\Scripts\robot.bat -o '$(OutputFolder)\output.xml' -l '$(OutputFolder)\log.html' -r '$(OutputFolder)\report.html' -x '$(OutputFolder)\outputxunit.xml' '$(RobotFrameworkFolder)\Dashboard\Dashboard.robot' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Azure subscription-specific variables. | |
| $storageAccountName = "spotterazurelogs" | |
| $containerName = "robotframework-logs" | |
| # Upload files in data subfolder to Azure. | |
| $localfolder = "$(OutputFolder)" | |
| $destfolder = "$(Release.ReleaseName)" | |
| $blobContext = New-AzureStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $(SpotterLogStorageKey) | |
| $files = Get-ChildItem $localFolder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $successPattern = "<status status=""FAIL""" | |
| $Matches = select-string -Pattern $successPattern -Path 'C:\agent\_work\_robotframework\Output\output.xml' | |
| $errorCount = $Matches.Matches.Count | |
| if ($errorCount -ne 0) { | |
| Write-Host "##vso[task.logissue type=error;]There are $errorCount errors in the Robot Framework tests" | |
| #exit 1 # decided I won't have it stop. Instead I'll have it as a partial pass | |
| } |