richard.herbert
08/26/2022, 1:15 PMrunner.cfm
I want to use the test-browser
that lets you move up and down your tests directory to find the actual test cfc you want to run and then it opens a new window just for that cfc which, for me, is showing an empty pageTim
08/26/2022, 1:34 PMmethod=runRemote
then it runs my tests, and displays the test report.richard.herbert
08/26/2022, 1:42 PMtestbox.system.BaseSpec
it gets access to the runRemote
method which you add to your url, that then handles the processing and presentation of the test results.Niek
09/06/2022, 4:37 PMJim Priest
09/08/2022, 5:05 PMjoechastain
09/19/2022, 11:46 AMgetRequestContext().setValue( "employeeName", "Joseph Chastain" );
before the execute
call. I know I can get the rendered results page and check for various things with expect( event.getRenderedContent() ).toInclude( "whatever" );
But I'm hoping I can get specific values that are calculated in the handler. It looks like I can do this if I stored them in the PRC scope with event.getPrivateCollection()
but I don't typically use the PRC scope. I pass the values to the results view via the args
param in the event.setView()
call in the handler. Is there a way to get the values in the args param in the test? Or do I need to start using the PRC scope if I want to do this? I checked the docs but, if there is anything, I didn't see it. Appreciate any insights on this. Thanks.joechastain
09/30/2022, 2:23 PMaliaspooryorik
10/03/2022, 11:41 AMx-testbox-totalError
and x-testbox-totalFail
?Adam Cameron
10/05/2022, 10:27 PMAdam Cameron
10/09/2022, 2:48 PMTim
10/12/2022, 1:52 PMgetMockBox()
. But I don't see a single location that would affect all of my tests.lmajano
10/12/2022, 8:16 PMlmajano
10/12/2022, 8:16 PMlmajano
10/12/2022, 8:17 PMlmajano
10/12/2022, 8:17 PMlmajano
10/12/2022, 8:17 PMJames Balaguer
10/18/2022, 9:50 PMexpect()
without using describe
and it
? meaning just like an `assert()`:
function testExpectationExamples () {
var message = "A custom message can be prepended to the error message!";
// toBe( expected, [message] ) : Assert something is equal to each other, no case is required
var value = "myValue";
expect(value).toBe("myvalue", message);
expect(value).toBe("myValue", message);
expect(value).toBe("MYVALUE", message);
}
gpickin
10/19/2022, 9:30 PMvar oResponse = deserializeJSON( event.getRenderedContent() );
expect( oResponse ).toBeStruct()
.toHaveKeyWithCase( "error" )
.toHaveKeyWithCase( "messages" );
expect( oResponse.error ).toBeFalse();
expect( oResponse.messages )
.toBeArray()
.toHaveLengthGTE( 1 );
expect( oResponse.messages[1] ).toBe( "postPandaDocWebhookRecipientCompletedADocument Interception point announced" );
to
expect( event ).toHaveAPISuccessWithMessage( "postPandaDocWebhookRecipientCompletedADocument Interception point announced" );
Adam Cameron
10/20/2022, 9:54 AMAdam Cameron
10/20/2022, 9:54 AMAdam Cameron
10/20/2022, 9:55 AMzackster
10/26/2022, 10:34 AMjoechastain
10/26/2022, 11:34 AMroute
helper function, I get an error message that states Variable STRUCTVALUEARRAY is undefined
in cbPlaywright\models\PlaywrightMixins.cfm
on line 73. That line is var pathArray = structValueArray( arguments );
— structValueArray
is not a function in ACF.Jim Priest
11/04/2022, 3:07 PMzackster
12/07/2022, 5:56 PMsknowlton
12/09/2022, 12:44 PMtestbox run
or do you launch your tests some other way?joechastain
01/27/2023, 6:34 PMcgi.remote_user
populated in main.index
as I'm doing something like userId = cgi.remote_user
and then passing userID
into a function to retrieve data and then display it on the screen based on who is logged in. What is the best approach here?johnbarrett
01/31/2023, 12:29 AMjoechastain
02/10/2023, 4:55 PMexecute
call of the handler?Adam Cameron
03/11/2023, 3:09 PMAdam Cameron
03/11/2023, 3:09 PM