Best NBi code snippet using NBi.Core.ResultSet.Lookup.LookupExistsAnalyzer.Execute
LookupExistsAnalyzer.cs
Source:LookupExistsAnalyzer.cs
...16 public LookupExistsAnalyzer(ColumnMappingCollection keys)17 {18 Keys = keys;19 }20 public virtual LookupViolationCollection Execute(object candidate, object reference)21 {22 if (candidate is DataTable && reference is DataTable)23 return Execute((DataTable)candidate, (DataTable)reference);24 if (candidate is ResultSet && reference is ResultSet)25 return Execute(((ResultSet)candidate).Table, ((ResultSet)reference).Table);26 throw new ArgumentException();27 }28 protected virtual LookupViolationCollection Execute(DataTable candidate, DataTable reference)29 {30 var stopWatch = new Stopwatch();31 stopWatch.Start();32 var referenceKeyRetriever = BuildColumnsRetriever(Keys, x => x.ReferenceColumn);33 var references = BuildReferenceIndex(reference, referenceKeyRetriever);34 Trace.WriteLineIf(Extensibility.NBiTraceSwitch.TraceInfo, $"Building the index for keys from reference table containing {references.Count()} rows [{stopWatch.Elapsed:d'.'hh':'mm':'ss'.'fff'ms'}]");35 stopWatch.Restart();36 var candidateKeyBuilder = BuildColumnsRetriever(Keys, x => x.CandidateColumn);37 var violations = ExtractLookupViolation(candidate, candidateKeyBuilder, references);38 Trace.WriteLineIf(Extensibility.NBiTraceSwitch.TraceInfo, $"Analyzing potential lookup violations (based on keys) for the {candidate.Rows.Count} rows from candidate table [{stopWatch.Elapsed:d'.'hh':'mm':'ss'.'fff'ms'}]");39 return violations;40 }41 protected CellRetriever BuildColumnsRetriever(ColumnMappingCollection columns, Func<ColumnMapping, IColumnIdentifier> target)42 {...
LookupReverseExistsConstraintTest.cs
Source:LookupReverseExistsConstraintTest.cs
...15{16 public class LookupReverseExistsConstraintTest17 {18 [Test]19 public void Matches_ResultSetService_CallToExecuteOnce()20 {21 var candidate = new ResultSet();22 candidate.Load("a;b;1");23 var sutMock = new Mock<IResultSetService>();24 sutMock.Setup(s => s.Execute())25 .Returns(candidate);26 var candidateService = sutMock.Object;27 var assert = new ResultSet();28 assert.Load("a;b");29 var assertMock = new Mock<IResultSetService>();30 assertMock.Setup(s => s.Execute())31 .Returns(assert);32 var assertService = assertMock.Object;33 var mappings = new ColumnMappingCollection()34 {35 new ColumnMapping(new ColumnOrdinalIdentifier(0), ColumnType.Text),36 new ColumnMapping(new ColumnOrdinalIdentifier(1), ColumnType.Text),37 };38 var lookupExists = new LookupReverseExistsConstraint(candidateService);39 lookupExists = lookupExists.Using(mappings);40 //Method under test41 lookupExists.Matches(assertService);42 //Test conclusion 43 sutMock.Verify(s => s.Execute(), Times.Once());44 assertMock.Verify(s => s.Execute(), Times.Once());45 }46 [Test]47 public void Matches_LookupAnalyzer_CallToExecuteOnce()48 {49 var sut = new ResultSet();50 sut.Load("a;b;1");51 var sutMock = new Mock<IResultSetService>();52 sutMock.Setup(s => s.Execute())53 .Returns(sut);54 var sutService = sutMock.Object;55 var assert = new ResultSet();56 assert.Load("a;b");57 var assertMock = new Mock<IResultSetService>();58 assertMock.Setup(s => s.Execute())59 .Returns(assert);60 var assertService = assertMock.Object;61 var mappings = new ColumnMappingCollection()62 {63 new ColumnMapping(new ColumnOrdinalIdentifier(0), ColumnType.Text),64 new ColumnMapping(new ColumnOrdinalIdentifier(1), ColumnType.Text),65 };66 var lookupExists = new LookupReverseExistsConstraint(assertService);67 var analyzer = new Mock<LookupExistsAnalyzer>(mappings);68 analyzer.Setup(x => x.Execute(It.IsAny<ResultSet>(), It.IsAny<ResultSet>())).Returns(new LookupExistsViolationCollection(null));69 lookupExists.Engine = analyzer.Object;70 //Method under test71 lookupExists.Matches(sutService);72 //Test conclusion 73 analyzer.Verify(x => x.Execute(assert, sut), Times.Once());74 }75 }76}...
LookupExistsConstraintTest.cs
Source:LookupExistsConstraintTest.cs
...15{16 public class LookupExistsConstraintTest17 {18 [Test]19 public void Matches_ResultSetService_CallToExecuteOnce()20 {21 var sut = new ResultSet();22 sut.Load("a;b;1");23 var sutMock = new Mock<IResultSetService>();24 sutMock.Setup(s => s.Execute())25 .Returns(sut);26 var sutService = sutMock.Object;27 var assert = new ResultSet();28 assert.Load("a;b");29 var assertMock = new Mock<IResultSetService>();30 assertMock.Setup(s => s.Execute())31 .Returns(assert);32 var assertService = assertMock.Object;33 var mappings = new ColumnMappingCollection()34 {35 new ColumnMapping(new ColumnOrdinalIdentifier(0), ColumnType.Text),36 new ColumnMapping(new ColumnOrdinalIdentifier(1), ColumnType.Text),37 };38 var lookupExists = new LookupExistsConstraint(assertService);39 lookupExists = lookupExists.Using(mappings);40 //Method under test41 lookupExists.Matches(sutService);42 //Test conclusion 43 sutMock.Verify(s => s.Execute(), Times.Once());44 assertMock.Verify(s => s.Execute(), Times.Once());45 }46 [Test]47 public void Matches_ReferenceAnalyzer_CallToExecuteOnce()48 {49 var sut = new ResultSet();50 sut.Load("a;b;1");51 var sutMock = new Mock<IResultSetService>();52 sutMock.Setup(s => s.Execute())53 .Returns(sut);54 var sutService = sutMock.Object;55 var assert = new ResultSet();56 assert.Load("a;b");57 var assertMock = new Mock<IResultSetService>();58 assertMock.Setup(s => s.Execute())59 .Returns(assert);60 var assertService = assertMock.Object;61 var mappings = new ColumnMappingCollection()62 {63 new ColumnMapping(new ColumnOrdinalIdentifier(0), ColumnType.Text),64 new ColumnMapping(new ColumnOrdinalIdentifier(1), ColumnType.Text),65 };66 var lookupExists = new LookupExistsConstraint(assertService);67 var analyzer = new Mock<LookupExistsAnalyzer>(mappings);68 analyzer.Setup(x => x.Execute(It.IsAny<ResultSet>(), It.IsAny<ResultSet>())).Returns(new LookupExistsViolationCollection(null));69 lookupExists.Engine = analyzer.Object;70 //Method under test71 lookupExists.Matches(sutService);72 //Test conclusion 73 analyzer.Verify(x => x.Execute(sut, assert), Times.Once());74 }75 }76}...
Execute
Using AI Code Generation
1using System;2using System.Collections.Generic;3using System.Linq;4using System.Text;5using System.Threading.Tasks;6using NBi.Core;7using NBi.Core.ResultSet;8using NBi.Core.ResultSet.Lookup;9using NBi.Core.ResultSet.Comparer;10using NBi.Core.ResultSet.Resolver;11using NBi.Core.ResultSet.Resolver.File;12using NBi.Core.ResultSet.Resolver.Folder;13using NBi.Core.ResultSet.Resolver.Csv;14using NBi.Core.ResultSet.Resolver.Xml;15using NBi.Core.ResultSet.Resolver.Json;16using NBi.Core.ResultSet.Resolver.Oracle;17using NBi.Core.ResultSet.Resolver.SqlServer;18using NBi.Core.ResultSet.Resolver.Db2;19using NBi.Core.ResultSet.Resolver.SqLite;20using NBi.Core.ResultSet.Resolver.Csv;21using NBi.Core.ResultSet.Resolver.Csv.Multidimensional;22using NBi.Core.ResultSet.Resolver.Csv.Delimited;23using NBi.Core.ResultSet.Resolver.Csv.Tab;24using NBi.Core.ResultSet.Resolver.Csv.Semicolon;25using NBi.Core.ResultSet.Resolver.Csv.Comma;26using NBi.Core.ResultSet.Resolver.Csv.Colon;27using NBi.Core.ResultSet.Resolver.Csv.Pipe;28using NBi.Core.ResultSet.Resolver.Csv.Space;29using NBi.Core.ResultSet.Resolver.Csv.Tilde;30using NBi.Core.ResultSet.Resolver.Csv.Caret;31using NBi.Core.ResultSet.Resolver.Csv.Ascii;32using NBi.Core.ResultSet.Resolver.Csv.Unicode;33using NBi.Core.ResultSet.Resolver.Csv.NoHeader;34using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Multidimensional;35using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Delimited;36using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Tab;37using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Semicolon;38using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Comma;39using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Colon;40using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Pipe;41using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Space;42using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Tilde;43using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Caret;44using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Ascii;45using NBi.Core.ResultSet.Resolver.Csv.NoHeader.Unicode;46using NBi.Core.ResultSet.Resolver.Csv.Header;
Execute
Using AI Code Generation
1using NBi.Core;2using NBi.Core.ResultSet;3using NBi.Core.ResultSet.Lookup;4using NBi.Core.Query;5using NBi.Core.Query.Command;6using NBi.Core.Query.Client;7using NBi.Core.Query.Resolver;8using NBi.Core.Query.Resolver.Csv;9using NBi.Core.Query.Resolver.File;10using NBi.Core.Query.Resolver.Folder;11using NBi.Core.Query.Resolver.Oracle;12using NBi.Core.Query.Resolver.Presto;13using NBi.Core.Query.Resolver.SqlServer;14using NBi.Core.Query.Resolver.Xml;15using NBi.Core.Transformation;16using NBi.Core.Transformation.Transformer.Native;17using NBi.Core.Variable;18using NBi.Extensibility.Resolving;19using NBi.NUnit.Query;20using NBi.Xml;21using NBi.Xml.Constraints;22using NBi.Xml.Items;23using NBi.Xml.Items.Calculation;24using NBi.Xml.Items.ResultSet;25using NBi.Xml.Settings;26using NBi.Xml.Systems;27using NUnit.Framework;28using System;29using System.Collections.Generic;30using System.Data;31using System.Linq;32using System.Text;33using System.Threading.Tasks;34{35 {36 public void Execute_WithValidQueryAndExistingRows_ReturnsTrue()37 {38 var lookup = new LookupXml()39 {40 ResultSet = new ResultSetXml()41 {42 Columns = new List<ColumnDefinitionXml>()43 {44 new ColumnDefinitionXml() {Identifier="Id", Type=NBi.Xml.Settings.DataType.Numeric},45 new ColumnDefinitionXml() {Identifier="Name", Type=NBi.Xml.Settings.DataType.Text}46 },47 Rows = new List<RowXml>()48 {49 new RowXml() {Cells = new List<CellXml>() {new CellXml() {Value="1"}, new CellXml() {Value="Name1"}}},50 new RowXml() {Cells = new List<CellXml>() {new CellXml() {Value="2"}, new CellXml() {Value="Name2"}}},51 new RowXml() {Cells = new List<CellXml>() {new CellXml() {Value="3"}, new CellXml() {Value="Name3"}}},52 new RowXml() {Cells = new List<CellXml>() {new CellXml() {Value="4"}, new CellXml() {Value="Name4"}}}
Execute
Using AI Code Generation
1using System;2using System.Data;3using System.Collections.Generic;4using NBi.Core;5using NBi.Core.ResultSet.Lookup;6using NBi.Core.ResultSet;7using NBi.Core.Injection;8using NBi.Core.Query;9using NBi.Core.Query.Resolver;10using NBi.Core.Query.Command;11using NBi.Core.Query.Client;12using NBi.Core.Query.Client.SqlClient;13using NBi.Core.Query.Client.Odbc;14using NBi.Core.Query.Client.OleDb;15using NBi.Core.Query.Client.Oracle;16using NBi.Core.Query.Client.Ado;17using NBi.Core.Query.Client.Presto;18using NBi.Core.Query.Client.SqLite;19using NBi.Core.Query.Client.MySql;20using NBi.Core.Query.Client.BigQuery;21using NBi.Core.Query.Client.Snowflake;22using NBi.Core.Query.Client.Redshift;23using NBi.Core.Query.Client.Postgres;24using NBi.Core.Query.Client.Athena;25using NBi.Core.Query.Client.SapHana;26using NBi.Core.Query.Client.Pyodbc;27using NBi.Core.Query.Client.PyodbcHive;28using NBi.Core.Query.Client.PyodbcPresto;29using NBi.Core.Query.Client.PyodbcTeradata;30using NBi.Core.Query.Client.PyodbcVertica;31using NBi.Core.Query.Client.PyodbcRedshift;32using NBi.Core.Query.Client.PyodbcSnowflake;33using NBi.Core.Query.Client.PyodbcMySql;34using NBi.Core.Query.Client.PyodbcPostgres;35using NBi.Core.Query.Client.PyodbcAthena;36using NBi.Core.Query.Client.PyodbcSapHana;37using NBi.Core.Query.Client.PyodbcDb2;38using NBi.Core.Query.Client.PyodbcSqlServer;39using NBi.Core.Query.Client.PyodbcOracle;40using NBi.Core.Query.Client.PyodbcInformix;41using NBi.Core.Query.Client.PyodbcOdbc;42using NBi.Core.Query.Client.PyodbcOleDb;43using NBi.Core.Query.Client.PyodbcAccess;44using NBi.Core.Query.Client.PyodbcSapBw;45using NBi.Core.Query.Client.PyodbcSapBw4Hana;46using NBi.Core.Query.Client.PyodbcSapHanaBw;
Execute
Using AI Code Generation
1using NBi.Core.ResultSet;2using NBi.Core.ResultSet.Lookup;3using NBi.Core.ResultSet.Resolver;4using NBi.Core.Calculation;5using NBi.Core.Calculation.Predicate;6using System.Data;7using NBi.Core.Calculation.Grouping;8using NBi.Core.Sequence.Resolver;9using NBi.Core.Sequence;10using NBi.Core.Calculation.Ranking;11using NBi.Core.Calculation.Ranking.Percentile;12using NBi.Core.Calculation.Ranking.TopBottom;13using NBi.Core.Calculation.Ranking.Quantile;14using NBi.Core.Calculation.Ranking.Aggregation;15using NBi.Core.Calculation.Ranking.Stratification;16using NBi.Core.Calculation.Ranking.Combination;17using NBi.Core.Calculation.Ranking.Calculation;18using System.Collections.Generic;19using NBi.Core.ResultSet.Lookup.Violation;20using NBi.Core.ResultSet.Lookup.Strategies;21using NBi.Core.ResultSet.Lookup.Scalar;22using NBi.Core.ResultSet.Lookup.Scalar.Strategies;23using System;24{25 {26 public static LookupExistsAnalyzer LookupExistsAnalyzer()27 {28 return new LookupExistsAnalyzer();29 }30 }31}32using NBi.Core;33using NBi.Core.ResultSet;34using NBi.Core.ResultSet.Lookup;35using NBi.Core.ResultSet.Resolver;36using NBi.Core.Calculation;37using NBi.Core.Calculation.Predicate;38using System.Data;39using NBi.Core.Calculation.Grouping;40using NBi.Core.Sequence.Resolver;41using NBi.Core.Sequence;42using NBi.Core.Calculation.Ranking;43using NBi.Core.Calculation.Ranking.Percentile;44using NBi.Core.Calculation.Ranking.TopBottom;45using NBi.Core.Calculation.Ranking.Quantile;46using NBi.Core.Calculation.Ranking.Aggregation;47using NBi.Core.Calculation.Ranking.Stratification;48using NBi.Core.Calculation.Ranking.Combination;49using NBi.Core.Calculation.Ranking.Calculation;50using System.Collections.Generic;51using NBi.Core.ResultSet.Lookup.Violation;52using NBi.Core.ResultSet.Lookup.Strategies;53using NBi.Core.ResultSet.Lookup.Scalar;54using NBi.Core.ResultSet.Lookup.Scalar.Strategies;55using System;56{
Execute
Using AI Code Generation
1using System;2using System.Data;3using System.Data.SqlClient;4using NBi.Core.ResultSet.Lookup;5using NBi.Core.ResultSet;6using NBi.Core.Injection;7using NBi.Core;8using NBi.Core.ResultSet.Resolver;9using NBi.Core.ResultSet.Resolver.Fake;10using NBi.Core.Calculation;11using NBi.Core.Calculation.Predicate;12using NBi.Core.Calculation.Predicate.Boolean;13using NBi.Core.Calculation.Grouping;14{15 {16 static void Main(string[] args)17 {18 string connectionString = "Data Source=.;Initial Catalog=AdventureWorks2012;Integrated Security=True;";19 string queryString = "SELECT * FROM Person.Contact";20 using (SqlConnection connection = new SqlConnection(connectionString))21 {22 DataSet ds = new DataSet();23 SqlDataAdapter adapter = new SqlDataAdapter(queryString, connection);24 adapter.Fill(ds, "Person.Contact");25 DataTableReader reader = ds.CreateDataReader();26 ResultSet rs = new ResultSet();27 rs.Load(reader);28 ResultSet rs2 = new ResultSet();29 rs2.Load(reader);30 ResultSetService service = new ResultSetService();31 ResultSetComparer comparer = new ResultSetComparer();32 ResultSetComparisonSettings settings = new ResultSetComparisonSettings();33 ResultSetComparisonResult result = new ResultSetComparisonResult();34 ResultSetComparisonArgs args1 = new ResultSetComparisonArgs(rs, rs2, comparer, settings, result);35 ResultSetComparisonArgs args2 = new ResultSetComparisonArgs(rs, rs2, comparer, settings, result);36 ResultSetComparisonArgs args3 = new ResultSetComparisonArgs(rs, rs2, comparer, settings, result);37 ResultSetComparisonArgs args4 = new ResultSetComparisonArgs(rs
Execute
Using AI Code Generation
1using System;2using System.Data;3using System.Data.SqlClient;4using NBi.Core.ResultSet;5using NBi.Core.ResultSet.Lookup;6{7 {8 public bool Execute(DataTable x, DataTable y)9 {10 return true;11 }12 }13}14using System;15using System.Data;16using System.Data.SqlClient;17using NBi.Core.ResultSet;18using NBi.Core.ResultSet.Lookup;19{20 {21 public bool Execute(DataTable x, DataTable y)22 {23 return false;24 }25 }26}27using System;28using System.Data;29using System.Data.SqlClient;30using NBi.Core.ResultSet;31using NBi.Core.ResultSet.Lookup;32{33 {34 public bool Execute(DataTable x, DataTable y)35 {36 return true;37 }38 }39}40using System;41using System.Data;42using System.Data.SqlClient;43using NBi.Core.ResultSet;44using NBi.Core.ResultSet.Lookup;45{46 {47 public bool Execute(DataTable x, DataTable y)48 {49 return false;50 }51 }52}53using System;54using System.Data;55using System.Data.SqlClient;56using NBi.Core.ResultSet;57using NBi.Core.ResultSet.Lookup;58{59 {60 public bool Execute(DataTable x, DataTable y)61 {62 return true;63 }64 }65}66using System;67using System.Data;68using System.Data.SqlClient;69using NBi.Core.ResultSet;70using NBi.Core.ResultSet.Lookup;71{72 {73 public bool Execute(DataTable x, DataTable y)74 {
Execute
Using AI Code Generation
1using NBi.Core.ResultSet;2using NBi.Core.ResultSet.Lookup;3using System.Data;4var analyzer = new LookupExistsAnalyzer();5var result = analyzer.Execute(new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new LookupDefinition("col1", "col2", "col3"));6Console.WriteLine(result);7using NBi.Core.ResultSet;8using NBi.Core.ResultSet.Lookup;9using System.Data;10var analyzer = new LookupExistsAnalyzer();11var result = analyzer.Execute(new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new LookupDefinition("col1", "col2", "col3"), new LookupDefinition("col4", "col5", "col6"));12Console.WriteLine(result);13using NBi.Core.ResultSet;14using NBi.Core.ResultSet.Lookup;15using System.Data;16var analyzer = new LookupExistsAnalyzer();17var result = analyzer.Execute(new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new LookupDefinition("col1", "col2", "col3"), new LookupDefinition("col4", "col5", "col6"), new LookupDefinition("col7", "col8", "col9"));18Console.WriteLine(result);19using NBi.Core.ResultSet;20using NBi.Core.ResultSet.Lookup;21using System.Data;22var analyzer = new LookupExistsAnalyzer();23var result = analyzer.Execute(new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new ResultSet(ResultSet.Read(@"C:\path\to\file.csv")), new LookupDefinition("col1", "col2", "col3"), new LookupDefinition("col4", "col5", "col6"), new LookupDefinition("col7", "col8", "col9"), new LookupDefinition("col10", "col11", "col12"));24Console.WriteLine(result);
Execute
Using AI Code Generation
1var rs = new ResultSet();2rs.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");3var lookup = new ResultSet();4lookup.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");5var analyzer = new LookupExistsAnalyzer(rs, lookup);6var result = analyzer.Execute();7Console.WriteLine(result);8var rs = new ResultSet();9rs.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");10var lookup = new ResultSet();11lookup.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");12var analyzer = new LookupExistsAnalyzer(rs, lookup);13var result = analyzer.Execute();14Console.WriteLine(result);15var rs = new ResultSet();16rs.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");17var lookup = new ResultSet();18lookup.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");19var analyzer = new LookupExistsAnalyzer(rs, lookup);20var result = analyzer.Execute();21Console.WriteLine(result);22var rs = new ResultSet();23rs.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");24var lookup = new ResultSet();25lookup.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");26var analyzer = new LookupExistsAnalyzer(rs, lookup);27var result = analyzer.Execute();28Console.WriteLine(result);29var rs = new ResultSet();30rs.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");31var lookup = new ResultSet();32lookup.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");33var analyzer = new LookupExistsAnalyzer(rs, lookup);34var result = analyzer.Execute();35Console.WriteLine(result);36var rs = new ResultSet();37rs.LoadCsv("C:\\Users\\nbishop\\Desktop\\lookup\\lookup.csv");38var lookup = new ResultSet();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!