Skip to content

Instantly share code, notes, and snippets.

@yashaka
yashaka / LICENSE
Created October 16, 2025 08:31
Compex features test design template (very draft)
MIT License
Copyright (c) 2025 Iakiv Kramarenko
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:
@yashaka
yashaka / table_page_object_draft_example.py
Created December 28, 2022 12:38
Table PageObject example [draft]
class Cell:
def __init__(self, element: Element):
self.element = element
self.input = self.element.element('input')
def start_editing(self):
self.element.double_click()
return self
def set(self, value):
@yashaka
yashaka / python_decorators_to_log_function_calls_example.py
Created August 18, 2022 19:47
The code from lesson «Python Decorators to Log Test Steps»
import types
from functools import wraps
def humanify(name: str):
import re
return ' '.join(re.split('_+', name))
def step(fn):
// виходить тут як раз воно не вилазить
function processResponse({response, ...rest}: {response: object} & {[key: string]: any}): {response: object;} & {[key: string]: any} {
// do something with response
return {response, ...rest}
}
// вилазити починає саме коли з'являється обмження що саме конкретно той тип А що зайшов на вхід то той і має вийти на виході...
function processResponse_<A>({response, ...rest}: {response: object} & A): {response: object;} & A {
// do something with response
@yashaka
yashaka / selene-custom-conditions-to-wait-for-several-elements.py
Created November 17, 2021 12:46
selene-custom-conditions-to-wait-for-several-elements.py
"""
можно передавать лямбды вместо кондишенов в Selene
но в лямбдах-кондишенах для Selene
нужно возвращать не тру/фолс, а просто кидать еррор если было фолс
например
"""
@yashaka
yashaka / a1-03-first-plan-01-task.md
Last active November 23, 2020 15:57
Перший план

Перший план

[TOC]

Цілі {#goals}

  • Навчитись аналізувати і систематизувати функціональність додатків на старті побудови тестування
  • Приорітизувати функціональність з точки зору важливості для користувача
@yashaka
yashaka / how to learn advanced automation.md
Last active July 28, 2020 10:58
Навчання для просунутих автоматизаторів?

Навчання для просунутих автоматизаторів?

Зустрів тут питання на теренах ком’юніті – «курси для просунутих автоматизаторів? ну так щоб швидко в’їхати в тему, якщо в іншій вже шариш...»

Дуже круто знати підбірку таких курсів, ага :) Я от не знаю... Якщо у кого є що порадити – кидайте посилання в коменти;)

Мова йде про ресурси типу:

  • learnxinyminutes.com/ для швидкого знайомства з синтаксисом мови, якщо іншу вже знаєш
  • koans для швидкої практики в синтаксисі
@yashaka
yashaka / report.py
Last active January 20, 2025 23:23
your_project/helpers/allure/report.py (custom allure step impl example: human readable autogenerated titles with arguments and function context logged (class or module))
import re
import inspect
from functools import wraps
from allure_commons import plugin_manager
from allure_commons.utils import uuid4, func_parameters, represent
def step(title, display_params=True):
if callable(title):
@yashaka
yashaka / SeleneElementExtensions.cs
Created June 25, 2020 13:50
Bills.Tests/Core/SeleneElementExtensions.cs
using OpenQA.Selenium;
using static NSelene.Selene;
using NSelene;
using OpenQA.Selenium.Interactions;
using System;
using NSelene.Conditions;
namespace Bills.Tests.Core
{
public static class SeleneElementExtensions
@yashaka
yashaka / SeleneCollectionExtensions.cs
Created June 25, 2020 13:48
Bills.Tests/Core/SeleneCollectionExtensions.cs
using OpenQA.Selenium;
using static NSelene.Selene;
using NSelene;
using OpenQA.Selenium.Interactions;
using System;
using NSelene.Conditions;
using System.Linq;
using System.Collections.Generic;
namespace Bills.Tests.Core