Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:55
    wswebcreation closed #52
  • 06:55
    wswebcreation commented #52
  • 06:52
    wswebcreation edited #52
  • 06:51
    wswebcreation closed #51
  • 06:51
    wswebcreation commented #51
  • 06:48
    wswebcreation edited #51
  • 06:30
    AutomationGuru opened #52
  • 06:26
    AutomationGuru opened #51
  • Dec 15 2020 08:06
    wswebcreation labeled #49
  • Dec 15 2020 08:06
    wswebcreation closed #49
  • Dec 15 2020 08:06
    wswebcreation commented #49
  • Dec 15 2020 08:05
    wswebcreation labeled #50
  • Dec 15 2020 08:05
    wswebcreation labeled #50
  • Dec 15 2020 08:04
    wswebcreation commented #50
  • Dec 14 2020 15:47
    alisman opened #50
  • Dec 09 2020 19:47
    orandzheviyman opened #49
  • Dec 04 2020 22:15
    stale[bot] closed #38
  • Nov 16 2020 03:50
    stale[bot] labeled #38
  • Nov 16 2020 03:50
    stale[bot] commented #38
  • Nov 13 2020 10:46
    wswebcreation commented #46
Wim Selles
@wswebcreation
Did you see my presentations about React Native and testing?
Dragos Campean
@dragosMC91
i have not, where can i find it ?
Wim Selles
@wswebcreation
I gave some presentations in the past about React Native. It's wise to check them in this order
Dragos Campean
@dragosMC91
i will start with the presentations as soon as i finish an ongoing task a bit later, thank you for the learning material!
Wim Selles
@wswebcreation
You're welcome, if you have questions about it please let me know
I'm not a core JS developer, but I'm maintaining this project https://github.com/saucelabs/sample-app-mobile
You might find some things that might be useful for you
Dragos Campean
@dragosMC91

I've watched all 3 presentations you delivered @wswebcreation , very informative. My initial research comparing different frameworks for testing native apps resulted in similar conclusions to yours, and i added more info from your talks.

Also, i didn't even think about deeplinking & disabling animations til now, it's certainly something i will discuss with the dev team.

Gonna show a POC for appium on monday and these talks made me feel more prepared, thank you!

Wim Selles
@wswebcreation
👍🏻
Denis Anurkin
@dsanurkin
step1--1920x1080.png
Hello! How to fix that? I need fullpage screenshot, but i get this
Wim Selles
@wswebcreation

Hi @dsanurkin

It looks like your page is not like a "normal" page where it can do the scrolling, this module scrolls on the body so that might be the problem

aditya-3008
@aditya-3008
Hi All, Is there a way we can display "Diff screenshot" in the Gitlab pipeline after failing of test case Image comparison. I am using Junit reports as my reporter when the test case succeeded.
Wim Selles
@wswebcreation

Hi @aditya-3008

The module can give you back all the needed, it only depends on how you integrate it in your reporter

12 replies
GURU KIRAN
@AutomationGuru
Hello i have test that fail with 0.04 diff vs expecting 0 is there a way i can add a buffer to over come such failure as i cannot even notice the failure on the diff file
Wim Selles
@wswebcreation

Hi @AutomationGuru

You can use it in the expectation by saying that the result might not be bigger then

GURU KIRAN
@AutomationGuru
:+1: yep did that thanks @wswebcreation
aditya-3008
@aditya-3008
image.png
Hi All, I am trying to add my screenshots folder of Baseline my reports as attachment. Can someone guide where I am going wrong Below is the snippet of code
Ronaldo
@abubakarafzal
can we test appium native apps with visual image comparison?
Wim Selles
@wswebcreation

Hi @abubakarafzal

No, it's only for web, but you can take a look at https://github.com/wswebcreation/wdio-native-app-compare

5 replies
Dragos Campean
@dragosMC91

hello everyone, happy new year!

i have a question about https://github.com/wswebcreation/wdio-native-app-compare, does it support TS like wdio-image-comparison-service does or am i doing something wrong in my setup ?

Wim Selles
@wswebcreation

Hi @dragosMC91

Thanks for asking, but no, it doesn't. Feel free to open a PR for it :wink:

1 reply
Wim Selles
@wswebcreation
:+1:
ajo1234
@ajo1234
Hi everone, i tried to use https://github.com/wswebcreation/wdio-native-app-compare, the images are compared and the diff file is generated, but i am not getting the response back. Can some one help me?
The codes below the function call for compare screen are not executed
Is there any specific versions needed for this service to work?
Do we have any example projects having this service integrated?i couldnt find any
@wswebcreation Any help is appreciated
Dragos Campean
@dragosMC91
hello @ajo1234, if the screenshots are generated then the service was installed correctly, what do you mean you're not getting a response back ? what does console.log("=========\n", browser.compareScreen('screenshot-name')); print ?
ajo1234
@ajo1234
It is not printing anything. Is there a difference between using driver and browser?
ajo1234
@ajo1234
When i call driver.save screen, screenshot is generated in actual folder and baseline folder and i am getting log correctly as image name, actual file location etc.
But when I call driver.comparescreen,the difference file is generated showing the difference portion in pink color, but i am not getting log information (mismatch percentage)
@dragosMC91 Any code i write after driver.compareScreen is not executed
1 reply
ajo1234
@ajo1234
I am not getting any error. When i call driver.compareScreen, the diff file is generated, but it should return a promise right? (an object having mismatch percentage and folder paths) i am not getting that response. Also any code after this driver.compare screen is not executed. I tried adding logs after that and those logs didnt come in the console.
I tried calling driver.compare screen without await and with await. But still not getting any value in return
Should we install any specific version of appiuk or any other packages to successfully work this ojt
Work this out?
I have installed resemblejs manually. Then only the diff folder was generated
Wim Selles
@wswebcreation

Sorry @ajo1234

Can you share your project so we can help you based on that?

ajo1234
@ajo1234
How should i share it? @wswebcreation
Wim Selles
@wswebcreation
a github repo or something?
ajo1234
@ajo1234
Yes i will share the link here, thanks
Wim Selles
@wswebcreation
:thumbsup:
I might be able to look at it tomorrow
Daniel Monteiro
@ddmonteiro
Screenshot 2021-01-15 at 15.21.33.png
Screenshot 2021-01-15 at 15.21.14.png
Hey I'm having issue checking specific elements of a page, it seems when the browser takes screenshot to compare it resizes the page and it catches the element out of the boundaries, does anyone ever had this issue? Above are the configs I'm using
I'm using these chrome options args
browserName: 'chrome',
acceptInsecureCerts: true,
'goog:chromeOptions': {
args: [
'--window-size=1920,1080',
'--ignore-certificate-errors'
]
}
Daniel Monteiro
@ddmonteiro
It happens mostly with elements that changes boundaries when page is resized (e.g. modals), so when the screenshot is taken the element is no longer there.
1 reply
GURU KIRAN
@AutomationGuru

Hello 👋 , i see that given i use junit reporter i fail to see valid report, seems like its incomplete and broken :

</testsuites>tsuites>LT: {"script":"return (function getDocumentScrollHeight() {\n    var viewPortHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n    var scrollHeight = document.documentElement.scrollHe ... (1184 more bytes)","args":[]}
COMMAND: POST /session/a74e86efdfba21c78a9a7acd6adf9bde0651e5b1/execute - {"script":"return (function scrollToPosition(yPosition) {\n    (document.scrollingElement || document.documentElement).scrollTop = yPosition;\n}).apply(null, arguments)","args":[814]}
RESULT: {"script":"return (function scrollToPosition(yPosition) {\n    (document.scrollingElement || document.documentElement).scrollTop = yPosition;\n}).apply(null, arguments)","args":[814]}
COMMAND: GET /session/a74e86efdfba21c78a9a7acd6adf9bde0651e5b1/screenshot - {}
RESULT: {}

Are we aware of this issue ?

Wim Selles
@wswebcreation

Hi @AutomationGuru

No, not aware. I've check both issues you reported and added some comments.