Telerik Forums
Test Studio Forum
1 answer
74 views

Is there a way to set settings for a test list settings so that they apply to all test lists?  I'd like to know if I'm missing something and if there is a preferred way to accomplish this.

Even being able to select multiple tests and change the settings for them at the same time would be a lot easier than configuring each one individually.  I've seen references to testing templates, but they seem to be specific to Visual Studio.  Is this something I can accomplish with the Settings class (https://docs.telerik.com/teststudio/testing-framework/write-tests-in-code/intermediate-topics-wtc/settings-and-configuration-wtc/settings-class#initializing-the-settings-object-without-using-a-telerik-test-template)?  If so where would the settings be set so that they apply to test lists (or even just all tests in general)?  Could I create a custom class that inherits from BaseWebAiiTest and then initialize and apply the settings there and specify it in the general settings?  I also came across "Execution Extensions" and that looks like another possibility (https://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions).  


Plamen Mitrev
Telerik team
 answered on 11 Oct 2019
3 answers
96 views

When using the recorder typing text in a RadSearchBox it records action specific to that element type.  This fails when my desktop if locked with a Win32 error which I assume is because it is locked.

First of all, isn't it possible on your end to detect this scenario and provide a detailed error message (not Win32) or even attempt to fall back to a mode of setting text that doesn't require the desktop be unlocked?

Second, the properties for a RadSearchBox action have TypingSpeed which says it is used "when SimulateRealTyping is set", but I don't see the SimulateRealTyping property for this element.

Third, I tried to create an action on the element to just set the text.  While it has an "Enter text" action listed under quick actions, it actually fails when run with the following error.  "Target '[Element: 'div:112' (id=ctl00_cphM_scMain_sbKeywordSearch)]' is not a supported element to set text to."

I'm not sure if it is even going to be feasible to convert all of our tests to run with the desktop locked, but this is the first one I am working on and am already running into a problem.  I wish I had been aware of this before since the goal is to schedule them to run unattended.

 

Recorder
RadSearchBox('ctl00_cphM_scMain_sbKeywordSearch'): text 'Test' entered in Searchbox input

Manually added step
Enter text 'Test' in 'KeywordSearchBox'

Plamen Mitrev
Telerik team
 answered on 11 Oct 2019
4 answers
198 views
I have done a very simple recording to invoke file upload dialog.
I'm testing it with major browser including IE, FF and Chrome.
However, the same test suppose to work with all browsers but it doesn't.
Chrome fail to start to navigating to the URL specified.
It just stuck at a point of preparing browser for automation.
I even tried to add delay but no luck.

Below is the log for the test:

Overall Result: Fail
------------------------------------------------------------
'10/18/2013 11:28:27 AM' - Using .Net Runtime version: '4.0.30319.18052' for test execution. Build version is '2013.1.911.0'.
'10/18/2013 11:28:27 AM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'10/18/2013 11:28:32 AM' - Using 'Chrome' version '30.0.1599.101' as default browser.
'10/18/2013 11:28:32 AM' - 'Pass' : 1. Navigate to : 'file:///C:/Users/awong/Desktop/test.html'
'10/18/2013 11:28:38 AM' - 'Pass' : 2. Wait for '6000' msec.
'10/18/2013 11:29:08 AM' - 'Fail' : 3. Click 'FileUploadFile'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using
Find logic
 (Html): [id 'Exact' fileUpload] AND [tagname 'Exact' input]

Unable to locate element. Search failed!

Learn more about finding elements here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx
------------------------------------------------------------
'10/18/2013 11:29:08 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'10/18/2013 11:29:08 AM' - Overall Result: Fail
'10/18/2013 11:29:08 AM' - Duration: [0 min: 36 sec: 581 msec]
------------------------------------------------------------
'10/18/2013 11:29:09 AM' - Test completed!

I have also attached the log file from Test Studio and the sample html

Please let me know if anyone has an answer.

Thanks.
Elena
Telerik team
 answered on 02 Oct 2019
1 answer
111 views

I've been writing test for a web based application. This is an intermittent issue and I can't seem to figure out why sometimes when the Handle FileUpload Dialog and the Handle Download Dialog will not complete. It will put a filename in the textbox but it doesn't Open or Save leaving the dialog unhandled. I've increased timeouts and verified other elements are enabled to try and get the timing right. I'm not sure why this happens sometimes consistently; but others intermittent. I have recalibrated my browser, cleared my browser cache and minimized the number of programs running while running tests. 

Attached is a gif of the file upload document and screenshots of my Handle Dialog steps with the settings.   

My Test Studio version is 2019.2.903.0 

Plamen Mitrev
Telerik team
 answered on 02 Oct 2019
1 answer
71 views

I wanted to see if a cookie is cleared before each session runs in a load test?

We have sticky session in our load balancer and I'm looking to update our test so that it doesn't go all to one server.

Elena
Telerik team
 answered on 01 Oct 2019
1 answer
153 views

I just installed Test Studio trial to evaluate if the product could be useful to our organization. While I was able to get the standalone version of Test Studio working fine, I would like to use the integrated version in Visual Studio.

We run Visual Studio 2019 - and we have the latest current version of Visual Studio (16.3.1). However when I install Test Studio, there are no templates or integrations that I can find in Visual Studio for Test Studio. I've attempted to repair the installation with no luck.

How can I get the Test Studio integration with VS2019?

Elena
Telerik team
 answered on 30 Sep 2019
7 answers
105 views

When I log into our .net application a token is returned in the content

That token is set to the auth header.  The problem is, the way the application works there's a prefix infront of the token.

For example:

HTTP Response Token in Content after successful login

YdafjdQ3adNfzaFfdiaZfdjfQtafZdafGM4ZC00NdGa5YmE1NzUzZWQwOS8xOS8yMDE5IDQ6NTc6NDggUE0=

The Authorization now expects that TESTAPI is infront of the auth header with the token

TESTAPI YdafjdQ3adNfzaFfdiaZfdjfQtafZdafGM4ZC00NdGa5YmE1NzUzZWQwOS8xOS8yMDE5IDQ6NTc6NDggUE0=

Is there anyway to append or make changes to a value (Cookie/Content/Header) that requires more than just what is copied from a previous step?

Elena
Telerik team
 answered on 24 Sep 2019
1 answer
139 views

Hi,

I would like to ask about the feature SimulateRealTyping. I have used it in some of my test cases and i found out that there is some effect when I'm not using it and when i am using it. When i am not using it, while executing the scripts, the auto-fill function in my application under test did not worked and it works after i use the Simulate Real Typing function.

1. May I know when and what kind of scenario should I use this function? What is your recommendation? 

2. And If I were to use this function, what is the impact and risk of using it ? Such as maybe it will affect execution time and etc. ?

Hoping to hear from you soon.

Thank you.

 

Daniel Djambov
Telerik team
 answered on 23 Sep 2019
3 answers
259 views

Hello,

 

Here is what I am trying to accomplish.

 

In my web AUT, I am creating a service ticket which is Data driven and has say 2 rows ( Right now just using the local data instead of external). Once my service ticket is created, I am asserting the text content in the grid using the verification step. After this I would like validate if the record is present in the DB. I am successfully able to connect to my SQL DB from test studio (Found a code sample in your forum which is great). Basically my query is to retrieve the service ticket by running a select statement and comparing this against the UI element. How do I do this using a coded step? I need to able able retrive the rows from my test and use that in my query and run a compare between the two?

 

Thanks!

Elena
Telerik team
 answered on 20 Sep 2019
1 answer
86 views

Hello,

I am working through creating load tests.  For one of my applications, I recorded through fiddler and loaded into test studio. 

The response sets a cookie, which was recorded, to expire after 1 hour.

When I go to run the test anytime after an hour I get unauthorized because the cookie expired.

Does anyone have a recommended approach on this?  Maybe how to clear cookies before a load test execution?

Elena
Telerik team
 answered on 20 Sep 2019
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?