How to use merge method of com.galenframework.generator.SuggestionTestResult class

Best Galen code snippet using com.galenframework.generator.SuggestionTestResult.merge

Source:SpecSuggester.java Github

copy

Full Screen

...54 String[] namesArray = Arrays.stream(pinsVariation).map(p -> p.getPageItem().getName()).toArray(String[]::new);55 for (SpecSuggestion suggestion : suggestions) {56 if (!matchesExcludedFilter(suggestion.getName(), namesArray)) {57 SuggestionTestResult result = suggestion.test(options, specGeneratorOptions, pinsVariation);58 globalResult.merge(result);59 if (result != null && result.isValid()) {60 if (result.getFilters() != null) {61 excludedFilters.addAll(result.getFilters());62 }63 }64 }65 }66 }67 return globalResult;68 }69 private List<PageItemNode[]> generateSequentialVariations(PageItemNode[] pageItemNodes) {70 List<PageItemNode[]> variations = new LinkedList<>();71 if (pageItemNodes != null && pageItemNodes.length > 1) {72 variations.add(pageItemNodes);73 }74 for (int amount = pageItemNodes.length - 1; amount > 1; amount --) {75 for (int offset = 0; offset <= pageItemNodes.length - amount; offset ++) {76 PageItemNode[] variation = new PageItemNode[amount];77 for (int i = 0; i < amount; i++) {78 variation[i] = pageItemNodes[offset + i];79 }80 variations.add(variation);81 }82 }83 return variations;84 }85 public SuggestionTestResult suggestSpecsForTwoObjects(List<PageItemNode> pins, List<SpecSuggestion> suggestions, SpecGeneratorOptions specGeneratorOptions) {86 SuggestionTestResult globalResult = new SuggestionTestResult();87 for (int i = 0; i < pins.size() - 1; i++) {88 for (int j = i + 1; j < pins.size(); j++) {89 for (SpecSuggestion suggestion : suggestions) {90 if (!matchesExcludedFilter(suggestion.getName(), pins.get(i).getPageItem().getName(), pins.get(j).getPageItem().getName())) {91 SuggestionTestResult result = suggestion.test(options, specGeneratorOptions, pins.get(i), pins.get(j));92 globalResult.merge(result);93 if (result != null && result.isValid()) {94 if (result.getFilters() != null) {95 excludedFilters.addAll(result.getFilters());96 }97 }98 }99 }100 }101 }102 return globalResult;103 }104 public SuggestionTestResult suggestSpecsForSingleObject(List<PageItemNode> pins, List<SpecSuggestion> suggestions, SpecGeneratorOptions specGeneratorOptions) {105 SuggestionTestResult globalResult = new SuggestionTestResult();106 for (PageItemNode pin: pins) {107 for (SpecSuggestion suggestion : suggestions) {108 if (!matchesExcludedFilter(suggestion.getName(), pin.getPageItem().getName())) {109 SuggestionTestResult result = suggestion.test(options, specGeneratorOptions, pin);110 globalResult.merge(result);111 if (result != null && result.isValid()) {112 if (result.getFilters() != null) {113 excludedFilters.addAll(result.getFilters());114 }115 }116 }117 }118 }119 return globalResult;120 }121 public SuggestionTestResult suggestSpecsRayCasting(PageItemNode parent, List<PageItemNode> pins, SpecGeneratorOptions specGeneratorOptions) {122 SuggestionTestResult globalResult = new SuggestionTestResult();123 EdgesContainer edges = EdgesContainer.create(parent, pins);124 Map<String, CompositeSpecBuilder> allSpecBuilders = new HashMap<>();...

Full Screen

Full Screen

Source:SpecGenerator.java Github

copy

Full Screen

...67 sortPinsHorizontally(pin.getChildren());68 }69 }));70 SuggestionTestResult results = new SuggestionTestResult();71 rootPins.forEach(p -> p.visitTree(pin -> results.merge(proposeSpecsFor(pin, objectNamesPerPage, specGeneratorOptions))));72 List<String> missingObjects = proposeAbsenseSpecs(results, pageItems, allObjectNames);73 // adding missing objects to pins. For now we will put missing objects inside a first root pin74 missingObjects.forEach(missingObjectName -> {75 new PageItemNode(new PageItem(missingObjectName)).moveToParent(rootPins.get(0));76 objectNamesPerPage.add(missingObjectName);77 });78 return new PageSpecGenerationResult(largestSize, objectNamesPerPage, rootPins, results);79 }80 private List<String> proposeAbsenseSpecs(SuggestionTestResult results, List<PageItem> pageItems, Set<String> allObjectNames) {81 Set<String> allItemsOnCurrentPage = pageItems.stream().map(PageItem::getName).collect(Collectors.toSet());82 List<String> missingObjectNames = new LinkedList<>();83 allObjectNames.stream().filter(itemName -> !allItemsOnCurrentPage.contains(itemName)).forEach(itemName -> {84 results.getGeneratedObjectSpecs().put(itemName, singletonList(new SpecStatement("absent")));85 missingObjectNames.add(itemName);86 });87 return missingObjectNames;88 }89 private void removeDuplicatedElements(List<PageItem> convertedItems) {90 ListIterator<PageItem> it = convertedItems.listIterator();91 if (it.hasNext()) {92 PageItem item = it.next();93 while (it.hasNext()) {94 PageItem nextItem = it.next();95 if (nextItem.getArea().equals(item.getArea())) {96 it.remove();97 } else {98 item = nextItem;99 }100 }101 }102 }103 private Comparator<PageItem> bySizeAndLocation() {104 return (a, b) -> {105 int size = a.getArea().getWidth() * a.getArea().getHeight() - b.getArea().getWidth() * b.getArea().getHeight();106 if (size != 0) {107 return size;108 } else {109 int diff = a.getArea().getLeft() - b.getArea().getLeft();110 if (diff != 0) {111 return diff;112 } else {113 return a.getArea().getTop() - b.getArea().getTop();114 }115 }116 };117 }118 /**119 * Orders page items into a tree by their area. Tries to fit one item inside another120 * @param items121 * @return A list of pins which are root elements (don't have a parent)122 */123 private List<PageItemNode> restructurePageItems(List<PageItem> items) {124 List<PageItemNode> pins = items.stream().map(PageItemNode::new).collect(toList());125 for (PageItemNode pinA : pins) {126 for (PageItemNode pinB: pins) {127 if (pinA != pinB) {128 if (isInside(pinA.getPageItem().getArea(), pinB.getPageItem().getArea())) {129 if (pinB.getParent() == pinA) {130 throw new RuntimeException(format("The following objects have identical areas: %s, %s. Please remove one of the objects", pinA.getPageItem().getName(), pinB.getPageItem().getName()));131 }132 pinA.moveToParent(pinB);133 break;134 }135 }136 }137 }138 return pins.stream().filter(pin -> pin.getParent() == null && pin.getChildren().size() > 0).collect(toList());139 }140 private SuggestionTestResult proposeSpecsFor(PageItemNode pin, List<String> objectNamesPerPage, SpecGeneratorOptions specGeneratorOptions) {141 SuggestionTestResult allResults = new SuggestionTestResult();142 SpecSuggester specSuggester = new SpecSuggester(new SuggestionOptions(objectNamesPerPage));143 if (pin.getParent() != null) {144 allResults.merge(specSuggester.suggestSpecsForTwoObjects(asList(pin.getParent(), pin), SpecSuggester.parentSuggestions, specGeneratorOptions));145 }146 if (pin.getChildren() != null && !pin.getChildren().isEmpty()) {147 List<PageItemNode> horizontallySortedPins = pin.getChildren();148 List<PageItemNode> verticallySortedPins = copySortedVertically(pin.getChildren());149 if (specGeneratorOptions.isUseGalenExtras()) {150 allResults.merge(specSuggester.suggestSpecsForMultipleObjects(horizontallySortedPins, SpecSuggester.horizontallyOrderComplexRulesSuggestions, specGeneratorOptions));151 allResults.merge(specSuggester.suggestSpecsForMultipleObjects(verticallySortedPins, SpecSuggester.verticallyOrderComplexRulesSuggestions, specGeneratorOptions));152 }153 allResults.merge(specSuggester.suggestSpecsRayCasting(pin, horizontallySortedPins, specGeneratorOptions));154 allResults.merge(specSuggester.suggestSpecsForSingleObject(horizontallySortedPins, SpecSuggester.singleItemSuggestions, specGeneratorOptions));155 }156 return allResults;157 }158 private void sortPinsHorizontally(List<PageItemNode> pins) {159 Collections.sort(pins, (a,b) -> {160 int ax = a.getPageItem().getArea().getLeft();161 int ay = a.getPageItem().getArea().getTop();162 int bx = b.getPageItem().getArea().getLeft();163 int by = b.getPageItem().getArea().getTop();164 if (ax != bx) {165 return ax - bx;166 } else {167 return ay - by;168 }...

Full Screen

Full Screen

Source:SuggestionTestResult.java Github

copy

Full Screen

...65 }66 filters.add(filter);67 return this;68 }69 public void merge(SuggestionTestResult result) {70 if (result != null) {71 if (this.generatedObjectSpecs == null) {72 this.generatedObjectSpecs = new HashMap<>();73 }74 mergeMapList(this.generatedObjectSpecs, result.getGeneratedObjectSpecs());75 if (this.generatedRules == null) {76 this.generatedRules = new HashMap<>();77 }78 mergeMapList(this.generatedRules, result.generatedRules);79 }80 }81 private void mergeMapList(Map<String, List<SpecStatement>> origin, Map<String, List<SpecStatement>> other) {82 if (other != null) {83 other.forEach((name, otherList) -> {84 List<SpecStatement> originList = makeSureListExists(origin, name);85 originList.addAll(otherList);86 });87 }88 }89 private List<SpecStatement> makeSureListExists(Map<String, List<SpecStatement>> origin, String name) {90 List<SpecStatement> originList = origin.get(name);91 if (originList == null) {92 originList = new LinkedList<>();93 origin.put(name, originList);94 } return originList;95 }...

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();2result.merge(suggestionTestResult);3com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();4result.merge(suggestionTestResult);5com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();6result.merge(suggestionTestResult);7com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();8result.merge(suggestionTestResult);9com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();10result.merge(suggestionTestResult);11com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();12result.merge(suggestionTestResult);13com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();14result.merge(suggestionTestResult);15com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();16result.merge(suggestionTestResult);17com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();18result.merge(suggestionTestResult);19com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();20result.merge(suggestionTestResult);21com.galenframework.generator.SuggestionTestResult result = new com.galenframework.generator.SuggestionTestResult();22result.merge(suggestionTestResult

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1import com.galenframework.generator.SuggestionTestResult;2SuggestionTestResult s1 = new SuggestionTestResult();3SuggestionTestResult s2 = new SuggestionTestResult();4s1.merge(s2);5import com.galenframework.generator.SuggestionTestResult;6SuggestionTestResult s1 = new SuggestionTestResult();7SuggestionTestResult s2 = new SuggestionTestResult();8s1.merge(s2);9import com.galenframework.generator.SuggestionTestResult;10SuggestionTestResult s1 = new SuggestionTestResult();11SuggestionTestResult s2 = new SuggestionTestResult();12s1.merge(s2);13import com.galenframework.generator.SuggestionTestResult;14SuggestionTestResult s1 = new SuggestionTestResult();15SuggestionTestResult s2 = new SuggestionTestResult();16s1.merge(s2);17import com.galenframework.generator.SuggestionTestResult;18SuggestionTestResult s1 = new SuggestionTestResult();19SuggestionTestResult s2 = new SuggestionTestResult();20s1.merge(s2);21import com.galenframework.generator.SuggestionTestResult;22SuggestionTestResult s1 = new SuggestionTestResult();23SuggestionTestResult s2 = new SuggestionTestResult();24s1.merge(s2);25import com.galenframework.generator.SuggestionTestResult;

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1import java.io.IOException;2import java.util.ArrayList;3import java.util.List;4import com.galenframework.generator.SuggestionTestResult;5import com.galenframework.generator.TestSpec;6import com.galenframework.generator.TestSpecBuilder;7import com.galenframework.generator.TestSpecBuilder.TextSpec;8import com.galenframework.generator.TestSpecBuilder.TextSpec.TextSpecType;9import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder;10import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType;11import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType;12import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType;13import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType.TextSpecBuilderTypeTypeTypeType;14import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeType;15import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeType;16import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeTypeType;17import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeTypeTypeTypeType;18import com.galenframework.generator.TestSpecBuilder.TextSpecBuilder.TextSpecBuilderType.TextSpecBuilderTypeType.TextSpecBuilderTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeType.TextSpecBuilderTypeTypeTypeTypeType.TextSpec

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1import com.galenframework.generator.SuggestionTestResult;2import com.galenframework.generator.SuggestionTestResult.SuggestionTestResultBuilder;3import com.galenframework.generator.SuggestionTestResult.SuggestionTestResultBuilder.SuggestionTestResultMergeBuilder;4import com.galenframework.generator.SuggestionTestResult.SuggestionTestResultBuilder.SuggestionTestResultMergeBuilder.SuggestionTestResultMergeBuilder2;5import com.galenframework.generator.SuggestionTestResult.SuggestionTestResultBuilder.SuggestionTestResultMergeBuilder.SuggestionTestResultMergeBuilder2.SuggestionTestResultMergeBuilder3;6import com.galenframework.generator.SuggestionTestResult.SuggestionTestResultBuilder.SuggestionTestResultMergeBuilder.SuggestionTestResultMergeBuilder2.SuggestionTestResultMergeBuilder3.SuggestionTestResultMergeBuilder4;7import com.galenframework.generator.SuggestionTestResult.SuggestionTestResultBuilder.SuggestionTestResultMergeBuilder.SuggestionTestResultMergeBuilder2.SuggestionTestResultMergeBuilder3.SuggestionTestResultMergeBuilder4.SuggestionTestResultMergeBuilder5;8public class Test {9 public static void main(String[] args) {10 .aSuggestionTestResult()11 .withTestName("testName")12 .withPageName("pageName")13 .withObjectName("objectName")14 .withArea("area")15 .withAreaSize("areaSize")16 .withAreaLocation("areaLocation")17 .withSuggestion("suggestion")18 .withSuggestionType("suggestionType")19 .withSuggestionText("suggestionText")20 .withSuggestionImage("suggestionImage")21 .withSuggestionImageSize("suggestionImageSize")22 .withSuggestionImageLocation("suggestionImageLocation")23 .withSuggestionImageArea("suggestionImageArea")24 .withSuggestionImageAreaSize("suggestionImageAreaSize")25 .withSuggestionImageAreaLocation("suggestionImageAreaLocation")26 .withSuggestionImageAreaLocation2("suggestionImageAreaLocation2")27 .withSuggestionImageAreaSize2("suggestionImageAreaSize2")28 .withSuggestionImageArea2("suggestionImageArea2")29 .withSuggestionImageLocation2("suggestionImageLocation2")30 .withSuggestionImageSize2("suggestionImageSize2")31 .withSuggestionImage2("suggestionImage

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1package com.galenframework.generator;2import com.galenframework.generator.SuggestionTestResult;3import com.galenframework.generator.SuggestionTestResult.Suggestion;4import java.util.ArrayList;5import java.util.List;6public class TestMerge {7 public static void main(String[] args) {8 List<SuggestionTestResult> suggestionTestResults = new ArrayList<>();9 List<Suggestion> suggestions = new ArrayList<>();10 SuggestionTestResult suggestionTestResult = new SuggestionTestResult();11 Suggestion suggestion = new Suggestion();12 suggestion.setSuggestion("suggestion");13 suggestion.setSuggestionType("suggestionType");14 suggestions.add(suggestion);15 suggestionTestResult.setSuggestions(suggestions);16 suggestionTestResults.add(suggestionTestResult);17 SuggestionTestResult suggestionTestResult1 = new SuggestionTestResult();18 List<Suggestion> suggestions1 = new ArrayList<>();19 Suggestion suggestion1 = new Suggestion();20 suggestion1.setSuggestion("suggestion1");21 suggestion1.setSuggestionType("suggestionType1");22 suggestions1.add(suggestion1);23 suggestionTestResult1.setSuggestions(suggestions1);24 suggestionTestResults.add(suggestionTestResult1);25 SuggestionTestResult suggestionTestResult2 = new SuggestionTestResult();26 List<Suggestion> suggestions2 = new ArrayList<>();27 Suggestion suggestion2 = new Suggestion();28 suggestion2.setSuggestion("suggestion2");29 suggestion2.setSuggestionType("suggestionType2");30 suggestions2.add(suggestion2);31 suggestionTestResult2.setSuggestions(suggestions2);32 suggestionTestResults.add(suggestionTestResult2);33 SuggestionTestResult suggestionTestResult3 = new SuggestionTestResult();34 suggestionTestResult3.merge(suggestionTestResults);35 System.out.println(suggestionTestResult3.getSuggestions().size());36 }37}38package com.galenframework.generator;39import com.fasterxml.jackson.annotation.JsonIgnoreProperties;40import java.util.List;41@JsonIgnoreProperties(ignoreUnknown = true)42public class SuggestionTestResult {43 private List<Suggestion> suggestions;44 public List<Suggestion> getSuggestions() {45 return suggestions;46 }47 public void setSuggestions(List<Suggestion> suggestions) {48 this.suggestions = suggestions;49 }50 public void merge(List<SuggestionTestResult> suggestionTestResults){51 for(SuggestionTestResult suggestionTestResult : suggestionTestResults){52 suggestions.addAll(suggestion

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1import com.galenframework.generator.SuggestionTestResult;2public class 1 {3 public static void main(String[] args) {4 String[] a = {"a","b","c"};5 String[] b = {"b","c","d"};6 String[] result = SuggestionTestResult.merge(a, b);7 for (String s : result) {8 System.out.println(s);9 }10 }11}12import com.galenframework.generator.SuggestionTestResult;13public class 2 {14 public static void main(String[] args) {15 String[] a = {"a","b","c"};16 String[] b = {"b","c","d"};17 String[] result = SuggestionTestResult.merge(a, b);18 for (String s : result) {19 System.out.println(s);20 }21 }22}23import com.galenframework.generator.SuggestionTestResult;24public class 3 {25 public static void main(String[] args) {26 String[] a = {"a","b","c"};27 String[] b = {"b","c","d"};28 String[] result = SuggestionTestResult.merge(a, b);29 for (String s : result) {30 System.out.println(s);31 }32 }33}34import com.galenframework.generator.SuggestionTestResult;35public class 4 {36 public static void main(String[] args) {37 String[] a = {"a","b","c"};38 String[] b = {"b","c","d"};39 String[] result = SuggestionTestResult.merge(a, b);40 for (String s : result) {41 System.out.println(s);42 }43 }44}45import com.galenframework.generator.SuggestionTestResult;46public class 5 {47 public static void main(String[] args) {48 String[] a = {"a","b","c"};

Full Screen

Full Screen

merge

Using AI Code Generation

copy

Full Screen

1import com.galenframework.generator.SuggestionTestResult;2import com.galenframework.generator.SuggestionTestResult.TestResult;3import com.galenframework.generator.SuggestionTestResult.TestResultType;4import com.galenframework.generator.SuggestionTestResult.TestResults;5import java.util.ArrayList;6import java.util.List;7public class MergeTestResults {8 public static void main(String[] args) throws Exception {9 TestResults testResults = new TestResults();10 List<TestResult> testResultList = new ArrayList<TestResult>();11 testResultList.add(new TestResult("Test1", TestResultType.PASS));12 testResultList.add(new TestResult("Test2", TestResultType.FAIL));13 testResultList.add(new TestResult("Test3", TestResultType.EXCEPTION));14 testResults.setTestResults(testResultList);15 TestResults testResults1 = new TestResults();16 List<TestResult> testResultList1 = new ArrayList<TestResult>();17 testResultList1.add(new TestResult("Test4", TestResultType.PASS));18 testResultList1.add(new TestResult("Test5", TestResultType.FAIL));19 testResultList1.add(new TestResult("Test6", TestResultType.EXCEPTION));20 testResults1.setTestResults(testResultList1);21 SuggestionTestResult suggestionTestResult = new SuggestionTestResult();22 TestResults mergedTestResults = suggestionTestResult.merge(testResults, testResults1);23 System.out.println("Merged Test Results: " + mergedTestResults.getTestResults());24 }25}

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.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful