Powered by Blogger.
Showing posts with label Exploratory Testing. Show all posts
Showing posts with label Exploratory Testing. Show all posts

How to use HttpWebRequest to send POST request to another web server

Yesterday we went to MySchools office. A big discussion was going on some database locking issue. It's interesting, their problem is application able to process two transaction successfully, from the third it is locking the table and execution is getting failed with timeout error. We asked to open the code, and we verified further. Finally I found the cause.  Close statement is missing in the code.  :-)

The Code which helped me to resolve the issue



private void OnPostInfoClick(object sender, System.EventArgs e)
{
string strId = UserId_TextBox.Text;
string strName = Name_TextBox.Text;

ASCIIEncoding encoding=new ASCIIEncoding();
string postData="userid="+strId;
postData += ("&username="+strName);
byte[] data = encoding.GetBytes(postData);

// Prepare web request...
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://localhost/MyIdentity/Default.aspx");
myRequest.Method = "POST";
myRequest.ContentType="application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream=myRequest.GetRequestStream();
// Send the data.
newStream.Write(data,0,data.Length);
newStream.Close();
}

Read more...

How to Measure Ad Hoc Testing by Jonathan Bach. Satisfice, Inc

How to Measure Ad Hoc Testing

Read more...

# - Special Character in Google Search


I am a Tester/End User, I'll expect what I want/my requirement not what the product/software is giving to me. In my usage I don't bother about "software limitations" or "Not an issue" kind answers...:-)


Today I tried the below scenario and I felt like It should not work like this. I am not sure how many will agree with me.

Open Browser, Launch Google.
Type C# Tutorial.

Check the Dynamic Search Results window...:-)

Read more...

  © Blogger template Shush by Ourblogtemplates.com 2009

Back to TOP