Skip to content

Commit 074503a

Browse files
author
saravanan.ayyanar
committed
coded-ui-test-external-plugin-source-project-for-wpf-gridcontrol-and-griddatacontrol
1 parent 93a6d18 commit 074503a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6015
-0
lines changed

PostBuildCommad.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Using Below post build command we can easily install the assmebly in GAC location while Build the Extension source.
2+
3+
--------------------------------------------------------------------------------------------------------
4+
--------------------------------------------------------------------------------------------------------
5+
6+
"%ProgramFiles%\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe" /i "$(TargetPath)"
7+
8+
--------------------------------------------------------------------------------------------------------
9+
--------------------------------------------------------------------------------------------------------
10+
11+
Note 1: Paste this command in Properties->Build Events ->Post Build Event Command Line text block of both GridCommunication and GridExtension Project.
12+
13+
Note 2: You must Build the Visual studio with Administartor mode when using post build command.
14+

UITestInterop/AssemblyInfo.cs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
using System.Windows.Markup;
5+
6+
// General Information about an assembly is controlled through the following
7+
// set of attributes. Change these attribute values to modify the information
8+
// associated with an assembly.
9+
[assembly: AssemblyTitle("Syncfusion.VisualStudio.TestTools.UITest.GridCommunication")]
10+
[assembly: AssemblyDescription("")]
11+
[assembly: AssemblyConfiguration("")]
12+
[assembly: AssemblyCompany("")]
13+
[assembly: AssemblyProduct("Syncfusion Essential Studio")]
14+
[assembly: AssemblyCopyright("Copyright (c) 2001-2016 Syncfusion, Inc.")]
15+
[assembly: AssemblyTrademark("")]
16+
[assembly: AssemblyCulture("")]
17+
18+
// Setting ComVisible to false makes the types in this assembly not visible
19+
// to COM components. If you need to access a type in this assembly from
20+
// COM, set the ComVisible attribute to true on that type.
21+
[assembly: ComVisible(false)]
22+
23+
// The following GUID is for the ID of the typelib if this project is exposed to COM
24+
[assembly: Guid("2c5f3160-5a76-4ab2-b989-6f3a11a7a185")]
25+
26+
// Version information for an assembly consists of the following four values:
27+
//
28+
// Major Version
29+
// Minor Version
30+
// Build Number
31+
// Revision
32+
//
33+
// You can specify all the values or you can default the Build and Revision Numbers
34+
// by using the '*' as shown below:
35+
// [assembly: AssemblyVersion("1.0.*")]
36+
37+
38+
#if SyncfusionFramework4_6
39+
[assembly: AssemblyVersion("13.4460.0.53")]
40+
#elif SyncfusionFramework4_5_1
41+
[assembly: AssemblyVersion("13.4451.0.53")]
42+
#elif SyncfusionFramework4_5
43+
[assembly: AssemblyVersion("13.4450.0.53")]
44+
#elif SyncfusionFramework4_0
45+
[assembly: AssemblyVersion("13.4400.0.53")]
46+
#else
47+
[assembly: AssemblyVersion("8.104.0.30")]
48+
#endif
49+
50+
#pragma warning disable 1699 // disable warning for "Use command line option '/keyfile' ...
51+
52+
[assembly: AssemblyDelaySign(false)]
53+
[assembly: AssemblyKeyFile(@"Key\TestServiceKey.snk")]
54+
55+
[assembly: XmlnsPrefix("http://schemas.syncfusion.com/wpf", "syncfusion")]
56+
[assembly: XmlnsDefinition("http://schemas.syncfusion.com/wpf", "Syncfusion.UITest.GridCommunication")]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
namespace Syncfusion.UITest.GridCommunication
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Windows;
8+
using System.Runtime.Remoting.Channels;
9+
using System.Runtime.Remoting;
10+
using System.Runtime.Remoting.Channels.Ipc;
11+
12+
public class GridControlTestApplication : Application
13+
{
14+
private IChannel channel;
15+
16+
protected override void OnStartup(StartupEventArgs e)
17+
{
18+
base.OnStartup(e);
19+
this.channel = new IpcChannel("GridControl");
20+
ChannelServices.RegisterChannel(this.channel, false);
21+
RemotingConfiguration.RegisterWellKnownServiceType(typeof(GridInteropService), "GridTestService", WellKnownObjectMode.Singleton);
22+
}
23+
24+
protected override void OnExit(ExitEventArgs e)
25+
{
26+
base.OnExit(e);
27+
if (this.channel != null)
28+
{
29+
ChannelServices.UnregisterChannel(this.channel);
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)