Помогите обнаружить причину падения Squish

squish
testng
Теги: #<Tag:0x00007fedc08a0790> #<Tag:0x00007fedc08a0308>

(Irina Trish) #1

Добрый день. Уже неделю пытаюсь отловить баг, из-за которого на рандомных тестах сквиш (работает как удаленная библиотека на другой машине) вылетает. (из режима ожидания сервером падает в редактирование и возвращает на основную машину Connection to remote server broken: [Errno 111] Connection refused)

[details=Прилагаю лог сервера сквиша:]R: [2016-12-06T20:36:44.833+0400] QObject: Cannot create children for a parent that is in a different thread.
R: [2016-12-06T20:36:44.833+0400] (Parent is Squish::Runner(0x18fb38), parent’s thread is QThread(0x24dda60), current thread is QThread(0x3b2bf38)
R: [2016-12-06T20:36:44.833+0400] QSocketNotifier: Can only be used with threads started with QThread
S: [2016-12-06T20:36:44.833+0400] 20:36:44:833 Debug: Connection established from 127.0.0.1:60607
R: [2016-12-06T20:36:44.833+0400] RUNNERID: 20346
S: [2016-12-06T20:36:44.849+0400] 20:36:44:849 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\perl\bin
S: [2016-12-06T20:36:44.849+0400]
S: [2016-12-06T20:36:44.849+0400] 20:36:44:849 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\python
S: [2016-12-06T20:36:44.849+0400]
S: [2016-12-06T20:36:44.849+0400] 20:36:44:849 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\ruby\bin
S: [2016-12-06T20:36:44.849+0400]
S: [2016-12-06T20:36:44.849+0400] 20:36:44:849 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\tcl\bin
S: [2016-12-06T20:36:44.849+0400]
R: [2016-12-06T20:36:44.849+0400] AUTHOST: 127.0.0.1
R: [2016-12-06T20:36:44.849+0400] AUTPORT: 60033
R: [2016-12-06T20:36:44.849+0400] RUNNERID: -1
R: [2016-12-06T20:37:14.583+0400] 192.168.100.5 - - [06/Dec/2016 20:37:05] “POST /RMO HTTP/1.1” 200 203
R: [2016-12-06T20:37:14.583+0400] QObject::startTimer: QTimer can only be used with threads started with QThread
S: [2016-12-06T20:42:14.509+0400] 20:42:14:509 Debug: Connection closed from 127.0.0.1:60479
S: [2016-12-06T20:42:14.512+0400] 20:42:14:512 Debug: Connection closed from 127.0.0.1:60457
S: [2016-12-06T20:42:14.520+0400] 20:42:14:519 Debug: Connection closed from 127.0.0.1:60513
S: [2016-12-06T20:42:14.522+0400] 20:42:14:522 Debug: Connection closed from 127.0.0.1:60496
S: [2016-12-06T20:42:14.523+0400] 20:42:14:523 Debug: Connection closed from 127.0.0.1:60597
S: [2016-12-06T20:42:14.527+0400] 20:42:14:526 Debug: Connection closed from 127.0.0.1:60549
S: [2016-12-06T20:42:14.528+0400] 20:42:14:528 Debug: Connection closed from 127.0.0.1:60530
S: [2016-12-06T20:42:14.530+0400] 20:42:14:530 Debug: Connection closed from 127.0.0.1:60607
S: [2016-12-06T20:42:14.531+0400] 20:42:14:531 Debug: Connection closed from 127.0.0.1:60602
S: [2016-12-06T20:42:14.534+0400] 20:42:14:534 Debug: Connection closed from 127.0.0.1:60580
S: [2016-12-06T20:42:14.537+0400] 20:42:14:537 Debug: Connection established from 127.0.0.1:60608
S: [2016-12-06T20:42:14.539+0400] 20:42:14:539 Warning: ClientThread::handleCall: F_Register: no client found for AWP 20347
S: [2016-12-06T20:42:14.541+0400] 20:42:14:541 Debug: Connection closed from 127.0.0.1:60608
R: [2016-12-06T20:42:14.558+0400] squishrunner exited with value -1, started with arguments: [C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\bin\squishrunner.exe, --host, localhost, --port, 60033, --debugLog, palw, --testcase, C:\Users\Support\squish_rmo\suite_rmo44.157\tst_rmo, --suitedir, C:\Users\Support\squish_rmo\suite_rmo44.157, --ide, --debug, --snoozeFactor, 1.0, --interactive, --reportgen, xml3,C:\Users\Support\Documents\Squish Test Results\2016-12-06T19-59-39+0400\1]
S: [2016-12-07T13:23:23.524+0400] ProcessThread::run: Failed to find client for app id 20347
S: [2016-12-07T13:23:23.524+0400] 13:23:23:524 Debug: Connection established from 127.0.0.1:60614
S: [2016-12-07T13:23:23.540+0400] 13:23:23:540 Debug: Connection closed from 127.0.0.1:60614
R: [2016-12-07T13:23:23.586+0400]
S: [2016-12-07T13:23:23.774+0400] 13:23:23:774 Debug: Connection established from 127.0.0.1:60615
S: [2016-12-07T13:23:23.820+0400] 13:23:23:820 Debug: Connection closed from 127.0.0.1:60615
S: [2016-12-07T13:25:55.515+0400] 13:25:55:515 Debug: Connection established from 127.0.0.1:60618
R: [2016-12-07T13:25:55.515+0400] RUNNERID: 20349
S: [2016-12-07T13:25:55.531+0400] 13:25:55:531 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\perl\bin
S: [2016-12-07T13:25:55.531+0400]
S: [2016-12-07T13:25:55.531+0400] 13:25:55:531 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\python
S: [2016-12-07T13:25:55.531+0400]
S: [2016-12-07T13:25:55.531+0400] 13:25:55:531 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\ruby\bin
S: [2016-12-07T13:25:55.531+0400]
S: [2016-12-07T13:25:55.531+0400] 13:25:55:531 Debug: Dropping path from C:\Users\Support\Desktop\Squish\squish-6.0.1-windows for AUT start: C:\Users\Support\Desktop\Squish\squish-6.0.1-windows\tcl\bin
S: [2016-12-07T13:25:55.531+0400]
R: [2016-12-07T13:25:55.546+0400] AUTHOST: 127.0.0.1
R: [2016-12-07T13:25:55.546+0400] AUTPORT: 60033
R: [2016-12-07T13:25:55.546+0400] RUNNERID: 20349
S: [2016-12-07T13:25:57.840+0400] 13:25:57:840 Debug: Connection established from 127.0.0.1:60619
S: [2016-12-07T13:26:09.721+0400] 13:26:09:720 Debug: Connection closed from 127.0.0.1:60618
S: [2016-12-07T13:26:09.727+0400] 13:26:09:726 Debug: Connection closed from 127.0.0.1:60619[/details]

Отсоединение происходит при запуске приложения (команда запустить приложение выполняется (и приложение запускается), но уже не следующем шаге при попытке найти и вывести хэндл окна ничего не выходит). После запуска висит примерно 2 минуты и отваливается.

Сам сквишь при этом на что-то намекает, оставляя курсов на данном методе SocketServer.py
def _eintr_retry(func, *args):
    """restart a system call interrupted by EINTR"""
    while True:
        try:
            return func(*args)
        except (OSError, select.error) as e:
            if e.args[0] != errno.EINTR:
                raise

Ничего особо нового и необычного в тестах происходить не стало, в чём именно причина понять не могу. Может быть кто-то сталкивался?


(karkadil) #2

Я могу предположить 2 варианта:

  1. Вы тестируете десктопное приложение и пытаетесь это сделать на залоченной машине (это невозможно, необходимо либо залогиниться, либо подключиться через remote desktop)
  2. Тестируемое приложение использует более новую версию компонентов, а Сквиш используется старый (необходимо скачать Сквиш именно под ваше приложение, с правильной версией всех компонентов)