How to use Rest Assured Framework in aiTest
How to use Rest Assured Automation Framework in aiTest.
Knowledge Base for aiTest
Appache Skywalking is an Application Performance Monitoring tool for distributed systems, especially designed for microservices, cloud native and container-based (Kubernetes) architectures.
aiTest uses Apache Skywalking tool to monitor the Application’s performance when URL test, Performance test or Multi Browser Test is runned in aiTest for the Application. Monitoring tests using Apache SkyWalking brings significant business value, including enhanced test visibility, proactive issue detection, performance optimization, scalability assessment, service dependencies analysis, root cause analysis, and continuous improvement.
Skywalking-agent(setuped in Application non-intrusively) ->
skywalking OAP server -> skywalking UI
RUN pip install apache-skywalking
python manage.py makemigrations && python manage.py migrate && sw-python run python manage.py runserver 0.0.0.0:8000
SW_AGENT_NAME: "Service name"
SW_AGENT_COLLECTOR_BACKEND_SERVICES: ExternalIP:11800
RUN wget https://dlcdn.apache.org/skywalking/java-agent/8.13.0/apache-skywalking-java-agent-8.13.0.tgz && tar zxvpf apache-skywalking-java-agent-8.13.0.tgz && rm apache-skywalking-java-agent-8.13.0.tgz
SW_AGENT_NAME: 'Service name'
SW_AGENT_COLLECTOR_BACKEND_SERVICES: ExternalIP:11800
1) setup mysql_exporter in the docker-compose.yaml
mysql-service:
image: prom/mysqld-exporter:v0.14.0
ports:
- 9104
environment:
- DATA_SOURCE_NAME=${USER}:${PASSWORD}@(${DB_SERVICE_NAME_IN_DOCKER-COMPOSE}:${DB_PORT})/
networks:
- ${NETWORK}
depends_on:
- ${DB_SERVICE_NAME_IN_DOCKER-COMPOSE}
2) Setup Otel Collector in docker-compose.yaml which will have config for prometheus receiver, processors: batch, exporters : otlp
otel-collector:
image: otel/opentelemetry-collector:0.67.0
networks:
- ${NETWORK}
command: [ "--config=/etc/otel-collector-config.yaml" ]
volumes:
- ${LOCATION_OF otel-collector-config.yaml}:/etc/otel-collector-config.yaml
expose:
- 55678
depends_on:
- ${DB_SERVICE_NAME_IN_DOCKER-COMPOSE}
3) Create otel-collector-config.yaml file for prometheus receiver, processors: batch, exporters : otlp
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'mysql-monitoring'
scrape_interval: 10s
static_configs:
- targets: ['mysql-service:9104']
processors:
batch:
exporters:
otlp:
endpoint: ${SKYWALKING_SERVER_EXTERNAL_IP}:11800
tls:
insecure: true
service:
pipelines:
metrics:
receivers:
- prometheus
processors:
- batch
exporters:
- otlp