How to use SectionFilter class of com.galenframework.speclang2.pagespec package

Best Galen code snippet using com.galenframework.speclang2.pagespec.SectionFilter

Source:GalenSpecUtil.java Github

copy

Full Screen

...33import org.apache.commons.lang3.StringUtils;34import org.slf4j.Logger;35import org.slf4j.LoggerFactory;36import com.galenframework.reports.model.LayoutReport;37import com.galenframework.speclang2.pagespec.SectionFilter;38import com.galenframework.specs.page.Locator;39import com.galenframework.specs.page.PageSpec;40import com.google.common.collect.Lists;41import io.wcm.qa.glnm.exceptions.GaleniumException;42import io.wcm.qa.glnm.selectors.SelectorFromLocator;43import io.wcm.qa.glnm.selectors.base.NestedSelector;44/**45 * Utility methods for handling Galen specs.46 *47 * @since 4.0.048 */49final class GalenSpecUtil {50 private static final Logger LOG = LoggerFactory.getLogger(GalenSpecUtil.class);51 static final Map<String, Object> EMPTY_JS_VARS = null;52 static final Properties EMPTY_PROPERTIES = new Properties();53 private GalenSpecUtil() {54 // do not instantiate55 }56 static SectionFilter getSectionFilter(String... tags) {57 if (ArrayUtils.isEmpty(tags)) {58 return getDefaultIncludeTags();59 }60 SectionFilter sectionFilter = getDefaultIncludeTags();61 List<String> includedTags = sectionFilter.getIncludedTags();62 if (CollectionUtils.isEmpty(includedTags)) {63 sectionFilter.setIncludedTags(Arrays.asList(tags));64 } else {65 CollectionUtils.addAll(includedTags, tags);66 }67 return sectionFilter;68 }69 static GalenSpecRun createRun(GalenSpec spec, LayoutReport report) {70 return new GalenSpecRun(spec, report);71 }72 private static String cleanName(String name) {73 if (LOG.isDebugEnabled()) {74 LOG.debug("mapping '" + name + "'");75 }76 String[] nameParts = name.split("\\.");77 List<String> namePartList = new ArrayList<>();78 for (String namePart : nameParts) {79 if (namePart.matches(".*-[0-9][0-9]*")) {80 namePartList.add(namePart.replaceFirst("-[0-9][0-9]*$", ""));81 }82 else {83 namePartList.add(namePart);84 }85 }86 String cleanName = StringUtils.join(namePartList, ".");87 if (LOG.isDebugEnabled()) {88 LOG.debug("clean name for muliple object locator '" + cleanName + "'");89 }90 return cleanName;91 }92 private static List<String> emptyList() {93 return Lists.newArrayList();94 }95 private static SectionFilter emptySectionFilter() {96 return new SectionFilter(emptyList(), emptyList());97 }98 private static Collection<NestedSelector> extractCollectionFromMapping(Map<String, SelectorFromLocator> objectMapping) {99 Collection<NestedSelector> objects = new ArrayList<>();100 Collection<SelectorFromLocator> values = objectMapping.values();101 for (SelectorFromLocator selector : values) {102 if (LOG.isDebugEnabled()) {103 LOG.debug("checking " + selector);104 }105 if (selector.hasParent()) {106 if (LOG.isDebugEnabled()) {107 LOG.debug("has parent " + selector);108 }109 NestedSelector parent = selector.getParent();110 if (LOG.isDebugEnabled()) {111 LOG.debug("parentName: '" + parent.elementName() + "'");112 }113 String parentCss = parent.asString();114 if (LOG.isDebugEnabled()) {115 LOG.debug("parentCss: '" + parentCss + "'");116 }117 SelectorFromLocator trueParent = objectMapping.get(parentCss);118 if (trueParent == null) {119 throw new GaleniumException("parent for '" + selector.elementName() + "' not found in spec ('" + parentCss + "')");120 }121 selector.setParent(trueParent);122 trueParent.addChild(selector);123 }124 else if (LOG.isDebugEnabled()) {125 LOG.debug("no parent found.");126 }127 objects.add(selector);128 if (LOG.isDebugEnabled()) {129 LOG.debug("added: " + selector);130 }131 }132 return objects;133 }134 private static Map<String, SelectorFromLocator> getObjectMapping(PageSpec spec) {135 Map<String, SelectorFromLocator> objectMapping = new HashMap<String, SelectorFromLocator>();136 Map<String, Locator> objects = spec.getObjects();137 if (LOG.isDebugEnabled()) {138 LOG.debug("mapping " + objects.size() + " selector candidates.");139 }140 for (Entry<String, Locator> entry : objects.entrySet()) {141 String name = cleanName(entry.getKey());142 Locator locator = entry.getValue();143 SelectorFromLocator selector = fromLocator(name, locator);144 String asString = selector.asString();145 if (objectMapping.containsKey(asString)) {146 if (LOG.isInfoEnabled()) {147 LOG.info("duplicate object:" + selector + " == " + objectMapping.get(asString));148 }149 }150 else {151 objectMapping.put(asString, selector);152 if (LOG.isDebugEnabled()) {153 LOG.debug("mapped: " + selector);154 }155 }156 }157 if (LOG.isInfoEnabled()) {158 LOG.info("mapped " + objectMapping.size() + " selectors.");159 }160 return objectMapping;161 }162 /**163 * Get tags device as Galen {@link com.galenframework.speclang2.pagespec.SectionFilter}.164 * @param tagsForThisRun tags to use in filter165 * @return filter ready for use with Galen166 * @since 4.0.0167 */168 static SectionFilter asSectionFilter(List<String> tagsForThisRun) {169 List<String> tagList = new ArrayList<String>();170 if (ListUtils.emptyIfNull(tagList).isEmpty()) {171 return emptySectionFilter();172 }173 tagList.addAll(tagsForThisRun);174 return new SectionFilter(tagList, emptyList());175 }176 /**177 * Get tags from current device as Galen {@link com.galenframework.speclang2.pagespec.SectionFilter}. Empty filter178 * when no device set.179 *180 * @return filter ready for use with Galen181 * @since 4.0.0182 */183 static SectionFilter getDefaultIncludeTags() {184 return emptySectionFilter();185 }186 /**187 * Get objects from {@link com.galenframework.specs.page.PageSpec}.188 *189 * @param spec to extract objects from190 * @return selectors for all objects found in spec191 * @since 4.0.0192 */193 static Collection<NestedSelector> getObjects(PageSpec spec) {194 Map<String, SelectorFromLocator> objectMapping = getObjectMapping(spec);195 return extractCollectionFromMapping(objectMapping);196 }197}...

Full Screen

Full Screen

Source:GalenTestBase.java Github

copy

Full Screen

2import com.galenframework.api.Galen;3import com.galenframework.reports.GalenTestInfo;4import com.galenframework.reports.TestReport;5import com.galenframework.reports.model.LayoutReport;6import com.galenframework.speclang2.pagespec.SectionFilter;7import com.galenframework.support.GalenReportsContainer;8import com.galenframework.support.LayoutValidationException;9import com.galenframework.utils.GalenUtils;10import cucumber.api.Scenario;11import org.openqa.selenium.Dimension;12import org.openqa.selenium.WebDriver;13import java.io.IOException;14import java.lang.reflect.Method;15import java.util.List;16import java.util.Map;17import java.util.Properties;18public abstract class GalenTestBase extends Galen{19 protected ThreadLocal<WebDriver> driver = new ThreadLocal();20 protected ThreadLocal<TestReport> report = new ThreadLocal();21 protected ThreadLocal<GalenTestInfo> testInfo = new ThreadLocal();22 Scenario scenario;23 public GalenTestBase() {24 WebDriver driver=BrowserManager.driver;25 this.driver.set(driver);26 this.scenario=BrowserManager.scenario;27 }28 public void initDriver(Object[] args) {29 }30 public TestReport getReport() {31 TestReport report = this.report.get();32 if (report == null) {33 throw new RuntimeException("The report is not instantiated yet");34 } else {35 return report;36 }37 }38 public GalenTestInfo createTestInfo(Method method, Object[] arguments) {39 return GalenTestInfo.fromMethod(method, arguments);40 }41 public void load(String url) {42 this.getDriver().get(url);43 }44 public void load(String url, int width, int height) {45 this.load(url);46 this.resize(width, height);47 }48 public void resize(int width, int height) {49 this.getDriver().manage().window().setSize(new Dimension(width, height));50 }51 public void inject(String javaScript) {52 GalenUtils.injectJavascript(this.getDriver(), javaScript);53 }54 public void checkLayout(String spec, List<String> includedTags,String fileName) throws IOException {55 String title = "Layout Validated in page " +fileName ;56 this.initReport();57 LayoutReport layoutReport = Galen.checkLayout(this.getDriver(), spec,includedTags);58 this.getReport().layout(layoutReport, title);59 if (layoutReport.errors() > 0) {60 throw new LayoutValidationException(spec, layoutReport, null);61 }62 }63 public void checkLayout(String specPath, SectionFilter sectionFilter, Properties properties, Map<String, Object> vars) throws IOException {64 String title = "Check layout " + specPath;65 this.initReport();66 LayoutReport layoutReport = Galen.checkLayout(this.getDriver(), specPath, sectionFilter, properties, vars);67 this.getReport().layout(layoutReport, title);68 if (layoutReport.errors() > 0) {69 throw new LayoutValidationException(specPath, layoutReport, sectionFilter);70 }71 }72 public WebDriver getDriver() {73 WebDriver driver = this.driver.get();74 if (driver == null) {75 throw new RuntimeException("The driver is not instantiated yet");76 }77 return driver;...

Full Screen

Full Screen

Source:Page.java Github

copy

Full Screen

1package de.qualityminds.gta.webapplication;2import com.codeborne.selenide.WebDriverRunner;3import com.galenframework.browser.SeleniumBrowser;4import com.galenframework.speclang2.pagespec.PageSpecReader;5import com.galenframework.speclang2.pagespec.SectionFilter;6import com.galenframework.specs.page.PageSpec;7import com.galenframework.validation.CombinedValidationListener;8import com.galenframework.validation.PageValidation;9import com.galenframework.validation.SectionValidation;10import com.galenframework.validation.ValidationResult;11import de.qualityminds.gta.webapplication.exceptions.WrongPageValidationError;12import de.qualityminds.gta.webapplication.annotations.Spec;13import org.openqa.selenium.WebDriver;14import java.io.IOError;15import java.io.IOException;16import java.util.Collections;17import java.util.LinkedList;18import java.util.List;19import java.util.Properties;20public class Page extends net.serenitybdd.core.pages.PageObject {21 public Page(WebDriver driver) {22 super(driver);23 WebDriverRunner.setWebDriver(driver);24 }25 26 @Override27 public void shouldBeDisplayed() {28 List<ValidationResult> validationList = validatePage(true);29 if(!validationList.isEmpty()) {30 throw new WrongPageValidationError(validationList.toString());31 }32 super.shouldBeDisplayed();33 }34 35 private List<ValidationResult> validatePage(boolean fast){36 Spec specAnnotation = this.getClass().getAnnotation(Spec.class);37 if(specAnnotation==null) {38 return new LinkedList<>();39 }40 41 try {42 return galenCheck((fast && !specAnnotation.fast().isEmpty()) ? specAnnotation.fast() : specAnnotation.value());43 } catch (IOException e) {44 throw new IOError(e);45 }46 }47 48 private List<ValidationResult> galenCheck(String specPath) throws IOException {49 SectionFilter sectionFilter = new SectionFilter(new LinkedList<>(), new LinkedList<>());50 Properties properties = new Properties();51 52 SeleniumBrowser browser = new SeleniumBrowser(getDriver());53 PageSpecReader reader = new PageSpecReader();54 55 PageSpec pageSpec = reader.read(specPath, browser.getPage(), sectionFilter, properties, null, null);56 CombinedValidationListener listener = new CombinedValidationListener();57 PageValidation pageValidation = new PageValidation(browser, browser.getPage(), pageSpec, listener, sectionFilter);58 return new SectionValidation(pageSpec.getSections(), pageValidation, listener).check();59 }60}...

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.speclang2.pagespec.SectionFilterFactory;3import com.galenframework.speclang2.pagespec.SectionFilterType;4import com.galenframework.specs.page.PageSection;5import java.util.List;6public class SectionFilterTest {7 public static void main(String[] args) {8 String filterString = "section1,section2,section3";9 SectionFilter sectionFilter = SectionFilterFactory.getSectionFilter(SectionFilterType.ALL);10 List<PageSection> pageSections = sectionFilter.filter(filterString);11 for (PageSection pageSection : pageSections) {12 System.out.println(pageSection.getName());13 }14 }15}16import com.galenframework.specs.page.PageSection;17import com.galenframework.specs.page.SectionFilter;18import com.galenframework.specs.page.SectionFilterFactory;19import com.galenframework.specs.page.SectionFilterType;20import java.util.List;21public class SectionFilterTest {22 public static void main(String[] args) {23 String filterString = "section1,section2,section3";24 SectionFilter sectionFilter = SectionFilterFactory.getSectionFilter(SectionFilterType.ALL);25 List<PageSection> pageSections = sectionFilter.filter(filterString);26 for (PageSection pageSection : pageSections) {27 System.out.println(pageSection.getName());28 }29 }30}

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.speclang2.pagespec.SectionFilters;3import com.galenframework.speclang2.pagespec.SectionFiltersBuilder;4import com.galenframework.specs.page.PageSection;5import java.util.ArrayList;6import java.util.List;7import java.util.Map;8import java.util.HashMap;9import java.util.regex.Pattern;10import java.util.regex.Matcher;11public class SectionFilterDemo {12 public static void main(String[] args) {13 List<PageSection> sections = new ArrayList<>();14 sections.add(new PageSection("header", null));15 sections.add(new PageSection("footer", null));16 sections.add(new PageSection("left", null));17 sections.add(new PageSection("right", null));18 sections.add(new PageSection("content", null));19 List<SectionFilter> filters = new ArrayList<>();20 filters.add(new SectionFilter("header", Pattern.compile("header")));21 filters.add(new SectionFilter("footer", Pattern.compile("footer")));22 filters.add(new SectionFilter("left", Pattern.compile("left")));23 filters.add(new SectionFilter("right", Pattern.compile("right")));24 filters.add(new SectionFilter("content", Pattern.compile("content")));25 SectionFilters sectionFilters = new SectionFiltersBuilder()26 .withSectionFilters(filters)27 .build();28 Map<String, SectionFilters> sectionFiltersMap = new HashMap<>();29 sectionFiltersMap.put("page", sectionFilters);30 System.out.println("List of sections before filtering:");31 for (PageSection section : sections) {32 System.out.println(section.getName());33 }34 List<PageSection> filteredSections = sectionFiltersMap.get("page").filterSections(sections);35 System.out.println("List of sections after filtering:");36 for (PageSection section : filteredSections) {37 System.out.println(section.getName());38 }39 }40}

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1package com.galenframework.speclang2.pagespec;2import com.galenframework.parser.SyntaxException;3import com.galenframework.specs.page.PageSection;4import com.galenframework.parser.StringCharReader;5import com.galenframework.parser.SyntaxException;6import java.util.List;7public class SectionFilter {8 public static List<PageSection> filter(List<PageSection> pageSections, String filter) throws SyntaxException {9 StringCharReader reader = new StringCharReader(filter);10 List<PageSection> filteredSections = pageSections;11 while (reader.hasMore()) {12 String filterName = reader.readTo(":");13 String filterValue = reader.readTo(",");14 if (filterName.equals("name")) {15 filteredSections = filterBySectionName(filteredSections, filterValue);16 }17 else if (filterName.equals("type")) {18 filteredSections = filterBySectionType(filteredSections, filterValue);19 }20 else {21 throw new SyntaxException("Unknown filter name: " + filterName);22 }23 }24 return filteredSections;25 }26 private static List<PageSection> filterBySectionType(List<PageSection> pageSections, String filterValue) {27 return null;28 }29 private static List<PageSection> filterBySectionName(List<PageSection> pageSections, String filterValue) {30 return null;31 }32}33package com.galenframework.speclang2.pagespec;34import com.galenframework.parser.SyntaxException;35import com.galenframework.specs.page.PageSection;36import com.galenframework.parser.StringCharReader;37import com.galenframework.parser.SyntaxException;38import java.util.List;39public class SectionFilter {40 public static List<PageSection> filter(List<PageSection> pageSections, String filter) throws SyntaxException {41 StringCharReader reader = new StringCharReader(filter);42 List<PageSection> filteredSections = pageSections;43 while (reader.hasMore()) {44 String filterName = reader.readTo(":");45 String filterValue = reader.readTo(",");46 if (filterName.equals("name")) {47 filteredSections = filterBySectionName(filteredSections, filterValue);48 }49 else if (filterName.equals("type")) {50 filteredSections = filterBySectionType(filteredSections, filterValue);51 }

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.parser.SyntaxException;3import java.io.File;4import java.io.IOException;5import java.util.List;6import java.util.ArrayList;7import java.util.Arrays;8import java.util.Collection;9import java.util.Iterator;10import java.util.List;11import java.util.Map;12import java.util.Set;13import java.util.HashSet;14import java.util.HashMap;15import java.util.ArrayList;16import java.util.Arrays;17import java.util.Collection;18import java.util.Collections;19import java.util.Iterator;20import java.util.List;21import java.util.Map;22import java.util.Set;23import java.util.HashSet;24import java.util.HashMap;25import java.util.ArrayList;26import java.util.Arrays;27import java.util.Collection;28import java.util.Collections;29import java.util.Iterator;30import java.util.List;31import java.util.Map;32import java.util.Set;33import java.util.HashSet;34import java.util.HashMap;35import java.util.ArrayList;36import java.util.Arrays;37import java.util.Collection;38import java.util.Collections;39import java.util.Iterator;40import java.util.List;41import java.util.Map;42import java.util.Set;43import java.util.HashSet;44import java.util.HashMap;45import java.util.ArrayList;46import java.util.Arrays;47import java.util.Collection;48import java.util.Collections;49import java.util.Iterator;50import java.util.List;51import java.util.Map;52import java.util.Set;53import java.util.HashSet;54import java.util.HashMap;55import java.util.ArrayList;56import java.util.Arrays;57import java.util.Collection;58import java.util.Collections;59import java.util.Iterator;60import java.util.List;61import java.util.Map;62import java.util.Set;63import java.util.HashSet;64import java.util.HashMap;65import java.util.ArrayList;66import java.util.Arrays;67import java.util.Collection;68import java.util.Collections;69import java.util.Iterator;70import java.util.List;71import java.util.Map;72import java.util.Set;73import java.util.HashSet;74import java.util.HashMap;75import java.util.ArrayList;76import java.util.Arrays;77import java.util.Collection;78import java.util.Collections;79import java.util.Iterator;80import java.util.List;81import java.util.Map;82import java.util.Set;83import java.util.HashSet;84import java.util.HashMap;85import java.util.ArrayList;86import java.util.Arrays;87import java.util.Collection;88import java.util.Collections;89import java.util.Iterator;90import java.util.List;91import java.util.Map;92import java.util.Set;93import java.util.HashSet;94import java.util.HashMap;95import java.util.ArrayList;96import java.util.Arrays;97import java.util.Collection;

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.speclang2.pagespec.SectionFilterFactory;3import com.galenframework.speclang2.pagespec.SectionFilterType;4import com.galenframework.specs.page.PageSection;5import java.util.List;6public class SectionFilterTest {7 public static void main(String[] args) {8 SectionFilter sectionFilter = SectionFilterFactory.createSectionFilter(SectionFilterType.INCLUDE, "header");9 List<PageSection> pageSectionList = PageSection.parseSections("header, footer, content");10 List<PageSection> filteredPageSectionList = sectionFilter.filter(pageSectionList);11 System.out.println(filteredPageSectionList);12 }13}14public enum SectionFilterType {15}16public class SectionFilterFactory {17 public static SectionFilter createSectionFilter(SectionFilterType type, String name) {18 return new SectionFilter(type, name);19 }20}21public class SectionFilter {22 private final SectionFilterType type;23 private final String name;24 public SectionFilter(SectionFilterType type,

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.speclang2.pagespec.SectionFilterFactory;3public class SectionFilterFactoryExample {4 public static void main(String[] args) throws Exception {5 SectionFilter sectionFilter = SectionFilterFactory.createSectionFilter("name:example");6 System.out.println(sectionFilter.isSectionAllowed("name:example"));7 System.out.println(sectionFilter.isSectionAllowed("name:example1"));8 }9}

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.speclang2.pagespec.SectionFilterFactory;3import com.galenframework.speclang2.pagespec.SectionFilterType;4import java.io.IOException;5import java.nio.file.Files;6import java.nio.file.Paths;7import java.util.List;8public class FilterSections {9 public static void main(String[] args) throws IOException {10 String filterType = "include";11 String filterValue = ".*registration.*";12 String pageSpec = new String(Files.readAllBytes(Paths.get("test.spec")));13 SectionFilter sectionFilter = SectionFilterFactory.getSectionFilter(SectionFilterType.valueOf(filterType.toUpperCase()), filterValue);14 List<String> filteredSections = sectionFilter.filter(pageSpec);15 System.out.println(filteredSections);16 }17}

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.specs.Spec;3import com.galenframework.specs.reader.page.*;4import com.galenframework.parser.*;5import com.galenframework.parser.StructNode;6import com.galenframework.parser.SyntaxException;7import com.galenframework.parser.StringCharReader;8import com.galenframework.parser.Expectations;9import com.galenframework.specs.page.Page

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1import com.galenframework.speclang2.pagespec.SectionFilter;2import com.galenframework.specs.Spec;3import com.galenframework.specs.SpecFactory;4import com.galenframework.specs.page.Locator;5import com.galenframework.specs.page.PageSpec;6import com.galenframework.specs.page.SectionFilterObject;7import com.galenframework.specs.page.SectionFilterObject;8import com.galenframework.specs.reader.page.PageSpecReader;9import com.galenframework.spe

Full Screen

Full Screen

SectionFilter

Using AI Code Generation

copy

Full Screen

1package com.galenframework.speclang2.pagespec;2import java.util.ArrayList;3import java.util.List;4import java.util.Map;5import java.util.regex.Matcher;6import java.util.regex.Pattern;7import com.galenframework.parser.SyntaxException;8import com.galenframework.specs.page.PageSection;9import com.galenframework.specs.page.PageSpec;10import com.galenframework.specs.page.PageSpecReader;11import com.galenframework.specs.page.PageSpecReaderException;12import com.galenframework.specs.page.PageSpecReaderException.ErrorType;13import com.galenframework.specs.page.PageSpecReaderException.Reason;14import com.galenframework.specs.page.PageSpecReaderException.ReasonType;15import com.galenframework.speclang2.pagespec.filter.PageSpecFilter;16import com.galenframework.speclang2.pagespec.filter.PageSpecFilterFactory;17import com.galenframework.speclang2.pagespec.filter.PageSpecFilterType;18import com.galenframework.speclang2.pagespec.filter.PageSpecFilters;19import com.galenframework.speclang2.pagespec.rules.Rule;20import com.galenframework.speclang2.pagespec.rules.RuleFactory;21import com.galenframework.speclang2.pagespec.rules.RuleType;22import com.galenframework.speclang2.pagespec.rules.Rules;23import com.galenframework.specs.page.Locator;24import com.galenframework.validation.ValidationListener;25import com.galenframework.validation.ValidationResult;26import

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Galen automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Test Your Web Or Mobile Apps On 3000+ Browsers

Signup for free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful