Project

General

Profile

Actions

action #1314

closed

Include an API to make assert for console application (text asserts)

Added by aplanas about 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2014-01-27
Due date:
% Done:

0%

Estimated time:

Description

Console tests are using graphical elements to make the assert. We need better ways to assert text from the console


Related issues 1 (0 open1 closed)

Related to openQA Project - action #2408: speed up consoletests with scriptsResolvedlnussel2014-05-02

Actions
Actions #1

Updated by coolo over 9 years ago

  • Category set to 136
Actions #2

Updated by coolo over 9 years ago

  • Assignee set to coolo
  • Target version set to Sprint 12
Actions #3

Updated by coolo over 9 years ago

I'm experimenting with this interface:

use base 'opensusebasetest';
use strict;
use testapi;

# Check that there is access to the local hard disk
sub script() {
    return << 'EOS';
mount /dev/vda2 /mnt
cat /mnt/etc/SUSE-brand
EOS
}

sub run() {
    validate_script_output { $_ =~ m/VERSION = / };
}

sub test_flags() {
    return { 'important' => 1 };
}

1;

Actions #4

Updated by coolo over 9 years ago

  • Status changed from New to Resolved

After discussion on mailing list, I changed the interface. And I think there is a lot of potential in this.

Actions

Also available in: Atom PDF