Botium Test Suddenly Stopped - testing

I used Botium to test our chatbot. But in the middle of the process, the test suddenly stopped.
Not sure why "Stop called" even though my test haven't finished yet. This is what I got by running with --verbose.
2019-02-26T07:42:23.973Z botium-Convo Library Test wait for bot null
2019-02-26T07:42:24.202Z botium-connector-webdriverio Found new bot response element .vcw-message-container, id 0.9475738262354745-147
CHECKING ELEMENT 0.9475738262354745-147
2019-02-26T07:42:24.203Z botium-connector-webdriverio polling for bot output (.vcw-message-container)
FROM ME DECIDED 0.9475738262354745-147
no images: 0.9475738262354745-147
no audio: 0.9475738262354745-147
no video: 0.9475738262354745-147
1) Library Test
2019-02-26T07:42:25.230Z botium-connector-webdriverio Stop called
2019-02-26T07:42:25.288Z botium-connector-webdriverio Clean called
2019-02-26T07:42:25.289Z botium-BaseContainer Cleanup rimrafing temp dir /var/lib/jenkins/workspace/botium-widget-prodtest/botiumwork/Production-Test-20190226-144119-7H0sV
0 passing (1m)
1 failing
Below is my botium.json file (Modified URL for security purpose):
{
"botium": {
"Capabilities": {
"PROJECTNAME": "Production Test",
"CONTAINERMODE": "webdriverio",
"WEBDRIVERIO_OPTIONS": {
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"args": [ "--headless", "--no-sandbox", "--disable--dev-shm-usage" ]
}
}
},
"WEBDRIVERIO_URL": "https://example.com",
"WEBDRIVERIO_OPENBOT": "./actions/open_test",
"WEBDRIVERIO_IGNOREWELCOMEMESSAGES": 2,
"WEBDRIVERIO_SENDTOBOT": "./actions/send",
"WEBDRIVERIO_GETBOTMESSAGE": "./actions/parse_response",
"WEBDRIVERIO_INPUT_ELEMENT": "#vc-input",
"WEBDRIVERIO_INPUT_ELEMENT_SENDBUTTON": "#vc-btn-send",
"WEBDRIVERIO_OUTPUT_ELEMENT": ".vcw-message-container",
"WEBDRIVERIO_START_SELENIUM": true,
"WEBDRIVERIO_START_SELENIUM_OPTS": {
"drivers": {
"chrome": {
"version": "2.36"
}
}
},
"ASSERTERS": [
{
"ref": "GALLERY",
"src": "./asserters/gallery",
"global": true
}
]
}
}
}
And this is the convo file I used for test (Modified):
Library Test
#me
Who can I contact if I lost something?
#bot
If you are at the premises, please approach staff for assistance. Otherwise, please email us.
If you've lost your library card or any card linked to your NRIC, please report your loss of card through the link below.
BUTTONS Report Lost Cards
#me
Why can't I download information from the multimedia stations onto my USB thumbdrive?
#bot
Content from databases and websites may be protected by copyright. As such, the library does not encourage downloading content onto any media in the library.
#bot
BUTTONS Multimedia Stations
#me
Do you have word processing facilities?
#bot
Unfortunately, we do not offer word processing services. Hope we can help you with other services.
#bot
BUTTONS FAQ
#me
Can I collect my multimedia printouts at any floor?
#bot
You may collect your printouts after you have signed in with your username and password at the printout station. For more information, please approach our staff.
#bot
BUTTONS Multimedia Stations | Printing | Photocopy/Scan
#me
How do I use your Reference Enquiry services?
#bot
You may submit your enquiries using our online form from the link below.
BUTTONS Ask us
#bot
BUTTONS FAQ
#me
How do I use your ASK service?
#bot
You may submit your enquiries using our online form from the link below.
BUTTONS Ask us
#bot
BUTTONS FAQ
#me
Can I photocopy a whole book borrowed from the library?
#bot
Users may photocopy 10% of the total number of pages or one chapter for published works that are not less than 10 pages and are not an artistic work. For more details on the Copyright Act, you may refer to the following link.
BUTTONS Copyright Act
#bot
BUTTONS Photocopy | Printing
#me
Can overseas foreigners have access to eResources?
#bot
We seek your understanding that our online eResources are available only to registered members. Currently we do not offer overseas memberships. We thank you once again for your interest.
BUTTONS E-Resources
#bot
BUTTONS Register As Member | Create Account | Using The Library
#me
How can I sell books to the library?
#bot
Please note that we can only purchase library materials from a panel of vendors. We cannot purchase library materials directly from any other vendors/publishers/suppliers.
#bot
BUTTONS Donate Books
#me
Can I return library materials at the Sports Hub Library?
#bot
Materials borrowed from the network of public libraries cannot be returned at the Sports Hub Library.
#bot
BUTTONS Return Elsewhere | Return eBooks Early | Return eBooks
#me
Do I have to be a member to use public libraries services?
#bot
Our public libraries can be visited by anyone during the opening hours and you do not have to pay for entering the library and browsing the materials on-site.
#bot
BUTTONS Register As Member | Using eResources
#me
How many books can I borrow as a library member?
#bot
Here's information on borrowing privileges!
#bot
MEDIA https://example.com/files/1536227184506.png
#bot
You may renew an item if:
- the item has not been reserved by another member;
- the item has not been renewed before; and
- the item is not overdue.
Each item can only be renewed once.
#bot
BUTTONS Check Current Loans | How To Renew | How To Reserve
#me
How to access the multimedia stations in the libraries?
#bot
Users can use the multimedia stations in our libraries to access eResources and the Internet as well as to print their documents. To use the multimedia station, you need to register for a ID.
#bot
No prior booking for the multimedia stations is needed as they are available on first-come-first-use basis. More information can be viewed below.
BUTTONS More Information | Create ID
#bot
BUTTONS eNewspapers | Free Internet | Printing
#me
Can I return books borrowed from one library at another library?
#bot
You can return your books borrowed from one library at any other public library using the usual book drop. View the locations of all public libraries here.
BUTTONS Locations
#bot
BUTTONS Return eBooks | Sports Hub Library | Return eBooks Early
#me
How to amend my notification details?
#bot
- Go to https://example.com
- Click [myLibrary]
- Login with your myLibrary ID & Password
- Go to [Account > Notification Settings] to review alerts setup
- Click [Submit]
BUTTONS myLibrary Home
#bot
BUTTONS Change Address | Amend Details | Update Particulars
#me
How to amend my email and contact details recorded by library?
#bot
- Go to https://example.com
- Click [myLibrary]
- Login with your myLibrary ID & Password
- Go to [Account > Personal Profile] to review your contacts
- Tick [Update Phone Details] or [Update Email Details]
- Amend contacts
- Click [Submit]
BUTTONS myLibrary Home
#bot
BUTTONS Change Address | Amend Notifications | Update Particulars
#me
Do you have free Internet in the libraries?
#bot
You can access the Internet through the "Wireless#ex" network. Please refer to the link below should you need assistance on how to set up Wireless#ex.
BUTTONS Wireless#ex FAQ
#bot
BUTTONS Multimedia Stations | Room For Self-study
#me
Do you have photocopy/scanning service in the libraries?
#bot
There is no photocopying/scanning service at all the public libraries.
#bot
BUTTONS Printing | Multimedia Stations
#me
Do you have printing service in the libraries?
#bot
You can print documents at a fee of $0.30 per A4 page (only black & white) via our multimedia stations.
#bot
Our multimedia stations can be used to access eResources or browse the Internet. However, there is no Microsoft Office or any software applications installed in these computers; neither are there any slots for thumb drives but you can print out documents if they can be opened via web-based emails (e.g. Word, Excel, PowerPoint or PDF documents from your email).
#bot
BUTTONS Multimedia Stations | Card Topups

In the log output, there is the message
2019-02-26T07:42:23.973Z botium-Convo Library Test wait for bot null
This means that the bot didn't respond in time. You can increase this timeout with a capability named WAITFORBOTTIMEOUT
Without knowing more about your DOM structure, it is not possible to give more hints. The selectors are very important, but from your configuration I can see that you already are an experienced Selenium developer (the selectors to use with Botium are described here)
"WEBDRIVERIO_GETBOTMESSAGE": "./actions/parse_response",
I recommend to add some more logging this this file - obviously, it gets notified about new bot response element, but isn't able to extract the text from there.

Sorry, there was actually another error message.
Timeout of 60000ms exceeded. For async tests and hooks, ensure
"done()" is called; if returning a Promise, ensure it resolves.
It seems like by increase the timeout with '--timeout' command solved the problem.
The default 60000ms timeout was not enough to finish the test.

Related

Access deep link information from Reminders API?

iOS 9 introduces a new reminders feature which allows you to deep link back to any app (including 3rd party apps which implement the NSUserActivity API).
For example, if you launch Messages, tap a conversation, hold the home button, and say, "Remind me about this in 5 minutes," you will get a reminder with a Messages icon. Tapping on the Messages icon from within Reminders later on will take you directly to that conversation.
If I use the EKReminder API, I can get this reminder, but can I get any of this other information?
In other words, is there any way to:
Know that this reminder has special metadata associated with it?
Get the deep link associated with it?
Get the icon of the app that will handle the deep link (just like the Reminders app does)?
From Apple's iOS 9 page:
"Remind me about this when I get in the car."
Siri can remind you about things you’re looking at in your apps — like Safari, Mail, and Notes — and want to follow up on later. If you’re halfway through an email, you can say “Remind me about this tonight.” Or if you’re looking at a place in Maps you want to stop at later, you can ask for a reminder when you get to your car.

iTunes Connect: Where did the vendor id go?

As of yesterday, Monday 2/17/2014, the iTunes Connect site changed. I can no longer find the vendor id on any of the iTunes connect pages. I find the Apple ID fine for each app, but I need the vendor id, not the app id.
We have been running the autoingestion tool for years to pull download numbers for our clients' apps. As of yesterday I can no longer find this vendor id for the autoingestion tool.
Can somebody point me to where I can find this id?
With the last update on iTunnes Connect, in the Sales and Trends section, pressing on the top
right menu that shows "Top Content" can access to the Reports entry (direct link).
There you can see the "Vendor" selector, pressing on it you can see the Details of the vendor with the following format:
VendorName - VendorId
Hope it helps.
There is another way with the existing reportingitc2 URL. Choose "Reports" from the top left menu (Where default is "Top Content"). From the form that will be shown, choose monthly report and download. The downloaded file will be of format S_M_(VendorID)_TIMEPERIOD.TXT
Read on Apple Dev Forum
"Removing the numeral 2 in the url reverts back to the old interface."
so visit
"https://reportingitc.apple.com/index.html" instead of
"https://reportingitc2.apple.com/index.html"
https://devforums.apple.com/thread/219844?tstart=0
Its works but I don't know how long it will work for.

Image not showing up with other hashtagged images and Gramblr

I am not a developer but I am a university researcher studying informal education through social media.
Recently I just had my account disabled when I tested the application gramblr for uploading photos to Instagram. As I have a few members of my learning community who wanted to participate but could not afford a smartphone I wanted to find them alternate options.
Presently anything I upload and tag does not show up amidst other images with the same tag.
This is a big problem as I am the lead researcher and the community organizer, and I lead through example, as well as create various educational avenues through the use of tags.
Please help me to resolve this issue as soon as is possible.
Thank you
-Lily
I was having the same problem. Gramblr actually broke my Instagram account. I had to delete it and start with a new account. Here is how I figured out how to upload photos from my PC with no smart phone:
1 - Download and install BlueStacks: http://www.bluestacks.com/ When running, this program will produce an environment in which you can run popular apps on your computer.
2 - Search for the Instagram app within the BlueStacks App Player & install it. Also search for the Roots Browser app and install it as well (you'll use this app to upload photos from your computer.)
3 - Open Instagram inside BlueStacks & either register a new account or sign in with an existing one.
4 - Open the Roots Browser app and navigate to the desired folder where you will be storing images copied from your computer. I chose SD Card > Pictures. Pull the image(s) into the folder & drop it. It will ask you where you want to send it - choose Instagram.
5 - Open the Instagram app. To upload photos from your computer you must go into the Instagram settings (maybe under Advanced Settings) and disable/uncheck the Instagram camera. In the lastest updates the placement of this checkbox option has changed, so it may take some looking around to find it.
6 - In the Instagram app, click on the camera icon to upload a photo. Choose gallery & then navigate through your Root Browser to the folder where you dragged in your chosen image(s). Choose an image.
7 - Post as you would normally by following the prompts/icons to progress.
I ran into 1 more issue. It turns out that my BlueStacks Instagram app would get stuck after choosing the photo & trying to continue with posting. The screen would turn black & nothing happened for a very long time. I ended up having to update my graphics card drivers & that fixed the problem. If you need help updating your graphics card driver(s) see the http://www.ma-config.com/en website. It will help you to figure out what drivers can be updated. You'll have to download the proper version for your computer operating system & install it on your computer. Double click the icon on your desktop after installation to run it & then hit the refresh button in the browser on the ma-config website. Follow prompts to download drivers needed.
This is the method that worked for me. There are several other methods if you search YouTube with combinations of words including BlueStack & Instagram.
Blue stacks has tons of adware/malware etc. according to my security software, the better work around is dropbox. Put the image in drop box on your computer, then on your phone select your photo from dropbox. A bit long winded but it works.

Implementing "Rate application" functionality on a Windows Store app

I am trying to implement rating functionality in a Windows Store application using HTML / Javascript.
I am showing a popup dialog similar to the one below within the application and when "Rate" is clicked I would like to redirect to the Marketplace where the user can then rate the application.
This is a task that can easily be done on Windows Phone 7 via the MarketplaceReviewTask.
Is there an API on Windows 8 that I could call to have this achieved?
The Rate and Review link in the Settings charm will automatically appear for users other than yourself (since you can't rate your own app).
If you want a custom link somewhere, you can use LaunchUriAsync like Jim says, using this URI:
"ms-windows-store:REVIEW?PFN=[my-pfm]"
where my-pfm is "Package Family Name" which you will find in your application manifest.
Here's a blog post I found that's helpful:
http://www.andybeaulieu.com/Default.aspx?tabid=67&EntryID=227
If you use protocol activation (LaunchUriAsync) with the URI format suggested here you'll get to your app's page on the Store; however, there's still an additional step for the user to click Write a Review. There may be a way to deep link to it and I'll update if I find out.

Share Contract in Metro app

I am writing a metro app using javascript and HTML that implements the Share Contract. I want the users of my app to post data to Social networking sites like Facebook. I have configured the People app in my system, but i am not getting it(People app option) in the share pane in the charms bar. I am seeing the People app option in other apps that i have downloaded from the store.Any help in this regard would be highly appreciated.
Thanks
People app of Windows 8 Release Preview supports only Share Link.
People App of Windows 8 RTM Supports both Text & Link Sharing.
To Share Text:
request.Data.Properties.Title = "Share Text Example";
//Description is Optional
request.Data.Properties.Description = "A demonstration that shows how to share text.";
request.Data.SetText("Hello World!");
To Share link:
request.Data.Properties.Title = "Share Link Example";
//Description is Optional
request.Data.Properties.Description = "Demonstrates how to add a link (URI) to share.";
request.Data.SetUri(new Uri("http://www.google.com"));
Which apps that show up in the Share list are determined by what types of data you are sharing. Each target app informs Windows 8 what data types it is capable of accepting. Windows will only show those apps that support the data types being shared from the source application. For example, if I only share plain text on a clean install system
request.data.setText("some plain text to share");
I will only see the Mail app show up.
However, if I also share a URI, I will now see both the Mail and the People app show up.
request.data.setText("some plain text to share");
request.data.setUri(new Uri("http://slickthought.net"));
I suspect that whatever set*() calls you are making are not one of the data type's that the People app supports.