locked
Tag name and Attribute name RRS feed

  • Question

  • What is Tag name and Attribute name? How can we use them while performing a web test? Is there any help that we can get from these while performing Load test?
    Wednesday, March 16, 2011 9:46 AM

Answers

  • Tag name and attrib1utes are a part of HTML.

    For example in the html snippet below the div element is a tag and height is an attribute.

    <div height=100 />

    http://www.w3schools.com/html/html_primary.asp

    You will most likely use them as a part of a wbtest for extracting and validating things.  For example say I have the following html.

    <form action="example.php">
    <div>
    <input name="firstName" type="text" value="Tim" />
    </div>
    </form>

    I could add a validation rule to the web test to validate that an input named firstName existed on the page.  I could als extract the value Tim and pass it on to another web page as a query string or form post parameter.

    Here is a good link to read to get an overview of validation and extraction rules

    http://msdn.microsoft.com/en-us/library/bb385904.aspx


    Tim
    Wednesday, March 16, 2011 10:38 AM
  • Hi Siddartha,

     

    I have provided these suggestions for you use.

     

    1.      The HTML a tag defines an anchor and may be used to establish a link to other document, as a bookmark on a page, or as both of them. Attributes include idclassstyletitle and so on. Attributes are attached to the opening tag, starting with its name, followed by the equal sign (=) and finally its quoted value.

     

    2.      About how to use them in web tests, I agree with Tim’s suggestions, they can be used in Validation and Extraction Rules.

          This is a Walkthrough: Adding Validation and Extraction Rules to a Web Performance Test:

     

    http://msdn.microsoft.com/en-us/library/ms243183.aspx

     

    3.      The primary goal of a load test is to simulate many users accessing a server at the same time. You can see the load tests’ detailed information in the smmary or graphs. Such as Avg.Page Time attribute and Test Response time attribute and so on. So I mean that you couldn’t get the web tests’ all attributes name or tags name, but in LoadTest, we can get the counter of validation rule error. 

     

    I hope these suggestions could help you resolve these questions, if anything is unclear, please feel free to let me know.

     

    Best Regards,

    Jack

     


    When you help others, it's help yourself!
    Thursday, March 17, 2011 7:47 AM
  • Hello Siddartha,

    Weclome to the MSDN forum. My name is Shane Hu.

    Thank for Tim and Jack’s participating in our forum.

    About the first two question, you can refer to Tim and Jack’s reply above. Now I provide some detailed information about load test here:

    1. After creating one or several web tests, you can add at least one Web test to a load test to simulate multiple users opening simultaneous connections to a server and making multiple HTTP requests. You can set properties on load tests that broadly apply to the individual Web tests. And you can add unit tests to a load test and exercise the performance of non-Web based server components.

    2. Load tests are used in several different types of testing:

    a. Smoke :How your application performs under light loads for short durations.

    b. Stress:To determine if the application will run successfully for a sustained duration under heavy load.

    c. Performance : To determine how responsive your application is.

    d. Capacity Planning : How your application performs at various capacities.

    3.A load test result contains performance counter samples and error information collected periodically from the computers-under-test. A large number of performance counter samples can be collected over the course of a load test run. The amount of performance data collected depends on the length of the run, the sampling interval, the number of computers under test, and the number of counters to collect. For a large load test, the amount of performance data collected can easily be several gigabytes.

    4.For detailed information about load test, you can refer to the web site below:

    1. Working with Load Tests

    2. Monitoring and Analyzing a Load Test Result

    I hope this information can help you solve your requirement. If you have any question about it, please let me know.

    Best regards,

    Shane


    Hualiang Hu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Saturday, March 19, 2011 6:13 AM
    Moderator

All replies

  • Tag name and attrib1utes are a part of HTML.

    For example in the html snippet below the div element is a tag and height is an attribute.

    <div height=100 />

    http://www.w3schools.com/html/html_primary.asp

    You will most likely use them as a part of a wbtest for extracting and validating things.  For example say I have the following html.

    <form action="example.php">
    <div>
    <input name="firstName" type="text" value="Tim" />
    </div>
    </form>

    I could add a validation rule to the web test to validate that an input named firstName existed on the page.  I could als extract the value Tim and pass it on to another web page as a query string or form post parameter.

    Here is a good link to read to get an overview of validation and extraction rules

    http://msdn.microsoft.com/en-us/library/bb385904.aspx


    Tim
    Wednesday, March 16, 2011 10:38 AM
  • Hi Siddartha,

     

    I have provided these suggestions for you use.

     

    1.      The HTML a tag defines an anchor and may be used to establish a link to other document, as a bookmark on a page, or as both of them. Attributes include idclassstyletitle and so on. Attributes are attached to the opening tag, starting with its name, followed by the equal sign (=) and finally its quoted value.

     

    2.      About how to use them in web tests, I agree with Tim’s suggestions, they can be used in Validation and Extraction Rules.

          This is a Walkthrough: Adding Validation and Extraction Rules to a Web Performance Test:

     

    http://msdn.microsoft.com/en-us/library/ms243183.aspx

     

    3.      The primary goal of a load test is to simulate many users accessing a server at the same time. You can see the load tests’ detailed information in the smmary or graphs. Such as Avg.Page Time attribute and Test Response time attribute and so on. So I mean that you couldn’t get the web tests’ all attributes name or tags name, but in LoadTest, we can get the counter of validation rule error. 

     

    I hope these suggestions could help you resolve these questions, if anything is unclear, please feel free to let me know.

     

    Best Regards,

    Jack

     


    When you help others, it's help yourself!
    Thursday, March 17, 2011 7:47 AM
  • Hello Siddartha,

    Weclome to the MSDN forum. My name is Shane Hu.

    Thank for Tim and Jack’s participating in our forum.

    About the first two question, you can refer to Tim and Jack’s reply above. Now I provide some detailed information about load test here:

    1. After creating one or several web tests, you can add at least one Web test to a load test to simulate multiple users opening simultaneous connections to a server and making multiple HTTP requests. You can set properties on load tests that broadly apply to the individual Web tests. And you can add unit tests to a load test and exercise the performance of non-Web based server components.

    2. Load tests are used in several different types of testing:

    a. Smoke :How your application performs under light loads for short durations.

    b. Stress:To determine if the application will run successfully for a sustained duration under heavy load.

    c. Performance : To determine how responsive your application is.

    d. Capacity Planning : How your application performs at various capacities.

    3.A load test result contains performance counter samples and error information collected periodically from the computers-under-test. A large number of performance counter samples can be collected over the course of a load test run. The amount of performance data collected depends on the length of the run, the sampling interval, the number of computers under test, and the number of counters to collect. For a large load test, the amount of performance data collected can easily be several gigabytes.

    4.For detailed information about load test, you can refer to the web site below:

    1. Working with Load Tests

    2. Monitoring and Analyzing a Load Test Result

    I hope this information can help you solve your requirement. If you have any question about it, please let me know.

    Best regards,

    Shane


    Hualiang Hu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Saturday, March 19, 2011 6:13 AM
    Moderator
  • Hi Siddartha,

    I am Shane. I will mark our replies as answer. If you still have any question about our replies,please unmark them as answer and let me know.

    Best regards,

    Shane


    Hualiang Hu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, March 21, 2011 2:37 AM
    Moderator