私は準備するタスクを持っていますが、私は分度器分野では新しいです。私たちを手伝ってくれますか? のみ情報この分度器のタスクはどこから始めるのですか?
'use strict';
var constants = require('../../constants/other/constants.js');
var ContextMenuPage = require('../../page objects/base page/context_menu_page.js');
var functions = require('../../helper/functions.js');
var ClientScenariosPage = require('../../page objects/impairment analysis/client/scenarios_page.js');
var IADashboardPage = require('../../page objects/impairment analysis/ia_dashboard_page.js');
var BasePage = require('../../page objects/base page/base_page_object.js');
describe('Impairment analysis - dashboard', function() {
var individualAssessment = new IndividualAssessment();
var iaDashboardPage = new IADashboardPage();
var basePage = new BasePage();
var footer = basePage.getFooter();
var clientScenariosPage = new ClientScenariosPage();
it('should log in', function() {
browser.ignoreSynchronization = true;
helper.login();
});
it('should change calcset', function() {
browser.sleep(4000)
var CalcSet = element(by.xpath('//div[@class="calcset"]/strong[@class="ng-binding"]'));
CalcSet.click();
var input = element(by.xpath("//input[@class='k-input ng-pristine ng-untouched ng-valid ng-scope ng-empty']"));
input.clear();
input.sendKeys('16080902');
input.sendKeys(protractor.Key.ENTER);
footer.getCalcsetDialog().clickSetButton();
});
it('should go to individual assessment', function() {
individualAssessment.getBasePage().clickContextMenu();
contextMenu.clickImpairmentAnalysisTile();
iaDashboardPage.clickIndividualAssesmentTile();
});
it('should go to scenarios screen and assign collaterals', function() {
browser.sleep(5000);
for (var id of ["127-1", "129-1", "128", "125-1"]) {
var client = element(by.xpath("//div[@id='DashboardD1LISTTODO']/div[@class='k-grid-content k-auto-scrollable']/table[@class='k-selectable']/tbody/tr[@id='" + id + "']/td[@class='row-click'][2]/span[@class='link']"));
client.click();
clientScenariosPage.getBasePage().getCarousel().clickIndicatorByName('Scenarios');
browser.sleep(2000);
var coll_button = element(by.xpath("//trtd[5]/a[@title='Show collateral allocations']"));
coll_button.click();
check_and_click();
browser.sleep(3000);
var back = element(by.xpath("//div[@id='listClientCollModal']/div[@class='modal-dialog']/div[@class='modal-content']/div[@class='modal-body']/button[@class='close']"));
back.click();
individualAssessment.getBasePage().clickContextMenu();
contextMenu.clickImpairmentAnalysisTile();
iaDashboardPage.clickIndividualAssesmentTile();
browser.sleep(5000);
});
});
it('should log out', function() {
helper.logout();
});
});
「あなたは自動テスターの位置からこれで何をするだろう」で、これは難しい問題ですか?テストするページのような詳細や、いくつかの方法を用意するだけのことを聞かなければなりませんか? 私は、あなたからのお便りをお待ちして Tomek
まず何かを試してみてください。しかし、苦労している場合は、戻って特定の質問をしてください。 – Hida
@Hida私はそれを実行することができます私はそれを実行することができます。実行した後: '[16:46:22] E /ランチャー - エラー:モジュールが見つかりません '../../constants/other constants.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load(module.js:417:25) at Module.require(module.js:497:17) at require(internal/module.js:20) :19) atオブジェクト。モジュール番号:579:10)(C:\ Pro \ spec.js:2:17) at Module._compile(module.js:570:32) at Object.Module._extensions..js(module.js:579:10) at Module.load(module.js:487:32) at tryModuleLoad(module.js:446:12) ' – Tomasz
分度器は' constants.js'ファイルを見つけることができません。ファイルへのパスが正しいことを確認してください。 'require.resolve(path/to/module) 'を使って確認できます。 –