------------------------------------------------------------
'4/29/2013 10:34:51 AM' - Using .Net Runtime version: '4.0.30319.296' for test execution. Build version is '2012.2.1425.0'.'
4/29/2013 10:34:51 AM' - Starting execution....'
4/29/2013 10:34:57 AM' - Detected custom code in test. Locating test assembly: USBank Test Cases - Sara.dll.'
4/29/2013 10:34:57 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'4/29/2013 10:34:57 AM' - System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'4/29/2013 10:34:57 AM' - Test completed!
Hello,
I am using WatiN to run some UI automated tests on my application. I have been able to interact with most of telerik controls, except RadAsyncUpload.
Currently I am unable to upload a file using WatiN. I understand that telerik uses another testing platform, but I am looking to see if maybe someone in your team can help me figure out how to use WatiN to uplad a file via the RadAsynUpload control.
<telerik:RadAsyncUpload ID="upAttachment" runat="server" AllowedFileExtensions=".pdf,.jpg,.jpeg,.gif,.png,.bmp" TabIndex="9">
<Localization Select="Select File" />
</telerik:RadAsyncUpload>
[CodedStep(
@"readHeaders")]
public void requisitionScreen_CodedStep()
{
// read through the grid
WpfApplication app = Manager.ActiveApplication;
Assert.IsNotNull(app);
Telerik.Windows.Controls.GridView.GridView grid = app.MainWindow.Find.ByName<Telerik.Windows.Controls.GridView.GridView>(
"GridView");
Telerik.Windows.Controls.GridViewHeaderRow row = grid.HeaderRow;
int index=row.HeaderCells.Count;
Log.WriteLine(
"count "+index.ToString());
for (int i=0;i<index;i++){
row.HeaderCells[i].ToString();
}