Telerik Forums
Test Studio Forum
1 answer
187 views
With changes that have been made to my tests over the weeks, I have a number of elements in my project that are no longer used. I'd like to remove them (my elements repository has become large and cumbersome). So I suppose I have two things... First, when an element is not referenced in any tests/steps, right clicking on the element will show 'Delete' as an option. However, it doesn't work. I've tried selecting the element and using the delete key. That has no effect, either. So, how do I remove an element from my project? Also, I have some very busy web pages I'm testing. There are scores of elements on a single page. So I have quite a few elements listed in the project under the PageName. Sometimes Test Studio will add a new 'batch' of elements under PageName0 or PageName1. Fine - I can combine them (to a degree). But can I arrange them in logical groups that make sense to me? So rather than having 56 elements listed under a single page, I can have, say, 8 pertaining to search in a group and 11 list items grouped, etc.? That'd make the world a better place if I could. It would also make the world better if I could remove the dozens that have become orphaned over time.
Cody
Telerik team
 answered on 16 Dec 2014
1 answer
97 views
After you moved the user guide to the new site, I can no longer get to the API reference. I just get a blank screen. Do you have another link to the reference pages?

I am using the Firefox browser, version 26.0. I get the same result in the Chrome browser. I've attached a screenshot and a copy of the DOM.
Cody
Telerik team
 answered on 16 Dec 2014
0 answers
252 views
We have recently released a new Test Studio documentation. After this release "User Guide" under Test Studio Help tab has some issue with rendering the new documentation. Here is how to fix it:

1. Download and unzip the attached file (UserGuide.zip). It contains two *.reg files. Those add the required registry value to the respective location 32/64 bit systems. It simply tells to Test Studio built-in browser control to use the latest standards for rendering the sites.

2. Double click the file which is for your system (32/64 bit) and click Yes.

3. Restart Test Studio and the new documentation should appear correctly when you hit "User Guide" button under the Help tab.
Boyan
Top achievements
Rank 1
 asked on 16 Dec 2014
4 answers
114 views
I have a question, I am evaluating Telerik and  it looks like I need to customize the base class that the test cases derive from.
I have done this with other products, but I am not certain how to do it with Telerik and if I would be missing soemthing by doing it this way.

I am not sure if I can have my test cases derive from another class which derives from BaseWebAiiTest. The test class will call a super class and then this super class will call down to the "steps" implemented in the "MyTest" class. Error will be thrown in caught by the super class if they happen to occur. 

I am not sure if this would work in Telerik framework, what would would I comprimise from Telerik's framwework behind the scenes work , test execution, reporting, etc. Also what  about the [] blocks that are defined withing the test case.

public class MyTest : CustonWebAiiTest{

  public MyTest(){
   super(BaseState.whateverTheCase);

 public void allStepsAreHere()throws Exception{
   //all the test case methods that are called would be in here

  }
 }

 }

 

//THIS WOULD BE MY ABSTRACT CLASS THAT TEST CASES DERIVE FROM. It takes a parameter for the constructor and it calls the execute method which in turns implements a base state and then calls down to MyTest to run the steps of the test case.

public abstract class TestCase : BaseWebAiiTest {
     public TestCase(BaseState basest){
        execute();
     }
    public abstract void AllStepsAreHere()throws Exception;

    public void baseStateDef(BaseStateDef bs){
    //sets my base state
     };
     
    public void execute(){
    try{
     baseStateDef(baset);
     run();
     } catch (Exceptions);
    }

Thanks.

 

Boyan Boev
Telerik team
 answered on 16 Dec 2014
3 answers
49 views
The links to the User Guide are now broken.
Any idea how to get to and downlowd the User Guide?

Thank you!
Boyan Boev
Telerik team
 answered on 15 Dec 2014
8 answers
105 views
Hoe do i get the width of an dynamic created table?

In Coded Step i do find the element with
            HtmlTable resultTable = Find.ByExpression<HtmlTable>("name=aspnetForm","|","TagName=table","id=~cmsWebControlContainer");

But resultTable.width returns nothing. 
resultTable.GetComputedStyle("width").Value return "auto"?

So, how can i get the real width?
Boyan Boev
Telerik team
 answered on 15 Dec 2014
1 answer
82 views
Hi,
I have few queries around How to select button based on configuration while executing the test script?:

i) Can you please guide me on how to automate following case:
On Product listing page listed there are three products listed which I can Add into Cart. I want to make product selection based on the configuration file (CSV or XLS..), means if config file saying add first product or first two products then script should consider this. I am able to do it from Coded Step, However needed to confirm if it is possible using built-in features of Telerik Test Studio.
ii) Is it possible to pass logical condition in the if else loop like logical checking with variables, I am able to add only the verification steps in this logical conditions.

Thanks,
Kanif
Ivaylo
Telerik team
 answered on 12 Dec 2014
1 answer
74 views
Hi,
I have few queries around how to do database connection in Telerik Test Studio. I am able to do it from Coded Step, however needed to confirm if it is without using Coded Step.

i) I am able to connect to a database and get the data from single database. Just need to confirm how to retrieve the data from two different databases.
ii) I want to create a config driven script where environment (Stage, Sandbox, QA etc.) is read from the config file. Each environment having different database connection string, so here I want to read the database connection string from config and pass this connection string to create new data source. Is it possible without using coded step?

Thanks,
Kanif
Ivaylo
Telerik team
 answered on 12 Dec 2014
1 answer
107 views
Hi,
I am facing following issues around reading data from configuration file, I am able to do it from Coded Step, however needed to confirm if it is possible using built-in
features of Telerik Test Studio.

i) How to read the configuration data from the configuration file (CSV or XLS..), assign to variables and use variable in the SQL query while binding database.
ii) How we can update the config file or data file without using the coded step.

Thanks,
Kanif
Ivaylo
Telerik team
 answered on 12 Dec 2014
3 answers
115 views
Here is my situation.... I have an element on the page I'm testing that is not visible on the screen (you have to scroll down to find it). My test throws an error that the element is not found. So I try using a coded step that has a line like this:

Pages.Page.Element.ScrollToVisible();

But, since ScrollToVisible is using the same object that couldn't be found to begin with, I end up with the same element not found error. Am I using ScrollToVisible correctly? The 'documentation' I've been able to find simply shows that ScrollToVisible exists. Nothing with an example or the context in which it is used. Any help on how to address this situation would be appreciated.

Thanks

Doug
Cody
Telerik team
 answered on 11 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?