Telerik Forums
Test Studio Forum
1 answer
30 views

Hi,

We are planning to go with layered apporoach for our automation framework .

We are confused with the approach for managing page objects.

we have a project which has business functions and a project which has all scripts.

Currently we are planning to add page objects and related business functions in a .tstest file.

But since the application is huge, the number of libraries will increase.

So I was thinking maintaining all page objects in a file called page objects.tstest and using this class in business libraries..

Please advice..

Thanks,

VVP

Cody
Telerik team
 answered on 13 Nov 2015
5 answers
48 views

Hi,

We are creating a library and Scripts layer for our project

We observed that from scripts, if we want to call library functions we need to pass Manager object as well.Else scripts fail.

Is there any way where we can call functions with parameters only.

eg 
In scripts 

objCommonLib.Login(username,password,Manager) ;

In library
public bool Login( string username,string password,Manager Manager)
{

Logic here..
}​

In scripts created instance like  objCommonLib = new CommonActions(this);

I tried creating  constructor for library like below. 

        BaseWebAiiTest activeTest;

    public CommonActions(BaseWebAiiTest callingTest)
        {
             activeTest = callingTest;
        }

 

Kindly let me know. Our main objective is to have layered approach.

 Thanks,

VVP

Cody
Telerik team
 answered on 13 Nov 2015
8 answers
198 views
Hello,

I am working on creating a test where I need to check every checkbox that appears on a page.  This page is driven by rule validation from data entered on other pages, so the number of check boxes on the page could vary from 1 to 200 depending on the test case that is being run.  The checkboxes are displayed in an HtmlTable, on per body row.  The only difference in the id of the checkboxes is the bolded part: uwciRepeater_ctl01_checkBox_Approve.  Based on what number it is, it will show ctl00, ctl01, ctl02, etc.

I attempted changing expression in the find logic on the item to remove the ctl01 part and using a Do-While, but this still selects just the first checkbox.   I have been attempting different coded steps to no success.  I played with the idea of recording a huge if...then statement within the test, but I feel like that would be a large amount of steps and not the most optimal solution.  I was wondering if anyone would have an example of a coded step that could solve this issue.

Thank you,

Tyler
Ivaylo
Telerik team
 answered on 12 Nov 2015
3 answers
97 views

Okay, I have multiple environments (Dev, UAT, Stage and Production). Currently I am creating automated tests in our Dev environment. The idea is to use the same test to run in other environments. When I try it, I notice that nothing happens because the primary target for the element is different depending on the environment it is in. I've attached screenshots for examples, and each environment are accessed through different URLs (http://devapp/ and http://uatapp/). Is there a way to make this work? Or will I have to create a new test for each environment. Thanks in advance.

 

Cody
Telerik team
 answered on 10 Nov 2015
3 answers
43 views

I just installed Telerik Test Studio. When I try and create a new project, the following messages are displayed:

Unable to create folder 'H:\Test Studio Projects\TestProjects3\Data'.' 

Unable to create folder 'H:\Test Studio Projects\TestProjects3\Results'.'

Unable to create folder 'H:\Test Studio Projects\TestProjects3\TestLists'.'

Once I click ok for all, I am directed to the test studio but it keeps loading.

 

How do I stop the errors from appearing so I can work on a project?

Cody
Telerik team
 answered on 10 Nov 2015
1 answer
81 views

Hi there,

 

I am having a problem extracting text correctly while preserving formatting and pasting it somewhere while preserving formatting. I am extracting a license key from within a <pre> tag, storing it in a databind variable and outputting that text into a text input and verifying that the license is valid. I am having problems where when I extract the text, there ends up being additional whitespace and formatting issues with the text, causing the license key to be changed from its original state, making it invalid. I have also tried copying the key with its correct formatting into an excel spreadsheet, and binding the sheet into my test and pulling the key from there but it doesn't seem to work correctly as well. Is there any way to properly extract data while preserving formatting in test studio?

 

Thanks,

 Khalid

Ivaylo
Telerik team
 answered on 10 Nov 2015
4 answers
59 views
I have one weird situation with a test execution. Element verification and annotation show the right element, but the button (Sign in) is not selected during the execution. Test project included in att.
Uroš
Top achievements
Rank 2
 answered on 09 Nov 2015
2 answers
50 views

Hi Admin,

I'm so confused that IE stopped working once I verify some element when I record the steps.You can see the attached file for detail. And Test Studio recorder exited.Could you please tell me how to solve this problem. Thanks.

Ella

Ella
Top achievements
Rank 1
 answered on 09 Nov 2015
1 answer
136 views

Hi,

 

I am using test studio to test an AngularJS app. It is essential for me to use Simulate Real Click on all text fields to allow the two way binding to occur.

Is there a way of speeding up the simulate real click speed, as it take a very long time for each test.

Regards,

Zaki.

Konstantin Petkov
Telerik team
 answered on 06 Nov 2015
3 answers
86 views

Hi,

i got the following hidden input field

<input id="regit" type="hidden">

I got two issues here

1. Get the value of regit

2. Use the value to Navigate To a url 

Any ideas?

 Zaki.

Boyan Boev
Telerik team
 answered on 06 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?