Project

General

Profile

action #1314

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

Added by aplanas over 8 years ago. Updated almost 8 years ago.

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

0%

Estimated time:
Difficulty:

Description

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


Related issues

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

History

#1 Updated by coolo almost 8 years ago

  • Category set to 136

#2 Updated by coolo almost 8 years ago

  • Assignee set to coolo
  • Target version set to Sprint 12

#3 Updated by coolo almost 8 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;

#4 Updated by coolo almost 8 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.

Also available in: Atom PDF