All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.intuit.karate.Actions Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
/*
 * The MIT License
 *
 * Copyright 2022 Karate Labs Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.intuit.karate;

import java.util.List;
import java.util.Map;

/**
 *
 * @author pthomas3
 */
public interface Actions {

    boolean isFailed();

    Throwable getFailedReason();

    boolean isAborted();

    void assertTrue(String exp);

    void call(String line);

    void callonce(String line);

    void csv(String name, String exp);
    
    void csvDocString(String name, String exp);

    void json(String name, String exp);

    void string(String name, String exp);

    void xml(String name, String exp);

    void xmlstring(String name, String exp);

    void bytes(String name, String exp);

    void configure(String key, String exp);

    void configureDocString(String key, String exp);

    void cookie(String name, String value);

    void cookies(String exp);

    void copy(String name, String exp);

    void def(String name, String exp);

    void defDocString(String name, String exp);

    void eval(String exp);

    void evalDocString(String exp);

    void eval(String name, String dotOrParen, String exp);

    void evalIf(String exp);
    
    void evalDelete(String exp);

    void formField(String name, String exp);

    void formFields(String exp);

    void header(String name, String exp);

    void headers(String exp);

    void listen(String exp);

    void match(String exp, String op1, String op2, String rhs);

    void method(String method);

    void retry(String until);

    void multipartEntity(String value);

    void multipartFiles(String exp);

    void multipartField(String name, String value);

    void multipartFields(String exp);

    void multipartFile(String name, String value);

    void param(String name, String exp);

    void params(String exp);

    void path(String exp);

    void print(String exp);        

    void remove(String name, String path);

    void replace(String name, List> table);

    void replace(String name, String token, String value);

    void request(String body);

    void requestDocString(String body);

    void set(String name, String path, String value);

    void setDocString(String name, String path, String value);

    void set(String name, String path, List> table);

    void soapAction(String action);

    void status(int status);

    void table(String name, List> table);

    void text(String name, String exp);

    void url(String exp);

    void yaml(String name, String exp);
    
    void yamlDocString(String name, String exp);

    void doc(String exp);

    void compareImage(String exp);

    //==========================================================================
    //
    void driver(String exp);

    void robot(String exp);
    
    void produce(String type);
    
    void register(String exp);
    
    void schema(String exp);
    
    void topic(String exp);
    
    void key(String exp);
    
    void value(String exp);
    
    void valueDocString(String exp);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy