Code Monkey home page Code Monkey logo

vsts-smoke-web-test-task's People

Contributors

baileyjs78 avatar duber avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

vsts-smoke-web-test-task's Issues

Feature suggestions

  1. Ability to change GET/POST
  2. Ability to add HTTP "header"
  3. Ability to analyze content of response using regex

Ignore self-signed SSL

I found that this wouldn't work on our situations (TFS on prem)
For our dev/qa we don't use a public SSL, but a local one
The error returned is:

Exception calling "GetResponse" with "0" argument(s): "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

Adding this code helped:

Write-Host "Executing web test for $url"
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
    public bool CheckValidationResult(
        ServicePoint srvPoint, X509Certificate certificate,
        WebRequest request, int certificateProblem) {
        return true;
    }
}
"@
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy

from
https://stackoverflow.com/questions/11696944/powershell-v3-invoke-webrequest-https-error

Failing as a part of the release cycle

Probably because if the empty Name label and not ability to change it on Save

2017-03-03T21:38:45.2597971Z ##[section]Error: System.ArgumentException: Context name can not be null or empty.

2017-03-03T21:38:45.2597971Z Parameter name: name

2017-03-03T21:38:45.2597971Z at Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.BaseContext..ctor(ILogContext parentContext, ILogger logger, Guid scopeId, Guid timelineId, String rootFolder, String workFolder, Boolean logToFile, String name, String type, String loggingArea)

2017-03-03T21:38:45.2597971Z at Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.TaskContext..ctor(IJobContext jobContext, ILogger logger, Guid taskInstanceId, String taskName, IJobExtension jobExtension)

2017-03-03T21:38:45.2597971Z at Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.JobContext.CreateTaskContext(Guid taskInstanceId, String taskName, Boolean logInitialization)

2017-03-03T21:38:45.2597971Z at Microsoft.TeamFoundation.DistributedTask.Plugin.Release.ReleaseJobExtension.InitializeTaskContexts(IJobContext context, IJobRequest job)

2017-03-03T21:38:45.2597971Z at Microsoft.TeamFoundation.DistributedTask.Plugin.Release.ReleaseJobExtension.InitializeAgent(IJobContext context, IJobRequest job, ITaskContext& downloadArtifactTaskContext, String& teamProjectId, Uri& artifactsWorkingFolder, Int32& releaseId)

2017-03-03T21:38:45.2910779Z ##[error]Context name can not be null or empty.

2017-03-03T21:38:45.2910779Z ##[error]Parameter name: name

Times out after 100 seconds

I wanted to use this script to get my website running after a fresh deployment. At times, my site takes more than 100 seconds to cold boot if there are data and schema migrations that are happening.

This smoke test Task doesn't set the timeout of the underlying web request, and results in a HTTP code of 0 if the server doesn't respond within 100 seconds.

It would be nice for it to ask for and apply a timeout value.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.