This is a migrated thread and some comments may be shown as answers.

Validation on Source Code

3 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lakshmi
Top achievements
Rank 1
Lakshmi asked on 18 Sep 2012, 01:35 PM

   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

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 19 Sep 2012, 03:50 PM
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
0
Lakshmi
Top achievements
Rank 1
answered on 20 Sep 2012, 04:29 PM

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,

 

0
Cody
Telerik team
answered on 20 Sep 2012, 04:41 PM
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
Tags
General Discussions
Asked by
Lakshmi
Top achievements
Rank 1
Answers by
Cody
Telerik team
Lakshmi
Top achievements
Rank 1
Share this question
or