Hello Naga
Regarding your Points, Please find my comments
1.
how can we achieve parameterization or data driven from an external file.
NA
Here is the article from which you can see,
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing.aspx
You can also download the samples from here
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/access-sql-database.aspx
2.
Can we perform descriptive programming using test studio. for example i have dynamic objects that are populated on the application then
can i write a driver and store all these elements in a seperate file such as excel and then basing on the requirement can i pass this elemnet as an arguement and perform the operation. If Yes please provide the process as my application has lots of dynamic objects
,
NA
When you add Elements into your Project using Test Studio built in Feature, Add Elements to Project, Test Studio automatically capture the Properties of an Element and Stored in readonly file Pages.g.cs or Pages.g.vb, depends upon the which language you are using for Project(C# or VB), for dynamic elements you can use Advanced Find Logic as mentioned in this article
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/elements-pane-overview/find-element.aspx
3.How can i write my own code instead of recording.
NA
This is simple, just create a New Test (NewTest1.tstest) and Add Code behind file and start Coding
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/coded_steps.aspx
4.Where can i find all the methods with which i can write my own code.(An exampke with code would be helpful)
NA
Same as 3
5.How can i create reusable functions and call them in my script.All these are application specific reusables such as login.
NA
you can use Modularity Driven approach, Create Common Methods for Lo-gin, Log-out and use them in Test wherever its required
Here is the Example
//Log-in Method
public void
LoginToSilverlightClient(
string
username,
string
password)
{
//Maximize the Browser
Activebrowser.Window.Maximize();
//Launch the URL
Activebrowser.NavigateTo("
application
url"
);
//Wait for UserName Textbox Exists in DOM
Pages.app.Username.Wait.ForExists(timeout);
//Enter UserName
Pages.app.Username.Text = username;
//Wait for Password Textbox Exists in DOM
Pages.app.Password.Wait.ForExists(timeout);
//Enter Password
Pages.app.Username.Text = password;
//Wait for Login Button Exists in DOM
Pages.app.SubmitButton.Wait.ForExists(timeout);
//Click on Login Button
Pages.app.SubmitButton.Click(false);
}
Access this in Coded Step
[CodedStep("Login intoApplication")]
public void LoginintoYahoo()
{
//Create object for Login class
Login objlogin = new Login();
//Call the Method to Login into Application
objlogin.LoginToSilverlightClient("test", "123456");
}
6.How can pass the test data to my variables within a script.
NA
Same as 5
Please let me know if any other info required
--Nitin--
twitter:@N1t1nA
http://www.linkedin.com/groups/Telerik-Test-Studio-4281132