Skip to content

Framework for running web test scripts for smoke testing websites or to generate load on a website for performance analysis. Scripts can be written in C# or a custom DSL based off of C# that makes it easier for non-programmers to write web tests.

License

Notifications You must be signed in to change notification settings

jjschlesinger/Scriptable-Web-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Framework for running web test scripts for smoke testing websites or to generate load on a website for performance analysis. Scripts can be written in C# or a custom DSL based off of C# that makes it easier for non-programmers to write web tests.

Script Examples

Example script using the DSL to do a get request to google.com and display the status code to the console. This example also writes a cookie and header value to the request. #wl is a shortcut for console.write_line (or Console.WriteLine in C#)

http.set_cookie "myCookieName" "myCookieValue"
http.set_header "accept" "text/html"
var resp = http.get "http://google.com"
#wl "Response Status: {0}" resp.status

Same as above example but using C#

var http = Http.Create();
http.SetCookie("myCookieName", "myCookieValue");
http.SetHeader("accept", "text/html");
var resp = http.Get("http://google.com");
Console.WriteLine("Response Status: {0}", resp.Status);

Mixing the DSL and C# in the same script--beginning a line with ## tells the parser you are writing pure C# for that line

http.set_cookie "myCookieName" "myCookieValue"
http.set_header "accept" "text/html"
var resp = http.get "http://google.com"
#wl "Response Status: {0}" resp.status

##Http.SetCookie("myCookieName", "myCookieValue");
##Http.SetHeader("accept", "text/html");
##var resp2 = Http.Get("http://google.com");
##Console.WriteLine("Response Status: {0}", resp2.Status);

About

Framework for running web test scripts for smoke testing websites or to generate load on a website for performance analysis. Scripts can be written in C# or a custom DSL based off of C# that makes it easier for non-programmers to write web tests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages