Telerik Forums
Test Studio Forum
1 answer
89 views
Hi,

We have a new problem regarding switching between SSL modes on our test site.  Basically we have 3 modes we need to support:

Full SSL

All pages in our website will be HTTPS e.g. https://Login, https://Search, https://Book, https://Confirm

Partial SSL

Some pages in our website will be HTTPS e.g. https://Login, http://Search, https://Book, http://Confirm

No SSL

No pages in our website will be HTTPS e.g. http://Login, http://Search, http://Book, http://Confirm

When we first created our tests our test site was always in Partial SSL mode therefore the elements/pages in the element explorer were created in this way, however if we switch the modes on our test environment our tests stop working due to the fact that it never finds the page/elements as they have the wrong beginning part of the URL.

Does Test Studio provide a way to handle this?

Thanks
Shane
Konstantin Petkov
Telerik team
 answered on 03 Mar 2014
5 answers
40 views
Hi Team,

Recently I upgrade telerik from 2012.2 to 2013.2.1327, everything seems pretty good especially for cross browser to be much more stable. When I try to run test list, seems this function is unstable, because sometime it will show the compile error( and the error log is incomplete), then I restart Telerik and run expect with no error pop up, or give no response just the run icon is disabled and I can't see it's status because no test runner control popup when I run list, is there any configuration that I may miss?

Thanks in advance,

Fion
Ivaylo
Telerik team
 answered on 27 Feb 2014
4 answers
139 views
Hi, Support

  My scenario is to validate 400+ urls redirection.
  One question here is, only the 1st url need to login with username and password. The following urls do not need.

 So I want to add a step to verify if the dialog exist or not.
 If exists, eg. 1st url, then enter the username and password.
 If not, go next.

 How to make it? Will you please give a solution?
 Thanks.

Another related thread is 'Can a url be parameterized and verified?'
Boyan Boev
Telerik team
 answered on 27 Feb 2014
3 answers
242 views
Hi,Support

  I want to read and verify if the data in an excel certain column contains some specific text, and then go to next step
my step is

Assert.IsTrue(Data("ExpectRedirectUrl").ToString().Contains("http"))

"ExpectRedirectUrl" is the certain column in the excel,
"Http" is the specific text for verify.

Error message:

Line 84: (BC30516) Overload resolution failed because no accessible 'Contains' accepts this number of arguments.
Line 84: (BC30201) Expression expected.

Can you help to clarify??
Thanks.
Y
Top achievements
Rank 1
 answered on 27 Feb 2014
3 answers
83 views
I need to pass a different value to a Test As Step every time it is called.  Is there a way to do this without using a datasource?

Example calling test:
1. Type 'user01' into UserNameTextbox
2. Type 'pw01' into PasswordTextbox
3. LeftClick on LoginButton
4. Execute test 'Search'

Example Test as Step 'Search'
1. LeftClick on SearchRadioButton
2. Type <desiredValue> into SearchTextBox

In Step 4 of the parent test, I want to pass a different value to the typed value in Step 2 in the Test as Step so that I can reuse this 'Search' test for more then just a very specific search scenario.  Is this possible?  I don't want to have to connect this particular test to a datasource as I want to be able to do everything from the parent test.

Konstantin Petkov
Telerik team
 answered on 26 Feb 2014
1 answer
92 views
Hello,
I created 3 simple tests.  Each one consists of a login step, testing a different link of the home menu in each, then logging off. (all on the same website of course)

I want these tests all put into one test called "TestList" so that they can all run right after another.  For some reason however, after Test1 runs, it simply finishes and says "1 passed out of total 1".  All 3 tests are enabled as well as each working independently when I enable each one separately.  Even when I right click to say "run to here" on Test2 it still simply stops after Test1 finishes.

Just wondering why this is occuring?  As I've created other TestLists in the passed and never seemed to have this issue before.
Boyan Boev
Telerik team
 answered on 26 Feb 2014
1 answer
42 views
I have a silverlight app with hundreds of recorded objects, but I'm getting to the point where the objects are not easy to find/maintain.  Is it possible to group objects by a particular element, say the RadPaneGroup or RadSplitContainer elements?  This would make it easier to find/use the elements needed for each test.

A copy/paste from the DOM explorer for an element I'd like to group by: 
<RadSplitContainer Name='contentTypesSplitContainer' AutomationId='contentTypesSplitContainer' Uid='16367560'>

I've tried to modify the SilverlightApp identification filter to:
RadSplitContainer Name is exactly contentTypesSplitContainer 
I get the error "We could find the element using the back-up search.  Modify the settings below or click the 'Troubleshoot' button." when I enter this manually into the filter criteria.

I've tried to navigate through the DOM and right-click and select "Replace element" on the above DOM object but I get the error "The technology of the element you have selected does not correspond to the current type!" when trying to replace the identifying filter with the "SilverlightApp" page/object.

Is it possible to clean up the Elements list at all, or am I stuck with hundred of objects in the Elements repository?  I know I can filter down based on the test, but I prefer to have some sort of order to my repository in case I need to select an object manually.
Konstantin Petkov
Telerik team
 answered on 26 Feb 2014
1 answer
38 views
I'm currently running into an issue where Test Studio will not record elements added ot the repository before and/or after adding them. This occurs most frequently with continue buttons and radio dials which are javascript driven. The tool records them with generic labels such as continuespan, continuespan(), span1, etc.

I noticed that when attempting to edit the element, findlogic is capturing the div id and tagindex. The problem occurs when trying to re-use the element in other tests involging different parameters, causing the test to fail because for some reason the element cannot be located. I also noticed that when recording new tests with different parameters and selecting the same continuebutton, the span for the tagindex changes.

I have tried rearranging the order in which Test Studio finds elements, adding the "class" tag and no luck. It continues to pick up the div id and tagindex. Currently, we do not have individual label ids on all the elements in our system but before I investigate that route, I wanted to inquire there is a solution through the tool that can help alleviate this problem that I'm unaware of?

Screenshots are attached if needed.
Cody
Telerik team
 answered on 24 Feb 2014
2 answers
90 views
Hi, 

     I am creating a "Proof of concept" project at work verifying if Test Studio standalone can run a "Test Studio Web Test" referencing another test from a separate Telerik Test Studio project. 

    Here's a high level of what I've created so far:
     
    1. I have created two Telerik test studio projects in Visual Studio 2012. Let's name them ProjectA and ProjectB. 
    2. ProjectB is special. It is a shared project.
    3. ProjectA references ProjectB. 
    4. In ProjectB, I have a "test studio web test". It consists of one step called "NavigatesToUrl". The step has been converted to code to become public and be seen to other projects. I modified the test's constructor so if class "Manager" ever goes null, it is always instantiated.
    5. ProjectA also has a "test studio web test". The test calls "NavigatesToUrl" method referenced from ProjectB. 
   
   The Problem: In Test Studio standalone, when I call the test in ProjectA, the test always fail. However, when i run in Visual Studio 2012, ProjectA's test passes. 
   
   Errors Messages:
     1. Compilation failed for [Test Studio Web Test].
     2. The type or namespace name 'ProjectB could not be found (are you missing a using directive or an assembly reference?). The assembly is there. I even added all the dlls in a separate folder. 













Velin Koychev
Telerik team
 answered on 24 Feb 2014
3 answers
152 views
Hi, admin

   We do a POC recently, for more than 400 urls redirects validation.

  During the recording, it can catch the actual redirects url, eg.  'Navigate to : 'http://google.com/' ' 

  I want to parameterize the url ' 'http://google.com/'' to a variable named 'redirectUrl'

 And then verify the redirect Url  to the expectedRedirectUrl in the data excel.


Can the telerik current version implement it?


Looking forward to hearing from you.
Many thanks.

 
  
Boyan Boev
Telerik team
 answered on 24 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?