locked
conflict in extracting data RRS feed

  • Question

  • Hi,

            I am unable to extract the data from hidden field.  It is giving result in the details tab as "No HTML tag was found that satisfies the criteria".

             I'm also conflict with the fields in the 'ExtractAttributeValues'.  Will you please elaborate it with an example? Also as in opensta we can extract data into a variable and then that variable can be used anywhere in the code, can we use same technique for accessing hidden values? And how can we access data in VSTS

     

     

    Tuesday, January 17, 2006 6:16 AM

Answers

  • The following page in the online help walks you through using ExtractAttributeValue: http://msdn2.microsoft.com/en-us/library/ms243183(en-US,VS.80).aspx

    When you extract values in a web test, they are stored in the web test context.  In a normal web test, you can use the values from the context by surrounding the context name with {{ }}, so a context variable named xyz can be substituted into your web test by using {{xyz}}.  In a coded web test, you should use this.Context["xyz"].ToString().

    Josh

    Tuesday, January 17, 2006 3:53 PM