Telerik Forums
Test Studio Forum
2 answers
71 views
Hello,

In several instances, I have needed to enter DateTime.Now.ToString() into a textbox, so I would initially record step to "enter text 'alan' into txtComment" and then customize that step in code.  I use to have success in this, but within the past few months, I have not.  I have even tried converting the step without modifying anything and I receive the same error.  Below is what I have tried so far.  We are using version 2012.2.1420.

Pages...txtComment.Value = DateTime.Now.ToString();
Actions.SetText(Pages...txtComment, DateTime.Now.ToString());

As stated above, when simply converting the step to code, the test fails:

Actions.SetText(Pages...txtComment, "alan");

I know this is very simple to do, so I must be overlooking something.

Thanks,
Alan
Alan
Top achievements
Rank 2
 answered on 17 Apr 2013
1 answer
160 views
I had an older version when i started encountering this error. I then upgraded to the latest version of Test Studio and tried executing it. It  ran fine the first time and then started to throw the same error. I am not sure why i am getting this error. Can you please help me out here?

Below is the error details.

Thank you,
Nithin

------------------------------------------------------------
'4/17/2013 11:54:59 AM' - Using .Net Runtime version: '4.0.30319.1' for test execution. Build version is '2012.2.1527.0'.
'4/17/2013 11:54:59 AM' - Starting execution....
'4/17/2013 11:55:03 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'4/17/2013 11:55:03 AM' - System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.ArgumentException: Process with an Id of 3068 is not running.
   at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
   at System.Diagnostics.Process.GetProcessById(Int32 processId)
   at ArtOfTest.Common.Extensions.ProcessExtensions.GetParentProcess(Process process)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'4/17/2013 11:55:03 AM' - Test completed!

Mercedes
Top achievements
Rank 1
 answered on 17 Apr 2013
3 answers
108 views
...90% of the time my tests are just superficial "does a page work", or "this url should not work"

Browse to page, make sure there's no YSOD, done.  However the actual test has to be some "hacky" thing like looking for an element which wouldnt exist on a YSOD page.

Could we add a new test step that just "automatically" looks for a crash page...So like in my test project I could give TS my error page Urls, and then I would add this new step in to say

- Browse to Page
- Check for 500
or
- Check for 404
or
- Check for Error

Then internally that magic test step would determine if the resulting url is one of my error pages and\or a YSOD.  This would also let me fire up a series of PURPOSELY bad urls to throw at it to hope they 404 or 500.
Boyan Boev
Telerik team
 answered on 17 Apr 2013
5 answers
278 views
Hi,

I have following scenario to test:
1. Register as user to website.
2. Verification mail is sent to user's mail id, having a link to confirm user account.
3. Login to admin portal and open item created by action#1.
4. Mail which was sent in step#2 is attached.
5. Open attachment and copy link given in mail and paste it in new browser.

Is it possible? I was able to proceed till step 4 but copy link didn't worked.

Thanks,
Amit
Boyan Boev
Telerik team
 answered on 15 Apr 2013
4 answers
970 views

Hi,

I am trying to connect to Oracle database using Test studio to verify values are being persisted properly. I tried writing code using Oracle client but I am getting following error:

'System.Data.OracleClient.OracleConnection' is obsolete: 'OracleConnection has been deprecated. http://go.microsoft.com/fwlink/?LinkID=144260'

Also, tried with OleDB connection, but getting OleDB.Oracle not registered on local machine error. Please let me know if any solution is available for the same.


Thanks,
Amit

Ivaylo
Telerik team
 answered on 12 Apr 2013
1 answer
109 views
I have read other postings that Flash is not really supported in Test Studio... at least a couple of years ago. Others have proposed ideas on how to do blink clicks, etc.I know I can't use image verification,

However, as a performance monitoring tool, we want to time the loading of pages. The page has a Flash header on it and the time that it takes to load and starts to play is to be considered part of the loading time.

Any ideas?
Cody
Telerik team
 answered on 09 Apr 2013
3 answers
190 views
Hi team,
when i use ActiveBrowser.NavigateTo(url) method to open a page, it seems that the browser will wait until the page is totally loaded, that means if there is an image or an icon is not completely loaded, the browser will wait. so my question is how can we let it go to next step without keeping waiting once the link that i need is loaded?
Boyan Boev
Telerik team
 answered on 09 Apr 2013
5 answers
243 views

HI,

  I am new to WebAii Framework, I want to start Automation SAP application using VS2010 and WebAii Frame work. Please let me know if it is possible to automate SAP application using WebAii Frame work, If possibe let me know If there is any pre-requiste before starting the automation like Installing xyz controls etc.

SAP Application details :
Portal : NetWeaver Portal
Languages used : ABAP and Java

My System details:
Windows XP SP3

VisualStudio 2010

WebAii 2.0

 

Please let me know if any details requried

 

Regards,

SaranKumar V

Vaibhav
Top achievements
Rank 1
 answered on 09 Apr 2013
3 answers
112 views
This may be a "stupid question", but after viewing and/or dismissing the Step Failure Details log after a Quick Execution run, where can I go to re-open it so I can double-check something?

Apparently, only Test List results are listed on the Results tab, and I can't seem to find where Quick Execution test results are stored, if they are at all.

Are Quick Execution test results transient and not kept anywhere...even if another quick execution has not yet been run?
Is the only way to be able to go back to a test result is to run the script in a list and not use Quick Execution?

Thank you for your time.

Donna M Rode
St George, UT
Boyan Boev
Telerik team
 answered on 08 Apr 2013
1 answer
119 views
Hi All,

I have been using telerik WebAii framework with great success in the past few years when running UI automation. I am using the SDK directly (writing code) and I am not using the Test Studio UI to run my test.
Test execution is happing via Visual Studio MSTest tool.

I recently change my entire code to use .Net 4.5 instead of 3.5. Everything was working smoothly until I tried to run my UI automation. Most of the UI cases run with no issue until I hit a set of case that utilize 4.5 code. The test case outcome will succeed but it will put WebAii (or the machine) in some kind of odd state. All subsequent cases, regardless of their complexity will fail run trying to launch the browser
    this.Manager.LaunchNewBrowser()
The API will timeout with little indication on the failure.

I am not able to repro the issue on my local machine but this repro 100% in a lab environment. My local machine has IIS, SQL, Azure SDK, .Net 3.0, .Net 4.5, and many other component/software install while the lab machine has very little.
I am running Windows 8 locally and the lab is running Windows Server 2012.

Not using .Net 4.5 feature in the scenario I am trying to test is not an option so I need to find out what is causing the error.

Has anyone experienced similar issues with WebAii and .Net 4.5? If so, is there any work around?
Will a 4.5 version of WebAii be available anytime soon?

Thanks.

David.
Plamen
Telerik team
 answered on 08 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?