Loading...
Loading...
Compare original and translation side by side
momentic_*momentic_*momentic_get_initial_datamomentic_test_splice_stepsmomentic_preview_stepmomentic_preview_stepCacheId--cache-id <CacheId>momentic_test_splice_stepsmomentic_run_stepresetSession: truesessionIdlocalhostmomentic_session_terminatemomentic_get_initial_datamomentic_test_splice_stepsmomentic_preview_stepmomentic_preview_stepCacheIdmomentic_test_splice_steps--cache-id <CacheId>resetSession: truemomentic_run_stepsessionIdlocalhostmomentic_session_terminateJAVASCRIPTJAVASCRIPTJAVASCRIPTJAVASCRIPTJAVASCRIPTJAVASCRIPTbaseUrlbaseUrlmomentic_get_initial_datamomentic_get_initial_datamomentic_get_initial_data()momentic_get_initial_data()momentic_get_artifacts()momentic_test_create({ name, baseUrl | environment, description?, pathSegments?, browserType?, viewport? })namebaseUrlenvironment-.yamlnonemomentic_get_artifacts()momentic_test_create({ name, baseUrl | environment, description?, pathSegments?, browserType?, viewport? })namebaseUrlenvironment-.yamlnonemomentic_module_recommend({ userRequest })momentic_module_get({ selector }){ id }{ name }{ path }momentic_get_artifacts()momentic_module_recommend({ userRequest })momentic_module_get({ selector }){ id }{ name }{ path }momentic_get_artifacts()momentic_session_start({ testId, envName?, projectConfigPath?, projectNameFilter?, headfulBrowser?, video? })sessionIdtestIdtestFileAbsolutePathcreatedAtexpiresAtidleTimeoutMinutesenvNamebaseUrlviewportwidthheightnulltestIdmomentic_session_terminate({ sessionId })video: truemomentic_run_stepresetSession: truesessionIdmomentic_session_start({ testId, envName?, projectConfigPath?, projectNameFilter?, headfulBrowser?, video? })sessionIdtestIdtestFileAbsolutePathcreatedAtexpiresAtidleTimeoutMinutesenvNamebaseUrlviewportnulltestIdmomentic_session_terminate({ sessionId })video: trueresetSession: truemomentic_run_stepsessionIdmomentic_get_session_state({ sessionId })momentic_get_environment_variables({ sessionId })momentic_get_session_statemomentic_get_session_state({ sessionId })momentic_get_environment_variables({ sessionId })momentic_get_session_stateScreenshot PathEnvironment Variables.momentic-mcp.../page-state-<ts>.txt.../screenshot-<ts>.jpeg.../environment-variables-<ts>.jsonenvKeymomentic_get_session_statereturnBrowserState: truemomentic_preview_stepmomentic_run_stepScreenshot PathEnvironment Variables.momentic-mcp.../page-state-<ts>.txt.../screenshot-<ts>.jpeg.../environment-variables-<ts>.jsonenvKeymomentic_get_session_statereturnBrowserState: truemomentic_preview_stepmomentic_run_stepCRITICAL: Never persist steps that have not been executed successfully via.momentic_preview_step
momentic_preview_step({ sessionId, step })<CacheId>--cache-id <CacheId>momentic_test_splice_stepsmomentic_run_step({ sessionId, fromStep: { fromStepId, parentStepIdChain }, toStep?, targetSection?, resetSession? })resetSession: trueparentStepIdChain: []momentic_test_splice_steps({ sessionId, startIndex, deleteCount, steps, targetSection?, parentStepIdChain?, returnTest? })--step-type CONDITIONAL--assertion-typeparentStepIdChain: [parentStepId]--parameters--parameter-enums--default-parameters--module-display-name--module-description--module-enabled.module.yamlmomentic_test_splice_stepsreturnTestmomentic_preview_stepmomentic_run_step<Screenshot><EnvironmentVariables><PageState>关键:永远不要持久化没有通过成功执行的步骤。momentic_preview_step
momentic_preview_step({ sessionId, step })<CacheId>--cache-id <CacheId>momentic_test_splice_stepsmomentic_run_step({ sessionId, fromStep: { fromStepId, parentStepIdChain }, toStep?, targetSection?, resetSession? })resetSession: trueparentStepIdChain: []momentic_test_splice_steps({ sessionId, startIndex, deleteCount, steps, targetSection?, parentStepIdChain?, returnTest? })--step-type CONDITIONAL--assertion-typeparentStepIdChain: [parentStepId]--parameters--parameter-enums--default-parameters--module-display-name--module-description--module-enabled.module.yamlmomentic_test_splice_stepsreturnTestmomentic_preview_stepmomentic_run_step<Screenshot><EnvironmentVariables><PageState>momentic_run_stepmomentic_get_session_statemomentic_module_recommendmomentic_module_get--parameters "a,b,c"--parameter-enum param=val1,val2--default-parameter param=val--module-name--module-description--disabled--step-type MODULE --module-id <id> --inputs <same> --parameters test,test2 --parameter-enum test=1,2 --parameter-enum test2=2,3momentic_preview_stepmomentic_test_splice_stepsmomentic_preview_stepmomentic_preview_stepmomentic_run_stepmomentic_run_stepresetSession: truerun_stepmomentic_run_stepmomentic_get_session_statemomentic_module_recommendmomentic_module_get--parameters "a,b,c"--parameter-enum param=val1,val2--default-parameter param=val--module-name--module-description--disabled--step-type MODULE --module-id <id> --inputs <same> --parameters test,test2 --parameter-enum test=1,2 --parameter-enum test2=2,3momentic_preview_stepmomentic_test_splice_stepsmomentic_preview_stepmomentic_preview_stepmomentic_run_stepresetSession: truemomentic_run_steprun_stepmomentic_get_initial_data()momentic_get_initial_data()momentic_test_createmomentic_get_artifactstestFileAbsolutePathmomentic_test_createmomentic_get_artifactstestFileAbsolutePathmomentic_session_start({ testId, envName? })sessionIdmomentic_session_start({ testId, envName? })sessionIdmomentic_run_stepmomentic_run_stepmomentic_run_stepmomentic_run_step<CacheId>--cache-id CACHE_IDmomentic_get_session_state<CacheId>--cache-id CACHE_IDmomentic_get_session_statemomentic_module_recommendmomentic_module_getMODULEmomentic_test_splice_stepsmomentic_module_recommendmomentic_module_getmomentic_test_splice_stepsMODULEmomentic_run_stepresetSession: truemomentic_preview_stepmomentic_run_stepresetSession: trueresetSession: truemomentic_run_stepmomentic_preview_stepresetSession: truemomentic_run_stepmomentic_test_splice_stepsdeleteCount: 0deleteCount: 1steps: []deleteCount: N--step-type CONDITIONAL --assertion-type AI_ASSERTION --assertion "..."parentStepIdChain: [conditionalStepId]momentic_test_splice_stepsdeleteCount: 0deleteCount: 1steps: []deleteCount: N--step-type CONDITIONAL --assertion-type AI_ASSERTION --assertion "..."parentStepIdChain: [conditionalStepId]targetSectionsetupmainteardownmomentic_run_steptargetSectionsetupmainteardownmomentic_run_stepmomentic_session_terminatemomentic_session_terminate--step-type <type> [options]CLICKTYPENAVIGATEAI_ASSERTIONMODULEAI_ACTION_DYNAMICWAIT_FOR_URL--step-type <type> [options]CLICKTYPENAVIGATEAI_ASSERTIONMODULEAI_ACTION_DYNAMICWAIT_FOR_URLmomentic_preview_stepmomentic_preview_stepstep{
"sessionId": "SESSION_ID",
"step": "--step-type NAVIGATE --url \"https://example.com\""
}--step-type CLICK --description "the Sign in button"--step-type TYPE --description "Search input" --value "hello" --press-enter--step-type AI_ASSERTION --assertion "the page shows a Sign in button" --timeout 10step{
"sessionId": "SESSION_ID",
"step": "--step-type NAVIGATE --url \"https://example.com\""
}--step-type CLICK --description "the Sign in button"--step-type TYPE --description "Search input" --value "hello" --press-enter--step-type AI_ASSERTION --assertion "the page shows a Sign in button" --timeout 10momentic_test_splice_stepsmomentic_test_splice_stepsstepsmomentic_preview_step<CacheId>--cache-id <CacheId>{
"sessionId": "SESSION_ID",
"startIndex": 0,
"deleteCount": 0,
"steps": [
"--step-type NAVIGATE --url \"https://example.com\"",
"--step-type AI_ASSERTION --assertion \"the page shows a Sign in button\" --timeout 10 --cache-id UUID_FROM_PREVIEW_CacheId_TAG"
],
"targetSection": "main"
}stepsmomentic_preview_step<CacheId>--cache-id <CacheId>{
"sessionId": "SESSION_ID",
"startIndex": 0,
"deleteCount": 0,
"steps": [
"--step-type NAVIGATE --url \"https://example.com\"",
"--step-type AI_ASSERTION --assertion \"the page shows a Sign in button\" --timeout 10 --cache-id UUID_FROM_PREVIEW_CacheId_TAG"
],
"targetSection": "main"
}inputsenv.X--step-type MODULE --module-id MODULE_ID --inputs email=env.USER_EMAIL --inputs password=env.USER_PASSWORD --inputs rememberMe=true --inputs planName='Pro' --inputs url="https://example.com"inputsenv.X--step-type MODULE --module-id MODULE_ID --inputs email=env.USER_EMAIL --inputs password=env.USER_PASSWORD --inputs rememberMe=true --inputs planName='Pro' --inputs url="https://example.com"defaultParametersparameterEnumsparameters.module.yamltest2["2","3","4","5"]--step-type MODULE --module-id MODULE_ID --inputs test=1 --parameters test,test2 --parameter-enum test=1,2,3,4 --parameter-enum test2=2,3,4,5defaultParametersparameterEnumsparameters.module.yamltest2["2","3","4","5"]--step-type MODULE --module-id MODULE_ID --inputs test=1 --parameters test,test2 --parameter-enum test=1,2,3,4 --parameter-enum test2=2,3,4,5momentic_get_session_statemomentic_get_session_stateAI_ASSERTIONWAITCHECKWAIT_FOR_URLSWITCH_TABmomentic_run_stepresetSession: truemomentic_module_getmomentic_get_session_statemomentic_get_session_stateAI_ASSERTIONWAITCHECKWAIT_FOR_URLSWITCH_TABresetSession: truemomentic_run_stepmomentic_module_getmomentic_get_initial_data()momentic_test_create(name, baseUrl)momentic_session_start(testId)momentic_preview_stepbaseUrlmomentic_preview_stepmomentic_test_splice_stepsmomentic_run_stepmomentic_session_terminatemomentic_get_initial_data()momentic_test_create(name, baseUrl)momentic_session_start(testId)momentic_preview_stepbaseUrlmomentic_preview_stepmomentic_test_splice_stepsmomentic_run_stepmomentic_session_terminate