Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    itsjerald
    @itsjerald
    My website is very dynamic and user will add/update/delete things
    Gojko Adzic
    @gojko
    @itsjerald appraise isn't designed to test user interaction, but visual layouts (how it looks, not how it behaves), so the idea is that the fixture sets up your web site in any way you see fit, and then return a piece of HTML, or a URL from the fixture that appraise can use to take a screenshot. if you want to test interactions, it's probably better to use some other tool.
    for example, instead of the user adding/updating/deleting things, the fixture can write the correct things directly into the database, so the whole process is a lot simpler and easier to maintain
    itsjerald
    @itsjerald
    Ok. I thought of using this tool for clicking a link take screenshot and click another link take screenshot, fill a form submit and take screenshot and then do this again in my next version of software. So that appraise can repeat this in new version and compare screenshots. Like a dom/browser automation.
    Could you please let me know if i this will be of any use for my case?
    Gojko Adzic
    @gojko
    @itsjerald you can load anything using a direct URL get request and take a screenshot (for that, just return the URL from the fixture). Appraise currently can't post forms, but this shouldn't be too difficult to implement as a new fixture type. If you need to execute several actions to prepare the web site content, you could do that in the fixture before returning the URL for the screenshot.
    however, you'd have to either directly execute http requests or use some other web driver library to do that, appraise doesn't come with utility methods for web interaction.
    ASM4321
    @ASM4321
    where can I find the features of Appraise
    ASM4321
    @ASM4321
    Thanks Very much
    jlam-palo-it
    @jlam-palo-it
    Hi everyone,
    may i know it is possible to dockerize Appraise?
    jlam-palo-it
    @jlam-palo-it
    mainly is it possible to install GoogleChrome/puppeteer dependency in docker?
    Gojko Adzic
    @gojko
    @jlam-palo-it yes, you can use puppeteer inside docker, but you either need to run npm install in a container so it downloads the right binary, or install a version of chromium in that container and then tell puppeteer where to find chrome
    jlam-palo-it
    @jlam-palo-it
    @gojko Thanks, it works
    hardikkdesai
    @hardikkdesai
    Hello
    Can we use this for first testing also not just regression testing ? How do I compare my web page with zeplin design
    Appreciate your help and suggestions
    Gojko Adzic
    @gojko
    @hardikkdesai you can
    1) describe the expected state for something not implemented yet by using a drawing, mock-up, wireframe, or a marked-up current page with intended changes. run it, it will fail the first time, and then show the differences. someone who is relevant to approve or reject it can quickly look at the results and say if it's right. if it gets approved, the new state becomes the expected result for the next run
    2) create an example without an expected result, and run it. it will capture the current functionality, and fail but offer to approve what it has captured. similarly to to the first case, get someone to look at it and approve it if it is good.
    hardikkdesai
    @hardikkdesai
    Thanks for your quick response. Will try for sure. Just for understanding Zepli is the tool where designers provide expected design
    Gojko Adzic
    @gojko
    @hardikkdesai in that case, I guess export the expected design from zepli as a png, or take a screenshot, and use that as the expected outcome
    hardikkdesai
    @hardikkdesai
    Oh ok. Does it OK that way
    Chetan Lakhanpal
    @chetanlakhanpal
    @gojko I didn't find any example where we can set the expected outcome initially, can you please share one ?
    Chetan Lakhanpal
    @chetanlakhanpal
    In summary.json we have a property "expected" where it maps the expected image file, but updating the value there overrides it
    Chetan Lakhanpal
    @chetanlakhanpal
    Also when using a fixture type url to take reference from it, it takes the screenshot as if it's a mobile screen. Actually the width of it is less than mobile. I'm wondering if there's something I'm missing here
    Gojko Adzic
    @gojko

    @chetanlakhanpal you provide expected outputs with images in markdown/html. say if you have an example like this:

    ~~~yaml example="first" 
    ....
    ~~~

    then just provide an image with the title "first" (from the name of the example) somewhere in the document
    ![first](path-to-file.png)

    don't update summary.json, that's the output
    update the example file coming in as the input
    appraise will also update the file with examples when you run the approve command
    most of the pages here are executable, they show examples with set expectations https://github.com/AppraiseQA/appraise/tree/master/examples
    Chetan Lakhanpal
    @chetanlakhanpal
    Thanks I will try
    Chetan Lakhanpal
    @chetanlakhanpal
    I think we can directly use the URL fixture to compare with the expected output, but whenever I do it doesn't take screenshot properly
    The width of the captured screenshot is way too less
    Chetan Lakhanpal
    @chetanlakhanpal
    I'm trying to compare the entire page with the Image file I've set as an expectation
    Chetan Lakhanpal
    @chetanlakhanpal
    Is this the right approach to compare or there's no other way but to create fixture with html structure again ?
    Gojko Adzic
    @gojko
    @chetanlakhanpal you need to set the browser window width, web pages tend to reflow based on initial browser width for responsive designs. you can do that with the initial-width parameter, either from the command line (applies to everything), in the page header (applies to all examples on a page) or an example header (something like to ~~~yaml example="name" initial-width="500")
    Chetan Lakhanpal
    @chetanlakhanpal
    Thanks it worked as expected
    Jaime
    @jgpacheco
    Hi guys. I'm playing around with the getting started example (https://github.com/AppraiseQA/appraise/blob/master/examples/getting-started.md) and I have a couple of questions. Which browsers or browser capabilities use appraise by default? Is there a way to setup cross-browsers tests?
    Gojko Adzic
    @gojko
    @jgpacheco currently, appraise uses chrome (headless via puppeteer). setting up a different browser driver engine should not be difficult, but would require a bit of programming. I didn't have a need to implement that yet, but if you want to work on it, I can give you a few pointers what to implement
    Chetan Lakhanpal
    @chetanlakhanpal
    Hi @gojko I was thinking if we can export a module with an object that has method of "prerun", "postrun", "preapprove" & "postapprove" and can use it as options such as --hooks=Filename where can can handle the result summary accordingly. Instead of developer executing the tests themselves it would be even better if it can be automated. Let me know your thoughts on it or if you're handling something similar as of now and if you can share a high level that would be helpful too.
    Gojko Adzic
    @gojko
    @chetanlakhanpal appraise is a command line tool, you can run it with any build server
    No need for developers to run it manually
    Then prerun/postrun etc don’t need to be in the tool, you can just execute it before/after appraise with the build tool
    pallavi2205
    @pallavi2205
    Hi @gojko I have just started using Appraise for visual testing of the screens of one of our dynamic Java based web application. I have few queries as below: 1). Is it possible through Appraise’s headless browser testing to login to our web application in a headless manner and after login when the landing XHTML page gets opened then it should do the visual testing of that page and it’s components ?
    pallavi2205
    @pallavi2205
    2). If after login to web application in headless manner is it possible to create one session and navigate to another page of the application for visual testing rather than the home page by returning the URL of that particular page in that session in the fixture being defined ?
    3). Appraise supports loading of Website URL’s in headless manner only on Chrome using chromium or it has support to open web applications through Url’s on other browsers too like mozilla/internet explorer?
    4).If on a particular page, the paragraph indentation/ alignment gets changed then is appraise able to capture and highlight that change ?
    @gojko above were few queries from my side. It would be of great help to me if you answer to them as soon as possible. Thanks much in advance!
    pallavi2205
    @pallavi2205
    5) and how Appraise can run visual tests in parallel using AWS Lambda? Few tutorials/ examples on all above queries will be of great help:)