Web Forms :: How To Do Automation Testing For Application

Jun 8, 2012

i have made a project in c# and i want to do automation testing for it.

View 1 Replies


Similar Messages:

Silverlight 4.0 - How To Find A Silvlerlight Object On Page Using Microsoft UI Automation Testing

Aug 4, 2010

I have an object on my asp.net page hosting a Silverlight xap (in my particular case it is in an IFrame, but I'm curious about regular objects as well). I can find the element in UI Spy, but the name just says "Silverlight Control". Trying to find that AutomationElement in my automated test is unsuccessful (control is null every time). Is there a setting in the Silverlight code or in the html that would help? How can I distinguish it if there are multiple Silverlight controls on the same page?

<object id="silverlightClient" style="display:none;" data="data:application/x-silverlight-2," type="application/x-silverlight-2">
<param name="source" value="../../ClientBin/SilverlightApplication.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="#00000000" />
<param name="minRuntimeVersion" value="4.0.41019.0" />
<param name="autoUpgrade" value="true" />
<param name="windowless" value="false" />
</object>
TreeWalker tw = new TreeWalker(new System.Windows.Automation.PropertyCondition(AutomationElement.NameProperty, "Silverlight Control));
AutomationElement control = tw.GetFirstChild(ancestor);

UI Spy

Identification
ClassName: "MicrosoftSilverlight"
ControlType: "ControlType.Window"
Culture: "(null)"
AutomationId: "71857844"
LocalizedControlType: "window"
Name: "Silverlight Control"
ProcessId: "7636 (iexplore)"
RuntimeId: "42 2163886"
IsPassword: "False"
IsControlElement: "True"
IsContentElement: "True"


EDIT: added image, I also realized that the object is inside of an IFrame. UISpyImage - title name removed

View 2 Replies

Web Forms :: Adding Controls To Master Page To Manage Application Testing?

Aug 31, 2010

I have Web Application which uses the Logged In User (Authenticated User) to query his Profile Data from Adabas/Unix using OLEDB. The application provides the user with about 21 different pages (Basic Info, Employment Info, Education, Dependants, Financial Info ...).

The web application has a master page, and each profile data page is based on a User Control loaded in the Child ASPX Page.

The Data Layer of this Web Application will have to undergo major modification, since we are migrating our legacy applications from Adabas/Unix to SAP, the development Team has prepared web services to query for the same Profile Data from SAP using Web Services. Now, we have to modify the web application to consume the web services instead of using OLEDB to query Adabas.

Since we are in the testing phase, and we have only very limited data in SAP, I have to provide temporary control to allow test query the Staff Profile for a Specified User (instead of the Authenticated User) and to select the Source:

1. SAP, or

2. Adabas.


So I am thinking to add the following "Control Section" in the Master Page:

[Code]....

See image below to clarify:

[URL]

Becuase the users defined in SAP are based on Dummy Data, so we want to allow the user to Enter the required SAP User, and he will select "SAP" from the Drop-Down-List. In this case, the program will query for Staff Profile Data from SAP for the specified "Staff ID" (txtSAPStaffID) instead of the Authenticated User. But, if "Adabas" is selected for the "ddlDataSource" then, it will default to the Authenticated User.

I noticed that when I am following the above technique, if I press "Go", the Staff Profile Data Page is disappeared, and when I navigate from page to another, the selection on the values entered in the "Control Section" in the master page are reset to default value, ie, the last values are not maintained.

Questions:

1. What is your feedback on the method I followed above ? Any other recommendations? I need very simple method.

2. Why the data page (the child page of the master page) is cleared (disappears) when I press the Go button ?

3. How to maintain the values selected when I navigate from one page to another ?

View 3 Replies

How To Implement Unit Testing For A .Net Web Application

Sep 3, 2010

I want to imlement the Unit Testing in my asp.net web application.How to identify the scope of this. I mean, How should i start on this front.

View 2 Replies

Application Performance And Stress Testing?

Jul 29, 2010

I want to test asp.net application for stress, load and performance. Please guide me what free tools should be used for this ? Is there any tool which particularly can be used to analyse individual components, functions and scripts and resources they use ?

View 2 Replies

Sql Server - A Book On Load-testing An .NET Application

Feb 12, 2010

I need a book to recommend strategies for load-testing an ASP.NET application with SQL Server backend.Some info that may be useful:how to write a load test planwhat perfmon counters to use andtypical threshold valuesfinding bottleneck various load testing tools

View 2 Replies

Good Techniques For Load Testing A Web Application

Jun 30, 2010

I am trying to load test a web application, but I am having a hard time finding good tools that are affordable. I cam across Web Performance Load Testing Tool which is pretty cool, but limits you to 10 users and after that it costs thousands. any good techniques for load testing a web application?

View 5 Replies

Installation :: Testing A Cloud Application Locally?

Nov 26, 2010

I am currently building a web application that will involve many servers to get it to run efficiently. I am trying to test this web site at home and I have a few computers running the website. To connect to the website I would type this into the address bar http://192.168.0.200:8080 or I would typehttp://192.168.0.201:8080. However when I transfer my site from one computer to another the web browser can no longer read the cookies. I would like to set up a home DNS server and have the computers in my house access the site like this w1.MySite.com and w2.MySite.com instead of http://192.168.0.200:8080 or I would type http://192.168.0.201:8080 so I can test if my cookies are working accross subdomains. how to set up a local DNS server so I can do this?

View 3 Replies

State Management :: Got .net Web Application And Testing The Pages?

Nov 28, 2010

Ive got an ASP.net web application and was testing the pages.At the moment I store a variable in the

System.Web.HttpContext.Current.Session[

say the user is authenticated when they have been verified on login.So if the login is successful the authenticated is set to true.This is checked on every page load to make sure they have logged in.What I did was to log in and then the Main Menu page is displayed.I copied the address of this, set the page to goggle's page then pasted the address back into the address bar and the page loaded back up.How can I stop this from happening?Should have some mechanisim to prevent this?If so how.

View 2 Replies

Visual Studio :: Unit Testing Tool For Web Application?

Aug 26, 2010

I am lookinf for a Unit testing Tool for asp.net web application. i intended to use visual studio 2008 web test. Please tell me where can i get nice tutorials to start up on this tool. and also suggest me is any other web testing tools out there.

View 1 Replies

Visual Studio :: Application Testing At Developing Stage?

Mar 22, 2010

For developing a VS-2008 application at developing stage best softwares for test the application.we found some of the testing applications like NUnit and MSUnit, which are the softwares best to test the application at developing stage.

View 2 Replies

Architecture :: Unit Testing - Testing Private Methods Using PrivateObject?

Feb 23, 2011

Recently for a class to implement unit test for one of its private methods I used PrivateObject by creating private accessor instead of refelection, to which i received a code review comment as below

"My main concern with Private Object is the use of object[] in constructor. It replaces strong typing enforced by compiler with JavaScript-style run-time error detection.Consequently , personally, I would not recommend it."

Comments above confused me beacuse as per my understanding reflection also needs the object[] to invoke any method.

View 2 Replies

How To Integration Testing On Application Without Necessarily Running All The Tests Via The Browser

Jun 4, 2010

ASP.Net MVC - How should i do integration testing on an ASP.net MVC application without necessarily running all the tests via the browser?

View 1 Replies

Web Testing Software - TFS And Visual Studio Testing Tool.

Jan 18, 2011

am working as a web developer in a company. I am not aware of anything related to testing. Our company is planning to buy some testing softwares. Presently we are working on ASP.NET. We will be working on PHP and JAVA in future. I need your help to find out the best but cost effective testing sofwares.on TFS and Visual Studio Testing tool.

View 2 Replies

Web Forms :: Report Automation Instead Of Manually Browsing In A Web Browser?

Mar 3, 2011

automatically invoking below html code:

<html>
<head>
<title>Report Widget</title> [code]....

When this html code is saved as .html file and browsed, we get a file download dialog box. I wantt this to be automated instead of manually browsing in a web browser.

View 1 Replies

Integration Testing Web Services Against A Testing Database?

Oct 27, 2010

I'm currently building a .net web application that uses WCF web services to allow a Flex front end to access the database.

I'm in the process of setting up some unit/integration style testing on the web services and am trying to work out the best way to allow the tests to access and modify data in a separate test database.

Currently, the connection string in my unit test project points to my testing database, and the connection string in my web services project points to my development database. However, as I am using Linq it appears that when I call the web service methods from my test class, it uses the development database connection string. I have looked into creating mock objects or in-memory database but I believe the same issue would occur.

Is there a way to get this to work, or is my entire idea about what I want incorrect, in which case is there a better way to set this up?

View 3 Replies

Web Forms :: How To Simulate File Download Using Selenium Browser Automation

Apr 29, 2014

I want to test my site using selenium which is an automated test tool where we have to code, and in my scenario I have excel file which I want to download but on download box there is save button but i want to know how to click on Save buttonĀ ...

View 1 Replies

.NET, Office Automation And .NET Framework 4.0?

Aug 10, 2010

I am trying to figure out if the disclaimer below still applies to the .NET Framework 4.0:Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

I was under the impression that the new version of the Framework uses some magic to avoid PIA deployment and somehow one is allowed to manipulate Interop objects ... I do not know enough to figure this on my own. The simple question is: is it possible to open an Excel workbook from within an ASP.NET page, change something in it, save it and do not blow anything in the process?

View 1 Replies

Automation Server Can't Create Object

Sep 16, 2010

Automation server can't create object

View 1 Replies

VS 2010 - Word Automation On Server

Jul 16, 2012

I would like to generate word reports on the web server. My web host does not have office installed, and from what I've read itĀ“s not recommended to use word on the server.

Now, I just recently found this out, and I more or less counted on the reporting stuff being quite simple to set up.

This is what I need.

The user logs in and uploads data, changes it, calculates it and so on. When this is done he will need to generate a report, although preferably in a format he can edit (like maybe adding a comment or a logo or whatever).

How do I do this? This really needs to look professional so features like page breaks and other kinds of formatting is needed.

It is sufficient if the document is generated and not opened on the server. I think I can require the user to have office installed locally in order to actually open the document and maybe print it. But the content must be generated from the sql database.

View 10 Replies

Multiple Browser Testing / Test Web Application Locally In Multiple Browsers With Various Versions?

Jan 19, 2011

My requirement/concern is to test web application locally in multiple browsers with various versions.

If any tool is available, please let me know..

View 4 Replies

Trying Create Unit Testing For An Existing Website Project (not Web Application Project)?

Mar 11, 2010

I'm trying create unit testing for an existing website project (not web application project). I cannot access my under test classes unless I use accessor. However, if I use accessor, I have problem to initiate an object with passing arguments. I only want to create unit tetsing for App_Code. After searching web, and I found that I'd better to create a web application project using my current existing website project. From solution explorer, add new project ->using existing website. My questions is: what impact will have for my current website to create the new project? Should I just convert my current website to web application? If do that, will it cuase problems on my website? I am new on asp.net, still learning..

View 1 Replies

Configuration :: Word Automation On Server Side?

Dec 28, 2010

I created a web application in which I am generating a ms-word document using Microsoft.Office.Interop.Word dll. The application is running fine in the visual studio but when I tried to run on IIS 5.0 through virtual directory then its giving the following error -

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

In my application I have taken reference of Microsoft Word 12.0 Object Library, but its coming as Microsoft.Office.Interop.Word dll, this interop dll is just a wrapper of the actual word COM dll. But I have to register the actual word COM dll. so my problem is to find -

1) The path of the original word dll(COM)

2) How to register this dll, either using regsvr32 or to register on IIS.

View 1 Replies

How To Move An UI Testing For A Website Project To A Web Application Project

Oct 6, 2010

I was not able to do unit testing for our existing web site project. I converted the web site project to a web application project. I did some unit testing and changes on the converted web application project. However, my co-worker was doing UI testing on the web site project. We need put UI testing and unit testing to the web application project. Is it possible to move the UI testing code that my co-worker did to the web application project I am working? If so, how do you do it?

View 2 Replies

Configuration :: Error - Could Not Load Type 'System.Management.Automation.Runspaces.PSSession' From Assembly

Mar 23, 2011

I am developing the Windows Live@edu SSO integration with asp.net custom code.It uses the DLL called "System.Management.Automation" for executing Windows powershell v2.0 commands for connecting Outlook Live Apps.It works fine in localhost,but during deployment in Windows server 2008 , it shows error called

Could not load type 'System.Management.Automation.Runspaces.PSSession' from assembly 'System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved