Validation on Source Code

4 posts, 0 answers
  1. Lakshmi
    Lakshmi avatar
    6 posts
    Member since:
    Sep 2012

    Posted 18 Sep 2012 Link to this post

       Hi,

        I am using Telerik Test Studio and writing about 20 tests for one of the e-commerce projects at work. I am learning as I go and   need some insight into how to do validation on source code within a page.

    I am writing a test for a checkout process from initial product selection, basket, login, address etc right down to the confirmation page.

    On the source of the confirmation page, I need to validate :

     1. Google Analytics tracking code for successful order
     2. Affiliate marketing tracking code
     3. Multivariate testing tool tracking code.

     Is there a way I can get Telerik to look at the source code of a page for the validation steps?

     Please respond urgently.

     Many thanks

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 19 Sep 2012 Link to this post

    Hi Lakshmi,

    By "source code" are you referring the HTML sent to the browser, or the source code the web server is executing (e.g. ASP.NET source code)? Because Test Studio hooks into and drives the browser as if a real person were operating it, we're not able to get at the web server source code. We can get at the HTML contained in the browser and do any sort of validation needed.

    How to validate the tracking codes buried in the HTML depends on the implementation. If you can provide more details where/how they show up in the HTML we can assist you with how to do the verification.

    All the best,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Lakshmi
    Lakshmi avatar
    6 posts
    Member since:
    Sep 2012

    Posted 20 Sep 2012 Link to this post

    Hi,

     Thanks for your reply. I was referring to HTML Source code sent to the browser.
    When order is placed for a product at the confirmation page, In the source code of confirmation page which is HTML, I need to find code for
     
    1. Google Analytics tracking code for successful order
    2. Affiliate marketing tracking code
    3. Multivariate testing tool tracking code.


    Thanks,

     

  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 20 Sep 2012 Link to this post

    Hello Lakshmi,

    Once we know what these tracking codes look like in the HTML we'll be able to assist with how to use Test Studio to validate them. The first step is manually locating them and showing them to us. We have no idea where they are in the HTML or what they look like. We need you to find them using something like View Source or Firebug or Google Chrome Developer Tools. Once you locate the HTML, show this to us, and describe in detail what validation needs to be done with it, then we can assist with the HOW to validate it.

    All the best,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top