Giter Site home page Giter Site logo

doc-builder-testing's Introduction

docbuilder-testing

Framework for QA of onlyoffice-documentbuilder

Configuration

WEB_BUILDER_URL - Set via Environmental Variables. Used to changed default url of Web Document Builder

Project Information

Official website

Code repository

SaaS version

License

docbuilder-testing is released under an GNU AGPL v3.0 license. See the LICENSE file for more information.

install via windows

  • Install desktop builder to C:\

  • Install dependencies

  bundle install
  • Run test
  rake run_test_on_win

doc-builder-testing's People

Contributors

askonev avatar dafttrick avatar dependabot-preview[bot] avatar dependabot[bot] avatar flaminestone avatar johns42 avatar lemonowl avatar onlyoffice-testing-robot avatar purpergurk avatar shockwavenn avatar vitaliyserov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doc-builder-testing's Issues

Check the new features in ApiRange

  • add function SetColumnWidth in ApiRange
  • add function GetColumnWidth in ApiRange
  • add property ColumnWidth in ApiRange
  • add property Width in ApiRange
  • add function SetRowHeight in ApiRange
  • add function GetRowHeight in ApiRange
  • add property RowHeight in ApiRange
  • add property Height in ApiRange

[7.3.3] Add cross-reference tests

#58346 Bug in methods AddFootnoteCrossRef/AddEndnoteCrossRef
#58334 Proposal to create an AddCaption method

Also notify the Technical Writers Department of corrections to the documentation

Check tables in presentations

Add methods in Api:

  • CreateTable;

Add methods in ApiTable:

  • GetClassType;

  • GetRow;

  • MergeCells;

  • SetTableLook;

  • AddRow;

  • AddColumn;

  • RemoveRow;

  • RemoveColumn;

  • SetShd;

Add methods in ApiTable:

  • GetClassType

  • GetCellsCount

  • GetCell

  • SetHeight

Add methods in ApiTableCell:

  • GetClassType;

  • GetContent;

  • SetShd;

  • SetCellMarginBottom;

  • SetCellMarginLeft;

  • SetCellMarginRight

  • SetCellMarginTop

  • SetCellBorderBottom

  • SetCellBorderLeft

  • SetCellBorderRight

  • SetCellBorderTop

  • SetVerticalAlign

  • SetTextDirection

ApiDocument | GetReviewReport method failing

With

ApiDocument section tests ApiDocument | GetReviewReport method
     Failure/Error:
       expect(docx.elements[3].rows[2].cells[2].elements
                  .first.nonempty_runs.first.text).to eq('Removed text')
       expected: "Removed text"
            got: "Unknown change"
       (compared using ==)
     # ./spec/docx/smoke/api_document_spec.rb:101:in `block (2 levels) in <top (required)>'

Need to investigate

[7.2] Add tests to convert objects to json through the builder `#58126`

Simple builder script

builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
    oParagraph.AddText("Sample");
GlobalVariable["paragraph"] = oParagraph.ToJSON(false, false);
builder.CloseFile();

///////////////////////////

builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oConvertParagraph = Api.FromJSON(GlobalVariable["paragraph"]);
    oDocument.Push(oConvertParagraph);
builder.SaveFile("docx", "Sample.docx");
builder.CloseFile();

Check the new features in ApiRange and ApiWorksheet

  • add properties: MergeArea, WrapText in ApiRange
  • add property LeftMargin, RightMargin, TopMargin, BottomMargin, Orientation, PrintHeadings, PrintGridlines, Selection in ApiWorksheet
  • add functions: GetWrapText, SetWrapText, SetOffset, GetAddress in ApiRange
  • add functions: SetLeftMargin, SetRightMargin, SetTopMargin, SetBottomMargin, GetLeftMargin, GetRightMargin, GetTopMargin, GetBottomMargin, SetPageOrientation, GetPageOrientation, GetSelection in ApiWorksheet

[heisenbug] centos-7/Dockerfile Api | CreateImage method Failed only in the container

Failures:

  1) Api section tests Api | CreateImage method
     Failure/Error: expect(drawing.graphic.data.path_to_image.file_reference.content.length).to be > 1000

     NoMethodError:
       undefined method `length' for nil:NilClass
     # ./spec/docx/smoke/api_base_spec.rb:52:in `block (2 levels) in <top (required)>'

Finished in 46.04 seconds (files took 0.77201 seconds to load)
33 examples, 1 failure

On a clean centos 7 system with native ruby 3.2, the problem does not repeat itself

Check the new features of the builder in develop

  • - add function in Api GetSheets. Returns a Sheets collection that represents all the sheets in the active workbook.
  • - add getter property Sheets in Api
  • - add function in Api GetSheet. Returns an object that represents the sheet. Argument {string | number} nameOrIndex Sheet name or Sheet index.
  • - add functions in ApiWorksheet GetVisible, SetVisible, GetIndex
  • - add getter and setter properties Visible in ApiWorksheet
  • - add getter property Index in ApiWorksheet
  • - add getter and setter properties Name in ApiWorksheet
  • - add function in ApiWorksheet GetName

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.