Best Testsigma code snippet using com.testsigma.specification.TestDataProfileSpecificationsBuilder
Source:TestDataProfileService.java
...16import com.testsigma.model.TestData;17import com.testsigma.repository.TestDataProfileRepository;18import com.testsigma.specification.SearchCriteria;19import com.testsigma.specification.SearchOperation;20import com.testsigma.specification.TestDataProfileSpecificationsBuilder;21import lombok.RequiredArgsConstructor;22import lombok.extern.log4j.Log4j2;23import org.springframework.beans.factory.annotation.Autowired;24import org.springframework.context.ApplicationEventPublisher;25import org.springframework.dao.DataIntegrityViolationException;26import org.springframework.data.domain.Page;27import org.springframework.data.domain.PageRequest;28import org.springframework.data.domain.Pageable;29import org.springframework.data.jpa.domain.Specification;30import org.springframework.http.HttpStatus;31import org.springframework.stereotype.Service;32import org.springframework.web.server.ResponseStatusException;33import java.io.IOException;34import java.util.ArrayList;35import java.util.List;36import java.util.Map;37@Service38@RequiredArgsConstructor(onConstructor = @__(@Autowired))39@Log4j240public class TestDataProfileService extends XMLExportService<TestData> {41 private final TestDataProfileRepository testDataProfileRepository;42 private final ApplicationEventPublisher applicationEventPublisher;43 private final TestDataProfileMapper mapper;44 public TestData find(Long id) throws ResourceNotFoundException {45 return testDataProfileRepository.findById(id)46 .orElseThrow(() -> new ResourceNotFoundException("Test Data Not Found with id: " + id));47 }48 public TestData findTestDataByTestCaseId(Long testCaseId) throws ResourceNotFoundException {49 return testDataProfileRepository.findTestDataByTestCaseId(testCaseId).orElseThrow(() -> new ResourceNotFoundException(50 "Test Data Not Found with testCaseId: " + testCaseId));51 }52 public Page<TestData> findAll(Specification<TestData> spec, Pageable pageable) {53 return this.testDataProfileRepository.findAll(spec, pageable);54 }55 public List<TestData> findAllByVersionId(Long workspaceVersionId) {56 return this.testDataProfileRepository.findAllByVersionId(workspaceVersionId);57 }58 public TestData create(TestData testData) {59 testData = this.testDataProfileRepository.save(testData);60 publishEvent(testData, EventType.CREATE);61 return testData;62 }63 public TestData update(TestData testData) {64 Map<String, String> renamedColumns = testData.getRenamedColumns();65 testData = testDataProfileRepository.save(testData);66 testData.setRenamedColumns(renamedColumns);67 publishEvent(testData, EventType.UPDATE);68 return testData;69 }70 public void destroy(Long id) throws ResourceNotFoundException {71 TestData testData = this.find(id);72 Long count = testDataProfileRepository.countAllTestDataProfilesUsedInForLoopSteps(testData.getVersionId(),id);73 if (count > 0) throw new DataIntegrityViolationException("Cannot delete or update a parent row");74 this.testDataProfileRepository.delete(testData);75 publishEvent(testData, EventType.DELETE);76 }77 public void bulkDestroy(Long[] ids) throws Exception {78 Boolean allIdsDeleted = true;79 Exception throwable = new Exception();80 for (Long id : ids) {81 try {82 destroy(id);83 } catch (Exception ex) {84 allIdsDeleted = false;85 throwable = ex;86 }87 }88 if (!allIdsDeleted) {89 throw throwable;90 }91 }92 public void publishEvent(TestData testData, EventType eventType) {93 TestDataEvent<TestData> event = createEvent(testData, eventType);94 log.info("Publishing event - " + event.toString());95 applicationEventPublisher.publishEvent(event);96 }97 public TestDataEvent<TestData> createEvent(TestData testData, EventType eventType) {98 TestDataEvent<TestData> event = new TestDataEvent<>();99 event.setEventData(testData);100 event.setEventType(eventType);101 return event;102 }103 public void export(BackupDTO backupDTO) throws IOException, ResourceNotFoundException {104 if (!backupDTO.getIsTestDataEnabled()) return;105 log.debug("backup process for test data initiated");106 writeXML("test_data", backupDTO, PageRequest.of(0, 25));107 log.debug("backup process for test data completed");108 }109 @Override110 protected List<TestDataXMLDTO> mapToXMLDTOList(List<TestData> list) {111 return mapper.mapTestData(list);112 }113 public Specification<TestData> getExportXmlSpecification(BackupDTO backupDTO) {114 SearchCriteria criteria = new SearchCriteria("versionId", SearchOperation.EQUALITY, backupDTO.getWorkspaceVersionId());115 List<SearchCriteria> params = new ArrayList<>();116 params.add(criteria);117 TestDataProfileSpecificationsBuilder testDataProfileSpecificationsBuilder = new TestDataProfileSpecificationsBuilder();118 testDataProfileSpecificationsBuilder.params = params;119 return testDataProfileSpecificationsBuilder.build();120 }121}...
Source:TestDataProfileSpecificationsBuilder.java
...11import com.testsigma.model.TestDataFilter;12import org.springframework.data.jpa.domain.Specification;13import java.util.ArrayList;14import java.util.List;15public class TestDataProfileSpecificationsBuilder extends BaseSpecificationsBuilder {16 private Specification<TestData> result;17 public TestDataProfileSpecificationsBuilder() {18 super(new ArrayList<>());19 }20 public Specification<TestData> build() {21 if (params.size() == 0) {22 return null;23 }24 result = new TestDataProfileSpecification(params.get(0));25 params.forEach((searchCriteria) -> result =26 Specification.where(result).and(new TestDataProfileSpecification(searchCriteria)));27 return result;28 }29 public Specification<TestData> build(TestDataFilter testDataFilter, WorkspaceVersion version) {30 if (testDataFilter.getSearchCriteria().size() == 0) {31 return null;...
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1import com.testsigma.specification.TestDataProfileSpecificationsBuilder;2import com.testsigma.specification.TestDataProfileSpecificationsBuilder;3import java.util.List;4import org.openqa.selenium.By;5import org.openqa.selenium.WebDriver;6import org.openqa.selenium.WebElement;7import org.openqa.selenium.chrome.ChromeDriver;8import org.testng.Assert;9import org.testng.annotations.Test;10public class TestClass {11 public void test() {12 WebDriver driver = new ChromeDriver();13 Assert.assertTrue(elements.size() > 0);14 driver.quit();15 }16}17import com.testsigma.specification.TestSpecification;18import com.testsigma.specification.TestSpecification;19import java.util.List;20import org.openqa.selenium.By;21import org.openqa.selenium.WebDriver;22import org.openqa.selenium.WebElement;23import org.openqa.selenium.chrome.ChromeDriver;24import org.testng.Assert;25import org.testng.annotations.Test;26public class TestClass {27 public void test() {28 WebDriver driver = new ChromeDriver();29 Assert.assertTrue(elements.size() > 0);30 driver.quit();31 }32}33import com.testsigma.specification.TestSpecificationBuilder;34import com.testsigma.specification.TestSpecificationBuilder;35import java.util.List;36import org.openqa.selenium.By;37import org.openqa.selenium.WebDriver;38import org.openqa.selenium.WebElement;39import org.openqa.selenium.chrome.ChromeDriver;40import org.testng.Assert;41import org.testng.annotations.Test;42public class TestClass {43 public void test() {44 WebDriver driver = new ChromeDriver();45 Assert.assertTrue(elements.size() > 0);46 driver.quit();47 }48}49import com.testsigma.specification.TestSpecificationBuilder;50import com.testsigma.specification.TestSpecificationBuilder;51import java.util.List;52import org.openqa.selenium.By;53import org.openqa.selenium.WebDriver;54import org.openqa.selenium.WebElement;55import org.openqa.selenium.chrome.ChromeDriver
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1import org.testng.annotations.Test;2import com.testsigma.specification.TestDataProfileSpecificationsBuilder;3import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications;4import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification;5import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField;6import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation;7import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType;8import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType.TestDataProfileFieldValidationTypeItem;9import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType.TestDataProfileFieldValidationTypeItem.TestDataProfileFieldValidationTypeItemData;10import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType.TestDataProfileFieldValidationTypeItem.TestDataProfileFieldValidationTypeItemData.TestDataProfileFieldValidationTypeItemDataItem;11import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType.TestDataProfileFieldValidationTypeItem.TestDataProfileFieldValidationTypeItemData.TestDataProfileFieldValidationTypeItemDataItem.TestDataProfileFieldValidationTypeItemDataItemData;12import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType.TestDataProfileFieldValidationTypeItem.TestDataProfileFieldValidationTypeItemData.TestDataProfileFieldValidationTypeItemDataItem.TestDataProfileFieldValidationTypeItemDataItemData.TestDataProfileFieldValidationTypeItemDataItemDataItem;13import com.testsigma.specification.TestDataProfileSpecificationsBuilder.TestDataProfileSpecifications.TestDataProfileSpecification.TestDataProfileField.TestDataProfileFieldValidation.TestDataProfileFieldValidationType.TestDataProfileFieldValidationTypeItem.TestDataProfileFieldValidationTypeItemData.TestDataProfileFieldValidationTypeItem
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1import com.testsigma.specification.TestDataProfileSpecificationsBuilder;2import com.testsigma.specification.TestDataProfileSpecification;3import com.testsigma.specification.TestDataProfile;4import com.testsigma.specification.TestDataProfileField;5import com.testsigma.specification.TestDataProfileFieldSpecification;6import com.testsigma.specification.TestDataProfileFieldSpecificationsBuilder;7import java.util.ArrayList;8import java.util.List;9import java.util.Map;10import java.util.HashMap;11public class 2 {12public static void main(String args[]) {13TestDataProfileFieldSpecificationsBuilder fieldSpecBuilder = new TestDataProfileFieldSpecificationsBuilder();14fieldSpecBuilder.addSpecification("field1", "field1", "field1", "field1", "field1", "field1", "field1");15fieldSpecBuilder.addSpecification("field2", "field2", "field2", "field2", "field2", "field2", "field2");16fieldSpecBuilder.addSpecification("field3", "field3", "field3", "field3", "field3", "field3", "field3");17fieldSpecBuilder.addSpecification("field4", "field4", "field4", "field4", "field4", "field4", "field4");18fieldSpecBuilder.addSpecification("field5", "field5", "field5", "field5", "field5", "field5", "field5");19fieldSpecBuilder.addSpecification("field6", "field6", "field6", "field6", "field6", "field6", "field6");20fieldSpecBuilder.addSpecification("field7", "field7", "field7", "field7", "field7", "field7", "field7");21fieldSpecBuilder.addSpecification("field8", "field8", "field8", "field8", "field8", "field8", "field8");22fieldSpecBuilder.addSpecification("field9", "field9", "field9", "field9", "field9", "field9", "field9");23fieldSpecBuilder.addSpecification("field10", "field10", "field10", "field10", "field10", "field10", "field10");24fieldSpecBuilder.addSpecification("field11", "field11", "field11", "field11", "field11", "field11", "field11");
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1import java.io.File;2import java.io.IOException;3import java.util.List;4import java.util.Map;5import org.testng.annotations.Test;6import com.testsigma.specification.TestDataProfileSpecificationsBuilder;7import com.testsigma.specification.TestDataProfileSpecificationsBuilderImpl;8import com.testsigma.specification.TestDataProfileSpecificationsBuilderImpl.TestDataProfileSpecification;9public class 2 {10 public void test() throws IOException {11 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilderImpl();12 List<TestDataProfileSpecification> specs = builder.getSpecifications(new File("C:\\Users\\selenium\\Desktop\\TestDataProfileSpecifications.xlsx"));13 System.out.println(specs);14 }15}16import java.io.File;17import java.io.IOException;18import java.util.List;19import java.util.Map;20import org.testng.annotations.Test;21import com.testsigma.specification.TestDataProfileSpecificationsBuilder;22import com.testsigma.specification.TestDataProfileSpecificationsBuilderImpl;23import com.testsigma.specification.TestDataProfileSpecificationsBuilderImpl.TestDataProfileSpecification;24public class 3 {25 public void test() throws IOException {26 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilderImpl();27 List<TestDataProfileSpecification> specs = builder.getSpecifications(new File("C:\\Users\\selenium\\Desktop\\TestDataProfileSpecifications.xlsx"));28 System.out.println(specs);29 }30}31import java.io.File;32import java.io.IOException;33import java.util.List;34import java.util.Map;35import org.testng.annotations.Test;36import com.testsigma.specification.TestDataProfileSpecificationsBuilder;37import com.testsigma.specification.TestDataProfileSpecificationsBuilderImpl;38import com.testsigma.specification.TestDataProfileSpecificationsBuilderImpl.TestDataProfileSpecification;39public class 4 {40 public void test() throws IOException {41 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilderImpl();42 List<TestDataProfileSpecification> specs = builder.getSpecifications(new File("C:\\Users\\selenium\\Desktop\\TestDataProfileSpecifications.xlsx"));43 System.out.println(specs);44 }45}46import java.io.File;47import java.io.IOException
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1import com.testsigma.specification.TestDataProfileSpecificationsBuilder;2import com.testsigma.specification.TestDataProfile;3import com.testsigma.specification.TestDataProfileSpecification;4import java.util.List;5import java.util.stream.Collectors;6import java.util.stream.Stream;7import java.util.ArrayList;8import java.util.Arrays;9import java.util.HashMap;10import java.util.Map;11import java.util.Set;12import java.util.HashSet;13import java.util.List;14import java.util.stream.Collectors;15import java.util.stream.Stream;16import java.util.ArrayList;17import java.util.Arrays;18import java.util.HashMap;19import java.util.Map;20import java.util.Set;21import java.util.HashSet;22import java.util.List;23import java.util.stream.Collectors;24import java.util.stream.Stream;25import java.util.ArrayList;26import java.util.Arrays;27import java.util.HashMap;28import java.util.Map;29import java.util.Set;30import java.util.HashSet;31import java.util.List;32import java.util.stream.Collectors;33import java.util.stream.Stream;34import java.util.ArrayList;35import java.util.Arrays;36import java.util.HashMap;37import java.util.Map;38import java.util.Set;39import java.util.HashSet;40import java.util.List;41import java.util.stream.Collectors;42import java.util.stream.Stream;43import java.util.ArrayList;44import java.util.Arrays;45import java.util.HashMap;46import java.util.Map;47import java.util.Set;48import java.util.HashSet;49import java.util.List;50import java.util.stream.Collectors;51import java.util.stream.Stream;52import java.util.ArrayList;53import java.util.Arrays;54import java.util.HashMap;55import java.util.Map;56import java.util.Set;57import java.util.HashSet;58import java.util.List;59import java.util.stream.Collectors;60import java.util.stream.Stream;61import java.util.ArrayList;62import java.util.Arrays;63import java.util.HashMap;64import java.util.Map;65import java.util.Set;66import java.util.HashSet;67import java.util.List;68import java.util.stream.Collectors;69import java.util.stream.Stream;70import java.util.ArrayList;71import java.util.Arrays;72import java.util.HashMap;73import java.util.Map;74import java.util.Set;75import java.util.HashSet;76import java.util.List;77import java.util.stream.Collectors;78import java.util.stream.Stream;79import java.util.ArrayList;80import java.util.Arrays;81import java.util.HashMap;82import java.util.Map;83import java.util.Set;84import java.util.HashSet;85import java.util.List;86import java.util.stream.Collectors;87import java.util.stream.Stream;88import java.util.ArrayList;89import java.util.Arrays;90import java.util.HashMap;91import java.util.Map;92import java.util.Set;
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1package com.testsigma.specification;2import org.testng.annotations.Test;3import com.testsigma.testdata.TestDataProfileSpecificationsBuilder;4public class TestDataProfileSpecificationsBuilderTest {5 public void test() {6 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();7 builder.add("name", "test");8 builder.add("age", "30");9 builder.add("email", "
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1package com.testsigma.specification;2import java.io.File;3import java.io.IOException;4import java.util.ArrayList;5import java.util.List;6import org.apache.commons.io.FileUtils;7import com.testsigma.data.TestDataProfile;8import com.testsigma.data.TestDataProfileSpecificationsBuilder;9public class TestSpecification {10 public static void main(String[] args) throws IOException {11 File file = new File("C:\\Users\\Sandeep\\Desktop\\TestDataProfile.xlsx");12 byte[] fileContent = FileUtils.readFileToByteArray(file);13 TestDataProfileSpecificationsBuilder testDataProfileSpecificationsBuilder = new TestDataProfileSpecificationsBuilder();14 TestDataProfile testDataProfile = testDataProfileSpecificationsBuilder.buildSpecification(fileContent);15 System.out.println(testDataProfile.getProfileName());16 System.out.println(testDataProfile.getProfileDescription());17 System.out.println(testDataProfile.getProfileVersion());18 System.out.println(testDataProfile.getProfileAuthor());19 System.out.println(testDataProfile.getProfileCreationDate());20 System.out.println(testDataProfile.getProfileLastModifiedDate());21 System.out.println(testDataProfile.getProfileLastModifiedBy());22 System.out.println(testDataProfile.getProfileTags());23 System.out.println(testDataProfile.getProfileTestCases().size());24 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseId());25 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseName());26 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseDescription());27 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().size());28 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().get(0).getAction());29 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().get(0).getExpectedResult());30 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().get(0).getStepId());31 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().get(0).getStepName());32 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().get(0).getStepDescription());33 System.out.println(testDataProfile.getProfileTestCases().get(0).getTestCaseSteps().get(0).getStepData().size());
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1public class TestSpecificationBuilderTest {2 private static TestDataProfileSpecificationsBuilder builder;3 private static TestDataProfileSpecification specification;4 private static TestDataProfile profile;5 public static void setUp() {6 builder = new TestDataProfileSpecificationsBuilder();7 specification = builder.with("name").contains("test").and("age").isGreaterThanOrEqualTo(10).build();8 profile = new TestDataProfile();9 profile.put("name", "testsigma");10 profile.put("age", 10);11 }12 public void testSpecification() {13 Assert.assertTrue(specification.isSatisfiedBy(profile));14 }15}16public class TestSpecificationBuilderTest {17 private static TestSpecificationBuilder builder;18 private static TestSpecification specification;19 private static TestDataProfile profile;20 public static void setUp() {21 builder = new TestSpecificationBuilder();22 specification = builder.with("name").contains("test").and("age").isGreaterThanOrEqualTo(10).build();23 profile = new TestDataProfile();24 profile.put("name", "testsigma");25 profile.put("age", 10);26 }27 public void testSpecification() {28 Assert.assertTrue(specification.isSatisfiedBy(profile));29 }30}31public class TestSpecificationBuilderTest {32 private static TestSpecificationBuilder builder;33 private static TestSpecification specification;34 private static TestDataProfile profile;35 public static void setUp() {36 builder = new TestSpecificationBuilder();37 specification = builder.with("name").contains("test").and("age").isGreaterThanOrEqualTo(10).build();38 profile = new TestDataProfile();39 profile.put("name", "testsigma");40 profile.put("age", 10);41 }42 public void testSpecification() {43 Assert.assertTrue(specification.isSatisfiedBy(profile));44 }45}46public class TestSpecificationBuilderTest {47 private static TestSpecificationBuilder builder;48 private static TestSpecification specification;49 private static TestDataProfile profile;50 public static void setUp() {
TestDataProfileSpecificationsBuilder
Using AI Code Generation
1import com.testsigma.specification.TestDataProfileSpecificationsBuilder;2public class TestClass {3 public void testMethod() {4 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();5 builder.withProfile("profileName").withSheet("sheetName").withData("dataName").build();6 }7}8import com.testsigma.specification.TestDataProfileSpecificationsBuilder;9public class TestClass {10 public void testMethod() {11 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();12 builder.withProfile("profileName").withSheet("sheetName").withData("dataName").build();13 }14}15import com.testsigma.specification.TestDataProfileSpecificationsBuilder;16public class TestClass {17 public void testMethod() {18 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();19 builder.withProfile("profileName").withSheet("sheetName").withData("dataName").build();20 }21}22import com.testsigma.specification.TestDataProfileSpecificationsBuilder;23public class TestClass {24 public void testMethod() {25 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();26 builder.withProfile("profileName").withSheet("sheetName").withData("dataName").build();27 }28}29import com.testsigma.specification.TestDataProfileSpecificationsBuilder;30public class TestClass {31 public void testMethod() {32 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();33 builder.withProfile("profileName").withSheet("sheetName").withData("dataName").build();34 }35}36import com.testsigma.specification.TestDataProfileSpecificationsBuilder;37public class TestClass {38 public void testMethod() {39 TestDataProfileSpecificationsBuilder builder = new TestDataProfileSpecificationsBuilder();40 builder.withProfile("profileName").withSheet("sheetName").withData("dataName").build();41 }42}
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!!