How to use xmlparser method in apimocker

Best JavaScript code snippet using apimocker

XMLParser.ts

Source:XMLParser.ts Github

copy

Full Screen

1// Generated from ./lib/grammars/xml/XMLParser.g4 by ANTLR 4.9.0-SNAPSHOT2import { ATN } from "antlr4ts/atn/ATN";3import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";4import { FailedPredicateException } from "antlr4ts/FailedPredicateException";5import { NotNull } from "antlr4ts/Decorators";6import { NoViableAltException } from "antlr4ts/NoViableAltException";7import { Override } from "antlr4ts/Decorators";8import { Parser } from "antlr4ts/Parser";9import { ParserRuleContext } from "antlr4ts/ParserRuleContext";10import { ParserATNSimulator } from "antlr4ts/atn/ParserATNSimulator";11import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";12import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";13import { RecognitionException } from "antlr4ts/RecognitionException";14import { RuleContext } from "antlr4ts/RuleContext";15//import { RuleVersion } from "antlr4ts/RuleVersion";16import { TerminalNode } from "antlr4ts/tree/TerminalNode";17import { Token } from "antlr4ts/Token";18import { TokenStream } from "antlr4ts/TokenStream";19import { Vocabulary } from "antlr4ts/Vocabulary";20import { VocabularyImpl } from "antlr4ts/VocabularyImpl";21import * as Utils from "antlr4ts/misc/Utils";22import { XMLParserListener } from "./XMLParserListener";23import { XMLParserVisitor } from "./XMLParserVisitor";24export class XMLParser extends Parser {25 public static readonly COMMENT = 1;26 public static readonly CDATA = 2;27 public static readonly DTD = 3;28 public static readonly EntityRef = 4;29 public static readonly CharRef = 5;30 public static readonly SEA_WS = 6;31 public static readonly OPEN = 7;32 public static readonly XMLDeclOpen = 8;33 public static readonly TEXT = 9;34 public static readonly CLOSE = 10;35 public static readonly SPECIAL_CLOSE = 11;36 public static readonly SLASH_CLOSE = 12;37 public static readonly SLASH = 13;38 public static readonly EQUALS = 14;39 public static readonly STRING = 15;40 public static readonly Name = 16;41 public static readonly S = 17;42 public static readonly PI = 18;43 public static readonly RULE_document = 0;44 public static readonly RULE_prolog = 1;45 public static readonly RULE_content = 2;46 public static readonly RULE_element = 3;47 public static readonly RULE_reference = 4;48 public static readonly RULE_attribute = 5;49 public static readonly RULE_chardata = 6;50 public static readonly RULE_misc = 7;51 // tslint:disable:no-trailing-whitespace52 public static readonly ruleNames: string[] = [53 "document", "prolog", "content", "element", "reference", "attribute", 54 "chardata", "misc",55 ];56 private static readonly _LITERAL_NAMES: Array<string | undefined> = [57 undefined, undefined, undefined, undefined, undefined, undefined, undefined, 58 "'<'", undefined, undefined, "'>'", undefined, "'/>'", "'/'", "'='",59 ];60 private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [61 undefined, "COMMENT", "CDATA", "DTD", "EntityRef", "CharRef", "SEA_WS", 62 "OPEN", "XMLDeclOpen", "TEXT", "CLOSE", "SPECIAL_CLOSE", "SLASH_CLOSE", 63 "SLASH", "EQUALS", "STRING", "Name", "S", "PI",64 ];65 public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(XMLParser._LITERAL_NAMES, XMLParser._SYMBOLIC_NAMES, []);66 // @Override67 // @NotNull68 public get vocabulary(): Vocabulary {69 return XMLParser.VOCABULARY;70 }71 // tslint:enable:no-trailing-whitespace72 // @Override73 public get grammarFileName(): string { return "XMLParser.g4"; }74 // @Override75 public get ruleNames(): string[] { return XMLParser.ruleNames; }76 // @Override77 public get serializedATN(): string { return XMLParser._serializedATN; }78 protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException {79 return new FailedPredicateException(this, predicate, message);80 }81 constructor(input: TokenStream) {82 super(input);83 this._interp = new ParserATNSimulator(XMLParser._ATN, this);84 }85 // @RuleVersion(0)86 public document(): DocumentContext {87 let _localctx: DocumentContext = new DocumentContext(this._ctx, this.state);88 this.enterRule(_localctx, 0, XMLParser.RULE_document);89 let _la: number;90 try {91 this.enterOuterAlt(_localctx, 1);92 {93 this.state = 17;94 this._errHandler.sync(this);95 _la = this._input.LA(1);96 if (_la === XMLParser.XMLDeclOpen) {97 {98 this.state = 16;99 this.prolog();100 }101 }102 this.state = 22;103 this._errHandler.sync(this);104 _la = this._input.LA(1);105 while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << XMLParser.COMMENT) | (1 << XMLParser.SEA_WS) | (1 << XMLParser.PI))) !== 0)) {106 {107 {108 this.state = 19;109 this.misc();110 }111 }112 this.state = 24;113 this._errHandler.sync(this);114 _la = this._input.LA(1);115 }116 this.state = 25;117 this.element();118 this.state = 29;119 this._errHandler.sync(this);120 _la = this._input.LA(1);121 while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << XMLParser.COMMENT) | (1 << XMLParser.SEA_WS) | (1 << XMLParser.PI))) !== 0)) {122 {123 {124 this.state = 26;125 this.misc();126 }127 }128 this.state = 31;129 this._errHandler.sync(this);130 _la = this._input.LA(1);131 }132 }133 }134 catch (re) {135 if (re instanceof RecognitionException) {136 _localctx.exception = re;137 this._errHandler.reportError(this, re);138 this._errHandler.recover(this, re);139 } else {140 throw re;141 }142 }143 finally {144 this.exitRule();145 }146 return _localctx;147 }148 // @RuleVersion(0)149 public prolog(): PrologContext {150 let _localctx: PrologContext = new PrologContext(this._ctx, this.state);151 this.enterRule(_localctx, 2, XMLParser.RULE_prolog);152 let _la: number;153 try {154 this.enterOuterAlt(_localctx, 1);155 {156 this.state = 32;157 this.match(XMLParser.XMLDeclOpen);158 this.state = 36;159 this._errHandler.sync(this);160 _la = this._input.LA(1);161 while (_la === XMLParser.Name) {162 {163 {164 this.state = 33;165 this.attribute();166 }167 }168 this.state = 38;169 this._errHandler.sync(this);170 _la = this._input.LA(1);171 }172 this.state = 39;173 this.match(XMLParser.SPECIAL_CLOSE);174 }175 }176 catch (re) {177 if (re instanceof RecognitionException) {178 _localctx.exception = re;179 this._errHandler.reportError(this, re);180 this._errHandler.recover(this, re);181 } else {182 throw re;183 }184 }185 finally {186 this.exitRule();187 }188 return _localctx;189 }190 // @RuleVersion(0)191 public content(): ContentContext {192 let _localctx: ContentContext = new ContentContext(this._ctx, this.state);193 this.enterRule(_localctx, 4, XMLParser.RULE_content);194 let _la: number;195 try {196 let _alt: number;197 this.enterOuterAlt(_localctx, 1);198 {199 this.state = 42;200 this._errHandler.sync(this);201 _la = this._input.LA(1);202 if (_la === XMLParser.SEA_WS || _la === XMLParser.TEXT) {203 {204 this.state = 41;205 this.chardata();206 }207 }208 this.state = 56;209 this._errHandler.sync(this);210 _alt = this.interpreter.adaptivePredict(this._input, 7, this._ctx);211 while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {212 if (_alt === 1) {213 {214 {215 this.state = 49;216 this._errHandler.sync(this);217 switch (this._input.LA(1)) {218 case XMLParser.OPEN:219 {220 this.state = 44;221 this.element();222 }223 break;224 case XMLParser.EntityRef:225 case XMLParser.CharRef:226 {227 this.state = 45;228 this.reference();229 }230 break;231 case XMLParser.CDATA:232 {233 this.state = 46;234 this.match(XMLParser.CDATA);235 }236 break;237 case XMLParser.PI:238 {239 this.state = 47;240 this.match(XMLParser.PI);241 }242 break;243 case XMLParser.COMMENT:244 {245 this.state = 48;246 this.match(XMLParser.COMMENT);247 }248 break;249 default:250 throw new NoViableAltException(this);251 }252 this.state = 52;253 this._errHandler.sync(this);254 _la = this._input.LA(1);255 if (_la === XMLParser.SEA_WS || _la === XMLParser.TEXT) {256 {257 this.state = 51;258 this.chardata();259 }260 }261 }262 }263 }264 this.state = 58;265 this._errHandler.sync(this);266 _alt = this.interpreter.adaptivePredict(this._input, 7, this._ctx);267 }268 }269 }270 catch (re) {271 if (re instanceof RecognitionException) {272 _localctx.exception = re;273 this._errHandler.reportError(this, re);274 this._errHandler.recover(this, re);275 } else {276 throw re;277 }278 }279 finally {280 this.exitRule();281 }282 return _localctx;283 }284 // @RuleVersion(0)285 public element(): ElementContext {286 let _localctx: ElementContext = new ElementContext(this._ctx, this.state);287 this.enterRule(_localctx, 6, XMLParser.RULE_element);288 let _la: number;289 try {290 this.state = 83;291 this._errHandler.sync(this);292 switch ( this.interpreter.adaptivePredict(this._input, 10, this._ctx) ) {293 case 1:294 this.enterOuterAlt(_localctx, 1);295 {296 this.state = 59;297 this.match(XMLParser.OPEN);298 this.state = 60;299 this.match(XMLParser.Name);300 this.state = 64;301 this._errHandler.sync(this);302 _la = this._input.LA(1);303 while (_la === XMLParser.Name) {304 {305 {306 this.state = 61;307 this.attribute();308 }309 }310 this.state = 66;311 this._errHandler.sync(this);312 _la = this._input.LA(1);313 }314 this.state = 67;315 this.match(XMLParser.CLOSE);316 this.state = 68;317 this.content();318 this.state = 69;319 this.match(XMLParser.OPEN);320 this.state = 70;321 this.match(XMLParser.SLASH);322 this.state = 71;323 this.match(XMLParser.Name);324 this.state = 72;325 this.match(XMLParser.CLOSE);326 }327 break;328 case 2:329 this.enterOuterAlt(_localctx, 2);330 {331 this.state = 74;332 this.match(XMLParser.OPEN);333 this.state = 75;334 this.match(XMLParser.Name);335 this.state = 79;336 this._errHandler.sync(this);337 _la = this._input.LA(1);338 while (_la === XMLParser.Name) {339 {340 {341 this.state = 76;342 this.attribute();343 }344 }345 this.state = 81;346 this._errHandler.sync(this);347 _la = this._input.LA(1);348 }349 this.state = 82;350 this.match(XMLParser.SLASH_CLOSE);351 }352 break;353 }354 }355 catch (re) {356 if (re instanceof RecognitionException) {357 _localctx.exception = re;358 this._errHandler.reportError(this, re);359 this._errHandler.recover(this, re);360 } else {361 throw re;362 }363 }364 finally {365 this.exitRule();366 }367 return _localctx;368 }369 // @RuleVersion(0)370 public reference(): ReferenceContext {371 let _localctx: ReferenceContext = new ReferenceContext(this._ctx, this.state);372 this.enterRule(_localctx, 8, XMLParser.RULE_reference);373 let _la: number;374 try {375 this.enterOuterAlt(_localctx, 1);376 {377 this.state = 85;378 _la = this._input.LA(1);379 if (!(_la === XMLParser.EntityRef || _la === XMLParser.CharRef)) {380 this._errHandler.recoverInline(this);381 } else {382 if (this._input.LA(1) === Token.EOF) {383 this.matchedEOF = true;384 }385 this._errHandler.reportMatch(this);386 this.consume();387 }388 }389 }390 catch (re) {391 if (re instanceof RecognitionException) {392 _localctx.exception = re;393 this._errHandler.reportError(this, re);394 this._errHandler.recover(this, re);395 } else {396 throw re;397 }398 }399 finally {400 this.exitRule();401 }402 return _localctx;403 }404 // @RuleVersion(0)405 public attribute(): AttributeContext {406 let _localctx: AttributeContext = new AttributeContext(this._ctx, this.state);407 this.enterRule(_localctx, 10, XMLParser.RULE_attribute);408 try {409 this.enterOuterAlt(_localctx, 1);410 {411 this.state = 87;412 this.match(XMLParser.Name);413 this.state = 88;414 this.match(XMLParser.EQUALS);415 this.state = 89;416 this.match(XMLParser.STRING);417 }418 }419 catch (re) {420 if (re instanceof RecognitionException) {421 _localctx.exception = re;422 this._errHandler.reportError(this, re);423 this._errHandler.recover(this, re);424 } else {425 throw re;426 }427 }428 finally {429 this.exitRule();430 }431 return _localctx;432 }433 // @RuleVersion(0)434 public chardata(): ChardataContext {435 let _localctx: ChardataContext = new ChardataContext(this._ctx, this.state);436 this.enterRule(_localctx, 12, XMLParser.RULE_chardata);437 let _la: number;438 try {439 this.enterOuterAlt(_localctx, 1);440 {441 this.state = 91;442 _la = this._input.LA(1);443 if (!(_la === XMLParser.SEA_WS || _la === XMLParser.TEXT)) {444 this._errHandler.recoverInline(this);445 } else {446 if (this._input.LA(1) === Token.EOF) {447 this.matchedEOF = true;448 }449 this._errHandler.reportMatch(this);450 this.consume();451 }452 }453 }454 catch (re) {455 if (re instanceof RecognitionException) {456 _localctx.exception = re;457 this._errHandler.reportError(this, re);458 this._errHandler.recover(this, re);459 } else {460 throw re;461 }462 }463 finally {464 this.exitRule();465 }466 return _localctx;467 }468 // @RuleVersion(0)469 public misc(): MiscContext {470 let _localctx: MiscContext = new MiscContext(this._ctx, this.state);471 this.enterRule(_localctx, 14, XMLParser.RULE_misc);472 let _la: number;473 try {474 this.enterOuterAlt(_localctx, 1);475 {476 this.state = 93;477 _la = this._input.LA(1);478 if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << XMLParser.COMMENT) | (1 << XMLParser.SEA_WS) | (1 << XMLParser.PI))) !== 0))) {479 this._errHandler.recoverInline(this);480 } else {481 if (this._input.LA(1) === Token.EOF) {482 this.matchedEOF = true;483 }484 this._errHandler.reportMatch(this);485 this.consume();486 }487 }488 }489 catch (re) {490 if (re instanceof RecognitionException) {491 _localctx.exception = re;492 this._errHandler.reportError(this, re);493 this._errHandler.recover(this, re);494 } else {495 throw re;496 }497 }498 finally {499 this.exitRule();500 }501 return _localctx;502 }503 public static readonly _serializedATN: string =504 "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x14b\x04\x02" +505 "\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +506 "\t\x07\x04\b\t\b\x04\t\t\t\x03\x02\x05\x02\x14\n\x02\x03\x02\x07\x02\x17" +507 "\n\x02\f\x02\x0E\x02\x1A\v\x02\x03\x02\x03\x02\x07\x02\x1E\n\x02\f\x02" +508 "\x0E\x02!\v\x02\x03\x03\x03\x03\x07\x03%\n\x03\f\x03\x0E\x03(\v\x03\x03" +509 "\x03\x03\x03\x03\x04\x05\x04-\n\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03" +510 "\x04\x05\x044\n\x04\x03\x04\x05\x047\n\x04\x07\x049\n\x04\f\x04\x0E\x04" +511 "<\v\x04\x03\x05\x03\x05\x03\x05\x07\x05A\n\x05\f\x05\x0E\x05D\v\x05\x03" +512 "\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03" +513 "\x05\x07\x05P\n\x05\f\x05\x0E\x05S\v\x05\x03\x05\x05\x05V\n\x05\x03\x06" +514 "\x03\x06\x03\x07\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t" +515 "\x02\x02\x02\n\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02\x10\x02" +516 "\x02\x05\x03\x02\x06\x07\x04\x02\b\b\v\v\x05\x02\x03\x03\b\b\x14\x14\x02" +517 "g\x02\x13\x03\x02\x02\x02\x04\"\x03\x02\x02\x02\x06,\x03\x02\x02\x02\b" +518 "U\x03\x02\x02\x02\nW\x03\x02\x02\x02\fY\x03\x02\x02\x02\x0E]\x03\x02\x02" +519 "\x02\x10_\x03\x02\x02\x02\x12\x14\x05\x04\x03\x02\x13\x12\x03\x02\x02" +520 "\x02\x13\x14\x03\x02\x02\x02\x14\x18\x03\x02\x02\x02\x15\x17\x05\x10\t" +521 "\x02\x16\x15\x03\x02\x02\x02\x17\x1A\x03\x02\x02\x02\x18\x16\x03\x02\x02" +522 "\x02\x18\x19\x03\x02\x02\x02\x19\x1B\x03\x02\x02\x02\x1A\x18\x03\x02\x02" +523 "\x02\x1B\x1F\x05\b\x05\x02\x1C\x1E\x05\x10\t\x02\x1D\x1C\x03\x02\x02\x02" +524 "\x1E!\x03\x02\x02\x02\x1F\x1D\x03\x02\x02\x02\x1F \x03\x02\x02\x02 \x03" +525 "\x03\x02\x02\x02!\x1F\x03\x02\x02\x02\"&\x07\n\x02\x02#%\x05\f\x07\x02" +526 "$#\x03\x02\x02\x02%(\x03\x02\x02\x02&$\x03\x02\x02\x02&\'\x03\x02\x02" +527 "\x02\')\x03\x02\x02\x02(&\x03\x02\x02\x02)*\x07\r\x02\x02*\x05\x03\x02" +528 "\x02\x02+-\x05\x0E\b\x02,+\x03\x02\x02\x02,-\x03\x02\x02\x02-:\x03\x02" +529 "\x02\x02.4\x05\b\x05\x02/4\x05\n\x06\x0204\x07\x04\x02\x0214\x07\x14\x02" +530 "\x0224\x07\x03\x02\x023.\x03\x02\x02\x023/\x03\x02\x02\x0230\x03\x02\x02" +531 "\x0231\x03\x02\x02\x0232\x03\x02\x02\x0246\x03\x02\x02\x0257\x05\x0E\b" +532 "\x0265\x03\x02\x02\x0267\x03\x02\x02\x0279\x03\x02\x02\x0283\x03\x02\x02" +533 "\x029<\x03\x02\x02\x02:8\x03\x02\x02\x02:;\x03\x02\x02\x02;\x07\x03\x02" +534 "\x02\x02<:\x03\x02\x02\x02=>\x07\t\x02\x02>B\x07\x12\x02\x02?A\x05\f\x07" +535 "\x02@?\x03\x02\x02\x02AD\x03\x02\x02\x02B@\x03\x02\x02\x02BC\x03\x02\x02" +536 "\x02CE\x03\x02\x02\x02DB\x03\x02\x02\x02EF\x07\f\x02\x02FG\x05\x06\x04" +537 "\x02GH\x07\t\x02\x02HI\x07\x0F\x02\x02IJ\x07\x12\x02\x02JK\x07\f\x02\x02" +538 "KV\x03\x02\x02\x02LM\x07\t\x02\x02MQ\x07\x12\x02\x02NP\x05\f\x07\x02O" +539 "N\x03\x02\x02\x02PS\x03\x02\x02\x02QO\x03\x02\x02\x02QR\x03\x02\x02\x02" +540 "RT\x03\x02\x02\x02SQ\x03\x02\x02\x02TV\x07\x0E\x02\x02U=\x03\x02\x02\x02" +541 "UL\x03\x02\x02\x02V\t\x03\x02\x02\x02WX\t\x02\x02\x02X\v\x03\x02\x02\x02" +542 "YZ\x07\x12\x02\x02Z[\x07\x10\x02\x02[\\\x07\x11\x02\x02\\\r\x03\x02\x02" +543 "\x02]^\t\x03\x02\x02^\x0F\x03\x02\x02\x02_`\t\x04\x02\x02`\x11\x03\x02" +544 "\x02\x02\r\x13\x18\x1F&,36:BQU";545 public static __ATN: ATN;546 public static get _ATN(): ATN {547 if (!XMLParser.__ATN) {548 XMLParser.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(XMLParser._serializedATN));549 }550 return XMLParser.__ATN;551 }552}553export class DocumentContext extends ParserRuleContext {554 public element(): ElementContext {555 return this.getRuleContext(0, ElementContext);556 }557 public prolog(): PrologContext | undefined {558 return this.tryGetRuleContext(0, PrologContext);559 }560 public misc(): MiscContext[];561 public misc(i: number): MiscContext;562 public misc(i?: number): MiscContext | MiscContext[] {563 if (i === undefined) {564 return this.getRuleContexts(MiscContext);565 } else {566 return this.getRuleContext(i, MiscContext);567 }568 }569 constructor(parent: ParserRuleContext | undefined, invokingState: number) {570 super(parent, invokingState);571 }572 // @Override573 public get ruleIndex(): number { return XMLParser.RULE_document; }574 // @Override575 public enterRule(listener: XMLParserListener): void {576 if (listener.enterDocument) {577 listener.enterDocument(this);578 }579 }580 // @Override581 public exitRule(listener: XMLParserListener): void {582 if (listener.exitDocument) {583 listener.exitDocument(this);584 }585 }586 // @Override587 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {588 if (visitor.visitDocument) {589 return visitor.visitDocument(this);590 } else {591 return visitor.visitChildren(this);592 }593 }594}595export class PrologContext extends ParserRuleContext {596 public XMLDeclOpen(): TerminalNode { return this.getToken(XMLParser.XMLDeclOpen, 0); }597 public SPECIAL_CLOSE(): TerminalNode { return this.getToken(XMLParser.SPECIAL_CLOSE, 0); }598 public attribute(): AttributeContext[];599 public attribute(i: number): AttributeContext;600 public attribute(i?: number): AttributeContext | AttributeContext[] {601 if (i === undefined) {602 return this.getRuleContexts(AttributeContext);603 } else {604 return this.getRuleContext(i, AttributeContext);605 }606 }607 constructor(parent: ParserRuleContext | undefined, invokingState: number) {608 super(parent, invokingState);609 }610 // @Override611 public get ruleIndex(): number { return XMLParser.RULE_prolog; }612 // @Override613 public enterRule(listener: XMLParserListener): void {614 if (listener.enterProlog) {615 listener.enterProlog(this);616 }617 }618 // @Override619 public exitRule(listener: XMLParserListener): void {620 if (listener.exitProlog) {621 listener.exitProlog(this);622 }623 }624 // @Override625 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {626 if (visitor.visitProlog) {627 return visitor.visitProlog(this);628 } else {629 return visitor.visitChildren(this);630 }631 }632}633export class ContentContext extends ParserRuleContext {634 public chardata(): ChardataContext[];635 public chardata(i: number): ChardataContext;636 public chardata(i?: number): ChardataContext | ChardataContext[] {637 if (i === undefined) {638 return this.getRuleContexts(ChardataContext);639 } else {640 return this.getRuleContext(i, ChardataContext);641 }642 }643 public element(): ElementContext[];644 public element(i: number): ElementContext;645 public element(i?: number): ElementContext | ElementContext[] {646 if (i === undefined) {647 return this.getRuleContexts(ElementContext);648 } else {649 return this.getRuleContext(i, ElementContext);650 }651 }652 public reference(): ReferenceContext[];653 public reference(i: number): ReferenceContext;654 public reference(i?: number): ReferenceContext | ReferenceContext[] {655 if (i === undefined) {656 return this.getRuleContexts(ReferenceContext);657 } else {658 return this.getRuleContext(i, ReferenceContext);659 }660 }661 public CDATA(): TerminalNode[];662 public CDATA(i: number): TerminalNode;663 public CDATA(i?: number): TerminalNode | TerminalNode[] {664 if (i === undefined) {665 return this.getTokens(XMLParser.CDATA);666 } else {667 return this.getToken(XMLParser.CDATA, i);668 }669 }670 public PI(): TerminalNode[];671 public PI(i: number): TerminalNode;672 public PI(i?: number): TerminalNode | TerminalNode[] {673 if (i === undefined) {674 return this.getTokens(XMLParser.PI);675 } else {676 return this.getToken(XMLParser.PI, i);677 }678 }679 public COMMENT(): TerminalNode[];680 public COMMENT(i: number): TerminalNode;681 public COMMENT(i?: number): TerminalNode | TerminalNode[] {682 if (i === undefined) {683 return this.getTokens(XMLParser.COMMENT);684 } else {685 return this.getToken(XMLParser.COMMENT, i);686 }687 }688 constructor(parent: ParserRuleContext | undefined, invokingState: number) {689 super(parent, invokingState);690 }691 // @Override692 public get ruleIndex(): number { return XMLParser.RULE_content; }693 // @Override694 public enterRule(listener: XMLParserListener): void {695 if (listener.enterContent) {696 listener.enterContent(this);697 }698 }699 // @Override700 public exitRule(listener: XMLParserListener): void {701 if (listener.exitContent) {702 listener.exitContent(this);703 }704 }705 // @Override706 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {707 if (visitor.visitContent) {708 return visitor.visitContent(this);709 } else {710 return visitor.visitChildren(this);711 }712 }713}714export class ElementContext extends ParserRuleContext {715 public OPEN(): TerminalNode[];716 public OPEN(i: number): TerminalNode;717 public OPEN(i?: number): TerminalNode | TerminalNode[] {718 if (i === undefined) {719 return this.getTokens(XMLParser.OPEN);720 } else {721 return this.getToken(XMLParser.OPEN, i);722 }723 }724 public Name(): TerminalNode[];725 public Name(i: number): TerminalNode;726 public Name(i?: number): TerminalNode | TerminalNode[] {727 if (i === undefined) {728 return this.getTokens(XMLParser.Name);729 } else {730 return this.getToken(XMLParser.Name, i);731 }732 }733 public CLOSE(): TerminalNode[];734 public CLOSE(i: number): TerminalNode;735 public CLOSE(i?: number): TerminalNode | TerminalNode[] {736 if (i === undefined) {737 return this.getTokens(XMLParser.CLOSE);738 } else {739 return this.getToken(XMLParser.CLOSE, i);740 }741 }742 public content(): ContentContext | undefined {743 return this.tryGetRuleContext(0, ContentContext);744 }745 public SLASH(): TerminalNode | undefined { return this.tryGetToken(XMLParser.SLASH, 0); }746 public attribute(): AttributeContext[];747 public attribute(i: number): AttributeContext;748 public attribute(i?: number): AttributeContext | AttributeContext[] {749 if (i === undefined) {750 return this.getRuleContexts(AttributeContext);751 } else {752 return this.getRuleContext(i, AttributeContext);753 }754 }755 public SLASH_CLOSE(): TerminalNode | undefined { return this.tryGetToken(XMLParser.SLASH_CLOSE, 0); }756 constructor(parent: ParserRuleContext | undefined, invokingState: number) {757 super(parent, invokingState);758 }759 // @Override760 public get ruleIndex(): number { return XMLParser.RULE_element; }761 // @Override762 public enterRule(listener: XMLParserListener): void {763 if (listener.enterElement) {764 listener.enterElement(this);765 }766 }767 // @Override768 public exitRule(listener: XMLParserListener): void {769 if (listener.exitElement) {770 listener.exitElement(this);771 }772 }773 // @Override774 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {775 if (visitor.visitElement) {776 return visitor.visitElement(this);777 } else {778 return visitor.visitChildren(this);779 }780 }781}782export class ReferenceContext extends ParserRuleContext {783 public EntityRef(): TerminalNode | undefined { return this.tryGetToken(XMLParser.EntityRef, 0); }784 public CharRef(): TerminalNode | undefined { return this.tryGetToken(XMLParser.CharRef, 0); }785 constructor(parent: ParserRuleContext | undefined, invokingState: number) {786 super(parent, invokingState);787 }788 // @Override789 public get ruleIndex(): number { return XMLParser.RULE_reference; }790 // @Override791 public enterRule(listener: XMLParserListener): void {792 if (listener.enterReference) {793 listener.enterReference(this);794 }795 }796 // @Override797 public exitRule(listener: XMLParserListener): void {798 if (listener.exitReference) {799 listener.exitReference(this);800 }801 }802 // @Override803 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {804 if (visitor.visitReference) {805 return visitor.visitReference(this);806 } else {807 return visitor.visitChildren(this);808 }809 }810}811export class AttributeContext extends ParserRuleContext {812 public Name(): TerminalNode { return this.getToken(XMLParser.Name, 0); }813 public EQUALS(): TerminalNode { return this.getToken(XMLParser.EQUALS, 0); }814 public STRING(): TerminalNode { return this.getToken(XMLParser.STRING, 0); }815 constructor(parent: ParserRuleContext | undefined, invokingState: number) {816 super(parent, invokingState);817 }818 // @Override819 public get ruleIndex(): number { return XMLParser.RULE_attribute; }820 // @Override821 public enterRule(listener: XMLParserListener): void {822 if (listener.enterAttribute) {823 listener.enterAttribute(this);824 }825 }826 // @Override827 public exitRule(listener: XMLParserListener): void {828 if (listener.exitAttribute) {829 listener.exitAttribute(this);830 }831 }832 // @Override833 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {834 if (visitor.visitAttribute) {835 return visitor.visitAttribute(this);836 } else {837 return visitor.visitChildren(this);838 }839 }840}841export class ChardataContext extends ParserRuleContext {842 public TEXT(): TerminalNode | undefined { return this.tryGetToken(XMLParser.TEXT, 0); }843 public SEA_WS(): TerminalNode | undefined { return this.tryGetToken(XMLParser.SEA_WS, 0); }844 constructor(parent: ParserRuleContext | undefined, invokingState: number) {845 super(parent, invokingState);846 }847 // @Override848 public get ruleIndex(): number { return XMLParser.RULE_chardata; }849 // @Override850 public enterRule(listener: XMLParserListener): void {851 if (listener.enterChardata) {852 listener.enterChardata(this);853 }854 }855 // @Override856 public exitRule(listener: XMLParserListener): void {857 if (listener.exitChardata) {858 listener.exitChardata(this);859 }860 }861 // @Override862 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {863 if (visitor.visitChardata) {864 return visitor.visitChardata(this);865 } else {866 return visitor.visitChildren(this);867 }868 }869}870export class MiscContext extends ParserRuleContext {871 public COMMENT(): TerminalNode | undefined { return this.tryGetToken(XMLParser.COMMENT, 0); }872 public PI(): TerminalNode | undefined { return this.tryGetToken(XMLParser.PI, 0); }873 public SEA_WS(): TerminalNode | undefined { return this.tryGetToken(XMLParser.SEA_WS, 0); }874 constructor(parent: ParserRuleContext | undefined, invokingState: number) {875 super(parent, invokingState);876 }877 // @Override878 public get ruleIndex(): number { return XMLParser.RULE_misc; }879 // @Override880 public enterRule(listener: XMLParserListener): void {881 if (listener.enterMisc) {882 listener.enterMisc(this);883 }884 }885 // @Override886 public exitRule(listener: XMLParserListener): void {887 if (listener.exitMisc) {888 listener.exitMisc(this);889 }890 }891 // @Override892 public accept<Result>(visitor: XMLParserVisitor<Result>): Result {893 if (visitor.visitMisc) {894 return visitor.visitMisc(this);895 } else {896 return visitor.visitChildren(this);897 }898 }...

Full Screen

Full Screen

fast-xml-parser_vx.x.x.js

Source:fast-xml-parser_vx.x.x.js Github

copy

Full Screen

1// flow-typed signature: b44ca5f42766dcfcb9979b6a5aa33f1e2// flow-typed version: <<STUB>>/fast-xml-parser_v4.0.8/flow_v0.171.03/**4 * This is an autogenerated libdef stub for:5 *6 * 'fast-xml-parser'7 *8 * Fill this stub out by replacing all the `any` types.9 *10 * Once filled out, we encourage you to share your work with the11 * community by sending a pull request to:12 * https://github.com/flowtype/flow-typed13 */14declare module 'fast-xml-parser' {15 declare module.exports: any;16}17/**18 * We include stubs for each file inside this npm package in case you need to19 * require those files directly. Feel free to delete any files that aren't20 * needed.21 */22declare module 'fast-xml-parser/src/cli/cli' {23 declare module.exports: any;24}25declare module 'fast-xml-parser/src/cli/man' {26 declare module.exports: any;27}28declare module 'fast-xml-parser/src/cli/read' {29 declare module.exports: any;30}31declare module 'fast-xml-parser/src/fxp' {32 declare module.exports: any;33}34declare module 'fast-xml-parser/src/util' {35 declare module.exports: any;36}37declare module 'fast-xml-parser/src/validator' {38 declare module.exports: any;39}40declare module 'fast-xml-parser/src/xmlbuilder/json2xml' {41 declare module.exports: any;42}43declare module 'fast-xml-parser/src/xmlbuilder/orderedJs2Xml' {44 declare module.exports: any;45}46declare module 'fast-xml-parser/src/xmlbuilder/prettifyJs2Xml' {47 declare module.exports: any;48}49declare module 'fast-xml-parser/src/xmlparser/DocTypeReader' {50 declare module.exports: any;51}52declare module 'fast-xml-parser/src/xmlparser/node2json' {53 declare module.exports: any;54}55declare module 'fast-xml-parser/src/xmlparser/OptionsBuilder' {56 declare module.exports: any;57}58declare module 'fast-xml-parser/src/xmlparser/OrderedObjParser' {59 declare module.exports: any;60}61declare module 'fast-xml-parser/src/xmlparser/xmlNode' {62 declare module.exports: any;63}64declare module 'fast-xml-parser/src/xmlparser/XMLParser' {65 declare module.exports: any;66}67// Filename aliases68declare module 'fast-xml-parser/src/cli/cli.js' {69 declare module.exports: $Exports<'fast-xml-parser/src/cli/cli'>;70}71declare module 'fast-xml-parser/src/cli/man.js' {72 declare module.exports: $Exports<'fast-xml-parser/src/cli/man'>;73}74declare module 'fast-xml-parser/src/cli/read.js' {75 declare module.exports: $Exports<'fast-xml-parser/src/cli/read'>;76}77declare module 'fast-xml-parser/src/fxp.js' {78 declare module.exports: $Exports<'fast-xml-parser/src/fxp'>;79}80declare module 'fast-xml-parser/src/util.js' {81 declare module.exports: $Exports<'fast-xml-parser/src/util'>;82}83declare module 'fast-xml-parser/src/validator.js' {84 declare module.exports: $Exports<'fast-xml-parser/src/validator'>;85}86declare module 'fast-xml-parser/src/xmlbuilder/json2xml.js' {87 declare module.exports: $Exports<'fast-xml-parser/src/xmlbuilder/json2xml'>;88}89declare module 'fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js' {90 declare module.exports: $Exports<'fast-xml-parser/src/xmlbuilder/orderedJs2Xml'>;91}92declare module 'fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js' {93 declare module.exports: $Exports<'fast-xml-parser/src/xmlbuilder/prettifyJs2Xml'>;94}95declare module 'fast-xml-parser/src/xmlparser/DocTypeReader.js' {96 declare module.exports: $Exports<'fast-xml-parser/src/xmlparser/DocTypeReader'>;97}98declare module 'fast-xml-parser/src/xmlparser/node2json.js' {99 declare module.exports: $Exports<'fast-xml-parser/src/xmlparser/node2json'>;100}101declare module 'fast-xml-parser/src/xmlparser/OptionsBuilder.js' {102 declare module.exports: $Exports<'fast-xml-parser/src/xmlparser/OptionsBuilder'>;103}104declare module 'fast-xml-parser/src/xmlparser/OrderedObjParser.js' {105 declare module.exports: $Exports<'fast-xml-parser/src/xmlparser/OrderedObjParser'>;106}107declare module 'fast-xml-parser/src/xmlparser/xmlNode.js' {108 declare module.exports: $Exports<'fast-xml-parser/src/xmlparser/xmlNode'>;109}110declare module 'fast-xml-parser/src/xmlparser/XMLParser.js' {111 declare module.exports: $Exports<'fast-xml-parser/src/xmlparser/XMLParser'>;...

Full Screen

Full Screen

XMLParserListener.ts

Source:XMLParserListener.ts Github

copy

Full Screen

1// Generated from ./lib/grammars/xml/XMLParser.g4 by ANTLR 4.9.0-SNAPSHOT2import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";3import { DocumentContext } from "./XMLParser";4import { PrologContext } from "./XMLParser";5import { ContentContext } from "./XMLParser";6import { ElementContext } from "./XMLParser";7import { ReferenceContext } from "./XMLParser";8import { AttributeContext } from "./XMLParser";9import { ChardataContext } from "./XMLParser";10import { MiscContext } from "./XMLParser";11/**12 * This interface defines a complete listener for a parse tree produced by13 * `XMLParser`.14 */15export interface XMLParserListener extends ParseTreeListener {16 /**17 * Enter a parse tree produced by `XMLParser.document`.18 * @param ctx the parse tree19 */20 enterDocument?: (ctx: DocumentContext) => void;21 /**22 * Exit a parse tree produced by `XMLParser.document`.23 * @param ctx the parse tree24 */25 exitDocument?: (ctx: DocumentContext) => void;26 /**27 * Enter a parse tree produced by `XMLParser.prolog`.28 * @param ctx the parse tree29 */30 enterProlog?: (ctx: PrologContext) => void;31 /**32 * Exit a parse tree produced by `XMLParser.prolog`.33 * @param ctx the parse tree34 */35 exitProlog?: (ctx: PrologContext) => void;36 /**37 * Enter a parse tree produced by `XMLParser.content`.38 * @param ctx the parse tree39 */40 enterContent?: (ctx: ContentContext) => void;41 /**42 * Exit a parse tree produced by `XMLParser.content`.43 * @param ctx the parse tree44 */45 exitContent?: (ctx: ContentContext) => void;46 /**47 * Enter a parse tree produced by `XMLParser.element`.48 * @param ctx the parse tree49 */50 enterElement?: (ctx: ElementContext) => void;51 /**52 * Exit a parse tree produced by `XMLParser.element`.53 * @param ctx the parse tree54 */55 exitElement?: (ctx: ElementContext) => void;56 /**57 * Enter a parse tree produced by `XMLParser.reference`.58 * @param ctx the parse tree59 */60 enterReference?: (ctx: ReferenceContext) => void;61 /**62 * Exit a parse tree produced by `XMLParser.reference`.63 * @param ctx the parse tree64 */65 exitReference?: (ctx: ReferenceContext) => void;66 /**67 * Enter a parse tree produced by `XMLParser.attribute`.68 * @param ctx the parse tree69 */70 enterAttribute?: (ctx: AttributeContext) => void;71 /**72 * Exit a parse tree produced by `XMLParser.attribute`.73 * @param ctx the parse tree74 */75 exitAttribute?: (ctx: AttributeContext) => void;76 /**77 * Enter a parse tree produced by `XMLParser.chardata`.78 * @param ctx the parse tree79 */80 enterChardata?: (ctx: ChardataContext) => void;81 /**82 * Exit a parse tree produced by `XMLParser.chardata`.83 * @param ctx the parse tree84 */85 exitChardata?: (ctx: ChardataContext) => void;86 /**87 * Enter a parse tree produced by `XMLParser.misc`.88 * @param ctx the parse tree89 */90 enterMisc?: (ctx: MiscContext) => void;91 /**92 * Exit a parse tree produced by `XMLParser.misc`.93 * @param ctx the parse tree94 */95 exitMisc?: (ctx: MiscContext) => void;...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlparser = require('apimocker/xmlparser');2var xml = '<xml><a>1</a><b>2</b></xml>';3var obj = xmlparser.parse(xml);4console.log(obj);5console.log(obj.xml.a);6var jsonparser = require('apimocker/jsonparser');7var json = '{"a":1,"b":2}';8var obj = jsonparser.parse(json);9console.log(obj);10console.log(obj.a);11var csvparser = require('apimocker/csvparser');12var csv = 'a,b,c,d\ne,f,g,h\ni,j,k,l';13var obj = csvparser.parse(csv);14console.log(obj);15console.log(obj[0].a);16var yamlparser = require('apimocker/yamlparser');17b: 2';18var obj = yamlparser.parse(yaml);19console.log(obj);20console.log(obj.a);21var xlsxparser = require('apimocker/xlsxparser');225,6,7,8';23var obj = xlsxparser.parse(xlsx);24console.log(obj);25console.log(obj[0].a);26var txtparser = require('apimocker/txtparser');275,6,7,8';28var obj = txtparser.parse(txt);29console.log(obj);30console.log(obj[0].a);31var htmlparser = require('apimocker/htmlparser');32var html = '<html><body><a>1</a><b>2</b></body></html>';33var obj = htmlparser.parse(html);34console.log(obj);35console.log(obj.html.body.a);36var binaryparser = require('apimocker/b

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlparser = require('apimocker/xmlparser');2var xml = '<xml><name>test</name></xml>';3var json = xmlparser.parse(xml);4var jsonparser = require('apimocker/jsonparser');5var json = '{"name":"test"}';6var xml = jsonparser.parse(json);7var jsonparser = require('apimocker/jsonparser');8var json = '{"name":"test"}';9var xml = jsonparser.parse(json);10var jsonparser = require('apimocker/jsonparser');11var json = '{"name":"test"}';12var xml = jsonparser.parse(json);13var jsonparser = require('apimocker/jsonparser');14var json = '{"name":"test"}';15var xml = jsonparser.parse(json);16var jsonparser = require('apimocker/jsonparser');17var json = '{"name":"test"}';18var xml = jsonparser.parse(json);19var jsonparser = require('apimocker/jsonparser');20var json = '{"name":"test"}';21var xml = jsonparser.parse(json);22var jsonparser = require('apimocker/jsonparser');23var json = '{"name":"test"}';24var xml = jsonparser.parse(json);25var jsonparser = require('apimocker/jsonparser');26var json = '{"name":"test"}';27var xml = jsonparser.parse(json);28var jsonparser = require('apimocker/jsonparser');29var json = '{"name":"test"}';30var xml = jsonparser.parse(json);31var jsonparser = require('apimocker/jsonparser');32var json = '{"name":"test"}';33var xml = jsonparser.parse(json);34var jsonparser = require('apimocker/jsonparser');35var json = '{"name":"test"}';36var xml = jsonparser.parse(json);

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlParser = require('apimocker/xmlparser');2var xml = xmlParser.parse('./test.xml');3apim.setvariable('request.content', xml);4apim.setvariable('request.header.Content-Type', 'application/xml');5{6}7var jsonParser = require('apimocker/jsonparser');8var json = jsonParser.parse('./test.json');9apim.setvariable('request.content', json);10apim.setvariable('request.header.Content-Type', 'application/json');

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlparser = require('apimocker/xmlparser');2var xml = '<root><child>text</child></root>';3var obj = xmlparser.parse(xml);4console.log(obj);5{ root: { child: 'text' } }6var jsonparser = require('apimocker/jsonparser');7var json = '{"root":{"child":"text"}}';8var obj = jsonparser.parse(json);9console.log(obj);10{ root: { child: 'text' } }11var apimocker = require('apimocker');12var xml = '<root><child>text</child></root>';13var obj = apimocker.parse(xml);14console.log(obj);15{ root: { child: 'text' } }16var apimocker = require('apimocker');17var json = '{"root":{"child":"text"}}';18var obj = apimocker.parse(json);19console.log(obj);20{ root: { child: 'text' } }21var apimocker = require('apimocker');22var json = '{"root":{"child":"text"}}';23var obj = apimocker.parse(json);24console.log(obj);25{ root: { child: 'text' } }26var apimocker = require('apimocker');27var json = '{"root":{"child":"text"}}';28var obj = apimocker.parse(json);29console.log(obj);30{ root: { child: 'text' } }31var apimocker = require('apimocker');32var json = '{"root":{"child":"text"}}';33var obj = apimocker.parse(json);34console.log(obj);35{ root: { child: 'text' } }36var apimocker = require('apimocker');37var json = '{"root":{"child":"text"}}';38var obj = apimocker.parse(json

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlParser = require('apimocker/lib/xmlparser');2var xmlData = '<xml><name>test</name><value>test</value></xml>';3xmlParser.parse(xmlData, function (error, result) {4 if (error) {5 console.log(error);6 } else {7 console.log(result);8 }9});10{ xml: { name: 'test', value: 'test' } }11var jsonParser = require('apimocker/lib/jsonparser');12var jsonData = '{ "name": "test", "value": "test" }';13jsonParser.parse(jsonData, function (error, result) {14 if (error) {15 console.log(error);16 } else {17 console.log(result);18 }19});20{ name: 'test', value: 'test' }21var urlencodedParser = require('apimocker/lib/urlencodedparser');22var urlencodedData = 'name=test&value=test';23urlencodedParser.parse(urlencodedData, function (error, result) {24 if (error) {25 console.log(error);26 } else {27 console.log(result);28 }29});30{ name: 'test', value: 'test' }31var textParser = require('apimocker/lib/textparser');32var textData = 'test';33textParser.parse(textData, function (error, result) {34 if (error) {35 console.log(error);36 } else {37 console.log(result);38 }39});40var apiMocker = require('apimocker');41var app = express();42app.use(apiMocker('/api'));43var apiMocker = require('apimocker');44var app = express();45var config = {46};47app.use(apiMocker(config));48var apiMocker = require('apimocker');49var app = express();

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlparser = require('apimocker/xmlparser');2var xml = '<root><child1>text</child1></root>';3var result = xmlparser.parse(xml);4console.log(result);5var jsonparser = require('apimocker/jsonparser');6var json = '{"root":{"child1":"text"}}';7var result = jsonparser.parse(json);8console.log(result);9var csvparser = require('apimocker/csvparser');10var csv = 'root,child1\r\ntext';11var result = csvparser.parse(csv);12console.log(result);13var yamlparser = require('apimocker/yamlparser');14var yaml = 'root:\r\n child1: text';15var result = yamlparser.parse(yaml);16console.log(result);17var xmlbuilder = require('apimocker/xmlbuilder');18var xml = '<root><child1>text</child1></root>';19var result = xmlbuilder.build(xml);20console.log(result);21var jsonbuilder = require('apimocker/jsonbuilder');22var json = '{"root":{"child1":"text"}}';23var result = jsonbuilder.build(json);24console.log(result);

Full Screen

Using AI Code Generation

copy

Full Screen

1var apimocker = require('apimocker');2var xmlparser = apimocker.xmlparser;3var xmlResponse = xmlparser.buildXmlResponse({4 "root": {5 }6});7apimocker.setResponse(xmlResponse);8var apimocker = require('apimocker');9var xmlparser = apimocker.xmlparser;10var xmlResponse = xmlparser.buildXmlResponse({11 "root": {12 }13}, {14});15apimocker.setResponse(xmlResponse);

Full Screen

Using AI Code Generation

copy

Full Screen

1var xmlparser = require('apimocker/xmlparser');2var xml = '<xml><foo>bar</foo></xml>';3var json = xmlparser.parse(xml);4console.log(json);5{"name":"John"}6{"name":"John"}7{"name":"John"}8{"name":"John"}9{"name":"John"}

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 apimocker 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