Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated testsettings and loadtest files folder not to use the source #4041

Merged
merged 3 commits into from
Apr 19, 2017

Conversation

cltshivash
Copy link
Contributor

Updated testsettings and loadtest files folder not to use the source

Updated the description for the forward link to remove the dot to prevent it being broken in the new task editor

…files control

Updated the description for the forward link to remove the dot to prevent it being broken in the new task editor
$global:RunTestSettingsFile = "";
Write-Host -NoNewline ("Selected load test file is '{0}' under '{1}'" -f $file.FullName, $global:ScopedTestDrop)
Write-Host -NoNewline "Test Drop location used for the run is $global:ScopedTestDrop. Please ensure all required files (test dlls, plugin dlls, dependent files) are part of this output folder"
if ([string]::IsNullOrWhiteSpace($loadRunTestSettingsFile))
Copy link
Member

@dpksinghal dpksinghal Apr 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ([string]::IsNullOrWhiteSpace($loadRunTestSettingsFile)) [](start = 2, length = 59)

minor: you dont need to string check just doing if() would suffice. #WontFix

{
$testSettings=[System.IO.Path]::Combine($env:SYSTEM_DEFAULTWORKINGDIRECTORY,$testSettings);
Write-Host -NoNewline "Updated test settings file is $testSettings";
}
Copy link
Member

@dpksinghal dpksinghal Apr 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment#1 -
this doesnt seem to be related/dependent on the outer if block. it can come out and stay along with the test settings section. #WontFix

if (-Not (Test-Path $loadRunTestSettingsFile))
{
Write-Host -NoNewline "The path for the test settings file $loadRunTestSettingsFile does not exist"
if (-Not([System.IO.Path]::IsPathRooted($loadRunTestSettingsFile)))
Copy link
Member

@dpksinghal dpksinghal Apr 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (-Not([System.IO.Path]::IsPathRooted($loadRunTestSettingsFile))) [](start = 3, length = 67)

if comment #1 is resolved, you will not need this. #WontFix

@dpksinghal
Copy link
Member

  "testSettings":{"cleanupCommand":"$cleanupScript", "hostProcessPlatform":"$processPlatform", "setupCommand":"$setupScript"},

hope you have verified that having null/empty here wont have an issue.


Refers to: Tasks/RunLoadTest/CltTasksUtility.ps1:311 in de134d3. [](commit_id = de134d3, deletion_comment = False)

@dpksinghal
Copy link
Member

:shipit:

@cltshivash cltshivash merged commit 6e0d29a into master Apr 19, 2017
@bryanmacfarlane bryanmacfarlane deleted the users/shivash/loadtesttasksfix branch January 31, 2018 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants