Questions tagged [spying]

For Spying or sometimes referred to as Sniping 'Selectors'

20 questions
9
votes
2 answers

C# is there a a spying framework like mockito for .NET 3.5?

I used to have a very convenient spying framework in java called Mockito. It allows you to mock some of methods on existing objects and also could tell you if others were called (you'd create a spy wrapper for that). Is there anything like that for…
Artem
  • 7,275
  • 15
  • 57
  • 97
3
votes
2 answers

Backspying on spying Website

If you would need to see what Information a Site has on you, based on the Cookie ID that they've stored on your Computer, how exactly would one do that?
2
votes
3 answers

how to "spy " on win32pipe/console?

i have an application which call another console application and pass to it some parameters (console app is a video/audio coverter app) ... is there a way to programmatically "spy" or catch the passed paramters other than hooking/monitoring…
avar
  • 1,180
  • 2
  • 13
  • 28
2
votes
2 answers

HTML and Accessibility mode differences in Blue Prism

What are the differences in properties while using HTML or Accessibility mode in blue prism. When I use HTML mode it shows a big yellow rectangle but when accessibility mode is used it focus on the first input box. Are there any differences in…
KKG
  • 445
  • 1
  • 6
  • 11
2
votes
2 answers

How can I code desktop monitoring software?

I have to develop a tool for monitoring helpdesk agents. I can figure out how to capture keyboard events and mouse events; however I need to capture the control that emitted/consumed the event too. Is it possible to find that out?
user27874
  • 47
  • 2
1
vote
1 answer

Pytest - spying method calls on a dependent object

class Work: pass class Engineer: def delegate(work: Work): print('Doing all the hard work') class Manager: def __init__(self, engineer: Engineer): self.engineer = engineer def perform(work: Work): …
Keerthi
  • 466
  • 6
  • 12
1
vote
2 answers

Different monitors causing Blue Prism region spying error

Here I am attempting to expand the DDL and select one of the options. I spied and built my BP application on my monitor and when testing on my laptop all the regions are slightly off. All elements spied in Browser mode are fine. In the region editor…
gcpreston
  • 135
  • 1
  • 12
1
vote
1 answer

Blueprism attach to window in Navigation stage with childindex not working

I'm working on a small proj in Blueprism, on mspaint.exe to draw few schematics. As BP allows us to switch between similar attached apps, I want to switch from first window to second window of mspaint. But as both are not saved with any file-name,…
Siva
  • 21
  • 1
  • 5
1
vote
1 answer

Mock/Spy sessionStorage in jasmine when executing tests in Nodejs and not Browser

I was trying to spyOn sessionStorage object in jasmine. I've written the following code to achieve spying on real sessionStorage fakeStore = { employee: { id: 123456, emailId: 'admin@domain.com', role: 'admin' …
Sai Surya Kattamuri
  • 1,046
  • 12
  • 22
1
vote
0 answers

Cannot spy on Titanium.Network methods with Jasmine

I'm using Jasmine to write tests for a Titanium project. I have a custom util js to provide me information about the network availability. In this util there is a helper method calling Titanium.Network.getNetworkType() to retrieve the current…
1
vote
2 answers

How do i monitor when and where an image from my server is loaded?

Almost all of us have heard of services like spypig . I was wondering how do they track client's IP when an image from their server get loaded. To do the same I made an aspx page with Response.ContentType = "image/png" but for this my link goes as…
Amit
  • 427
  • 4
  • 16
0
votes
1 answer

How do you spy on structuredClone() using Jest?

I want to spy on the structuredClone method and mock its implementation because when running Jest tests, I get this error: ReferenceError: structuredClone is not defined I've tried both spying and mocking as below, but I got errors with…
Manpreet
  • 91
  • 1
  • 11
0
votes
1 answer

Unit testing that a method was called in another object's method in Python

Most of my unit testing experience is with Java and now I'm turning to Python. I need to test whether a method (from object B) gets called inside another method (in object A). In Java the test method would have to pass a mock or spy version of B to…
JohnK
  • 6,865
  • 8
  • 49
  • 75
0
votes
0 answers

Jasmine on AngularJS: ensuring number of calls to a spied method

I have a service called MessageBarFactory, with a void method called addAlert(). I have a unit test where I don't want that method to ever be called, so I just spy on it as follows: spyOn(MessageBarFactory, 'addAlert'); // And do nothing In the…
Jason
  • 2,495
  • 4
  • 26
  • 37
0
votes
1 answer

Blue Prism - Issue in Process/Object Element 'Not Connected'

I have a process that uses a business object. It flows that it goes from the process to a object page to launch the website, then back to the process then links to another page in the same object as previous. When I run it I get an "AMI error…
adonohoe
  • 1
  • 1
  • 1
1
2