LeanFT with C#.net
LeanFT Introduction Supported applications Installation of LeanFT Installing the browser extensions Setting up LeanFT project in Visual Studio LeanFT Settings Types of Licenses in LeanFT Object identification center Understanding LeanFT API in C#.Net LeanFT plugin in Visual StudioAutomating windows application Running first test Integrating LeanFT with Visual Studio Unit testing framework Viewing the results of the test Description programming in LeanFT application models regular expressions in LeanFT Web application testing using LeanFT Identifying the elements using xpath and css Firing events Executing JavaScript Calculator automation using LeanFT Notepad Automation using LeanFT Automation of Java Applications Automation of SAP Applications Automation of .Net Applications Visual Relational Identifier Synchronization in LeanFT in C#.Net Assertions in LeanFT Generating reports with screenshots and recordings Converting UFT object repository into application model Keyword driven frameworks Data Driven Frameworks SpecFlowNative objects LeanFT common issues and solutions Comparison of LeanFT with Selenium and Ranorex Difference between HP UFT and LeanFT. LeanFT references and Resources for .NetSAP automation in leanft in C sharp
We can automate the SAP applications using LeanFT with the help of SAP add-ins. You need to ensure 2 things before you start the automation of SAP applications.

using Microsoft.VisualStudio.TestTools.UnitTesting;
using HP.LFT.SDK;
using System.Diagnostics;
using HP.LFT.SDK.SAP.UI5;
using HP.LFT.SDK.Web;
using System.Threading;
namespace LeanFtTestProject1
{
[TestClass]
public class SAPTest : UnitTestClassBase<NotepadTest>
{
[ClassInitialize]
public static void ClassInitialize(TestContext context)
{
GlobalSetup(context);
}
[TestInitialize]
public void TestInitialize()
{
}
[TestMethod]
public void TestMethod1()
{
IBrowser browser = BrowserFactory.Launch(BrowserType.InternetExplorer);
// Open SAP application from test page
browser.Navigate("https://sapui5.netweaver.ondemand.com/sdk/#test-resources/sap/ui/commons/ListBox.html");
browser.Sync();
Thread.Sleep(20000);
// Find the Edit box.
var editbox = browser.Describe<HP.LFT.SDK.SAP.UI5.IEditField>(new HP.LFT.SDK.SAP.UI5.EditFieldDescription
{
Id = @"txtFld"
});
// Enter the value in edit box
editbox.SetValue("LeanFT");
}
[TestCleanup]
public void TestCleanup()
{
}
[ClassCleanup]
public static void ClassCleanup()
{
GlobalTearDown();
}
}
}
Web development and Automation testing
solutions delivered!!